From e0fefa2087d0296b440e2bd5603af5de5af7d326 Mon Sep 17 00:00:00 2001 From: drevicko Date: Fri, 21 Jun 2013 14:03:46 +1000 Subject: [PATCH] added missing search params and search results metadata --- tweepy/api.py | 2 +- tweepy/models.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/tweepy/api.py b/tweepy/api.py index 7418809..392a0c8 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -630,7 +630,7 @@ class API(object): search = bind_api( path = '/search/tweets.json', payload_type = 'search_results', - allowed_param = ['q', 'lang', 'locale', 'since_id', 'geocode', 'show_user', 'max_id', 'since', 'until', 'result_type'] + allowed_param = ['q', 'lang', 'locale', 'since_id', 'geocode', 'max_id', 'since', 'until', 'result_type', 'count', 'include_entities', 'from', 'to', 'source'] ) """ trends/daily """ diff --git a/tweepy/models.py b/tweepy/models.py index 3442790..39dddc9 100644 --- a/tweepy/models.py +++ b/tweepy/models.py @@ -238,6 +238,8 @@ class SearchResults(ResultSet): results.refresh_url = metadata.get('refresh_url') results.completed_in = metadata.get('completed_in') results.query = metadata.get('query') + results.count = metadata.get('count') + results.next_results = metadata.get('next_results') for status in json['statuses']: results.append(Status.parse(api, status)) -- 2.25.1