Hey, I hope you guys are best with your health and development works. How can I add the negate function i.e. (-is:retweet) in my query?
payload = {"query": (hash_one) -is:retweet}
response = requests.get(SEARCH_TWEETS_URL, params=payload, headers=headers).json()
whereas, hash_one is the user input of #tags or @TwitterHandles or Keywords.
I want to negate the retweets , in which pycharm IDE is giving me syntax error.
I’d also tried with hard-coded handles, #tags:
payload = {"query": "(@thePSLt20) -is:retweet"}
But its searches for “hash_one” and results me in empty string of tweets.
Its not working either way.