Require q parameter for API.search
authorHarmon <Harmon758@gmail.com>
Fri, 19 Feb 2021 04:18:18 +0000 (22:18 -0600)
committerHarmon <Harmon758@gmail.com>
Fri, 19 Feb 2021 04:18:18 +0000 (22:18 -0600)
tweepy/api.py

index 4a3c61ec1e3d818cc6cf2b75da68cd40db126159..34e0a0c75463987ab736f2bfce8cb80e34551791 100644 (file)
@@ -1136,11 +1136,11 @@ class API:
 
     @pagination(mode='id')
     @payload('search_results')
-    def search(self, *args, **kwargs):
+    def search(self, q, *args, **kwargs):
         """ :reference: https://developer.twitter.com/en/docs/tweets/search/api-reference/get-search-tweets
         """
         return self.request(
-            'GET', 'search/tweets', *args, endpoint_parameters=(
+            'GET', 'search/tweets', q, *args, endpoint_parameters=(
                 'q', 'lang', 'locale', 'since_id', 'geocode', 'max_id',
                 'until', 'result_type', 'count', 'include_entities'
             ), **kwargs