Remove outdated allowed parameters for API.search
authorHarmon <Harmon758@gmail.com>
Thu, 6 Jun 2019 04:30:58 +0000 (23:30 -0500)
committerGitHub <noreply@github.com>
Thu, 6 Jun 2019 04:30:58 +0000 (23:30 -0500)
tweepy/api.py

index 1f642486834ee295ee294839d9830b5c3e27d1e4..48b22536bb45dbd39d0a8be0bc3ffdd86e210584 100644 (file)
@@ -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