Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Zahra Rajabi
tweepy
Commits
564c6314
Commit
564c6314
authored
Dec 25, 2013
by
Aaron Hill
Browse files
Merge pull request #309 from drevicko/fix-missing-params-metadata
added missing search params and search results metadata
parents
638c1ccd
ab1e69f5
Changes
2
Hide whitespace changes
Inline
Side-by-side
tweepy/api.py
View file @
564c6314
...
...
@@ -637,7 +637,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'
,
'count'
]
allowed_param
=
[
'q'
,
'lang'
,
'locale'
,
'since_id'
,
'geocode'
,
'max_id'
,
'since'
,
'until'
,
'result_type'
,
'count'
,
'include_entities'
,
'from'
,
'to'
,
'source'
]
)
""" trends/daily """
...
...
tweepy/models.py
View file @
564c6314
...
...
@@ -237,6 +237,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
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment