Hi,
I am trying to get data from Twitter through Premium API Sandbox based on some hashtags.
The following query works fine:
query = "#climatechange lang:en"
r = api.request('tweets/search/{}/:{}'.format(PRODUCT, LABEL),
{'query':query, 'maxResults':10})
I would like to remove retweets from the search by using the operatoris:retweet. If I use such operator in the query #climatechange lang:en -is:retweet the request fails with error code 422.
I tried to use other operators such as has:media and it worked, where am I going wrong?
Thank you for your helping :)
Hi, I am trying to get data from Twitter through Premium API Sandbox based on some hashtags. The following query works fine:
I would like to remove retweets from the search by using the operator
is:retweet
. If I use such operator in the query#climatechange lang:en -is:retweet
the request fails with error code 422. I tried to use other operators such ashas:media
and it worked, where am I going wrong? Thank you for your helping :)