Get-Tweet-Replies-With-Python-Tweepy icon indicating copy to clipboard operation
Get-Tweet-Replies-With-Python-Tweepy copied to clipboard

Can't seem to get a tweet output

Open DsansCore opened this issue 3 years ago • 2 comments

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

DsansCore avatar Jan 04 '23 08:01 DsansCore

new X (Formerly Twitter) API terms

working on it

nirholas avatar Feb 06 '24 08:02 nirholas