From 9377e7e844f9a87e6fc8e53eb5ca0cd4d758d548 Mon Sep 17 00:00:00 2001 From: Harmon Date: Thu, 18 Feb 2021 22:18:18 -0600 Subject: [PATCH] Require q parameter for API.search --- tweepy/api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tweepy/api.py b/tweepy/api.py index 4a3c61e..34e0a0c 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -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 -- 2.25.1