Tweepy Why did I receive AttributeError for search [closed]

We Are Going To Discuss About Tweepy Why did I receive AttributeError for search . So lets Start this Python Article.

  1. How to solve Tweepy Why did I receive AttributeError for search [closed]

    Yes! search is not a valid attribute. According to the docs, you should use
    search_tweets.
    Docs are here.
    for tweets in api.search_tweets(q="iphone", lang="en"): print(tweet.text)

  2. Tweepy Why did I receive AttributeError for search [closed]

    Yes! search is not a valid attribute. According to the docs, you should use
    search_tweets.
    Docs are here.
    for tweets in api.search_tweets(q="iphone", lang="en"): print(tweet.text)

Solution 1

Yes! search is not a valid attribute. According to the docs, you should use
search_tweets.

Docs are here.

for tweets in api.search_tweets(q="iphone", lang="en"):
    print(tweet.text)

Original Author Nima Of This Content

Solution 2

Tweepy v4.0.0 was released yesterday and renamed API.search to API.search_tweets.

I would recommend simply renaming your method call, but you could also downgrade to Tweepy v3.10.0.

Original Author Harmon758 Of This Content

Conclusion

So This is all About This Tutorial. Hope This Tutorial Helped You. Thank You.

Also Read,

ittutorial team

I am an Information Technology Engineer. I have Completed my MCA And I have 4 Year Plus Experience, I am a web developer with knowledge of multiple back-end platforms Like PHP, Node.js, Python and frontend JavaScript frameworks Like Angular, React, and Vue.

Leave a Comment