Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
stackaccount1 opened this issue Nov 21, 2021 · 2 comments

Comments

@stackaccount1
Copy link

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
Copy link
Author

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

@patilaum
Copy link

replace search by search_tweets

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants