From 440a3e284229d95c1cd32be1da51e3ce13ef5700 Mon Sep 17 00:00:00 2001 From: Harmon Date: Wed, 5 Jun 2019 23:30:58 -0500 Subject: [PATCH] Remove outdated allowed parameters for API.search --- tweepy/api.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/tweepy/api.py b/tweepy/api.py index 1f64248..48b2253 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -1248,17 +1248,16 @@ class API(object): def search(self): """ :reference: https://developer.twitter.com/en/docs/tweets/search/api-reference/get-search-tweets :allowed_param:'q', 'lang', 'locale', 'since_id', 'geocode', - 'max_id', 'since', 'until', 'result_type', 'count', - 'include_entities', 'from', 'to', 'source' + 'max_id', 'until', 'result_type', 'count', + 'include_entities' """ return bind_api( api=self, path='/search/tweets.json', payload_type='search_results', allowed_param=['q', 'lang', 'locale', 'since_id', 'geocode', - 'max_id', 'since', 'until', 'result_type', - 'count', 'include_entities', 'from', - 'to', 'source'] + 'max_id', 'until', 'result_type', 'count', + 'include_entities'] ) @property -- 2.25.1