I am using tweepy library to retrieve tweets containing specific link but it doesn't return anything.
Here is the code :
####input your credentials here
consumer_key = ''
consumer_secret = ''
access_token = ''
access_token_secret = ''
auth = tweepy.OAuthHandler(consumer_key, consumer_secret)
auth.set_access_token(access_token, access_token_secret)
api = tweepy.API(auth,wait_on_rate_limit=True)
for tweet in tweepy.Cursor(api.search,q='www.democracynow.org/2018/4/18/americas_1_weapons_salesman_trump_promotes', count=10,
lang="en",
since="2017-04-03").items():
print (tweet.created_at, tweet.text)
I tried the normal link and the encoded one but both didn't work. There is no error, it's just empty.
Is there a workaround ?