From 45c89a21e360c6c4a04116130928c5fada8aac2f Mon Sep 17 00:00:00 2001 From: Harmon Date: Fri, 19 Nov 2021 10:20:23 -0600 Subject: [PATCH] Add FAQ section on API.search --- docs/faq.rst | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/docs/faq.rst b/docs/faq.rst index 85b1891..62798c6 100644 --- a/docs/faq.rst +++ b/docs/faq.rst @@ -98,6 +98,19 @@ This is because :ref:`Tweepy v4.0.0 ` removed ``API.me``. Instead, you can use :meth:`API.verify_credentials`. +Where did ``API.search`` go? +---------------------------- + +If you're attempting to use ``API.search`` or other :class:`API` methods from +Tweepy v3, you might encounter an :class:`AttributeError` with Tweepy v4. + +This is because :ref:`Tweepy v4.0.0 ` renamed many :class:`API` +methods to be more consistent. + +For example, ``API.search`` was renamed to :meth:`API.search_tweets`. You can +refer to the changelog / release notes and update your method invocations +accordingly. + Where did ``StreamListener`` go? -------------------------------- -- 2.25.1