From: Harmon Date: Fri, 19 Feb 2021 04:18:18 +0000 (-0600) Subject: Require q parameter for API.search X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=9377e7e844f9a87e6fc8e53eb5ca0cd4d758d548;p=tweepy.git Require q parameter for API.search --- 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