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

getting error AttributeError: 'API' object has no attribute 'search'

Open stackaccount1 opened this issue 4 years ago • 2 comments

AttributeError Traceback (most recent call last) in 21 22 replies=[] ---> 23 for tweet in tweepy.Cursor(api.search,q='to:'+name, result_type='recent', timeout=999999).items(1000): 24 if hasattr(tweet, 'in_reply_to_status_id_str'): 25 if (tweet.in_reply_to_status_id_str==tweet_id):

AttributeError: 'API' object has no attribute 'search'

stackaccount1 avatar Nov 21 '21 21:11 stackaccount1

not sure if they changed the API or something but it doesn't appear to work

stackaccount1 avatar Nov 21 '21 21:11 stackaccount1

replace search by search_tweets

patilaum avatar Feb 25 '22 17:02 patilaum