Get-Tweet-Replies-With-Python-Tweepy
Get-Tweet-Replies-With-Python-Tweepy copied to clipboard
Can't seem to get a tweet output
I tried running it and checking whether or not the code runs, but after running it doesn't seem to output the results. The code only outputs Failed instead of outputting replies. Here is the code
replies=[]
for tweet in tweepy.Cursor(api.search_tweets,q='to:'+name, result_type='recent').items(1000):
if hasattr(tweet, 'in_reply_to_status_id_str'):
if (tweet.in_reply_to_status_id_str==tweet_id):
replies.append(tweet)
else:
print('Failed')
replies
new X (Formerly Twitter) API terms
working on it