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
e0fefa20
Commit
e0fefa20
authored
Jun 21, 2013
by
drevicko
Browse files
added missing search params and search results metadata
parent
d1f2dc24
Changes
2
Hide whitespace changes
Inline
Side-by-side
tweepy/api.py
View file @
e0fefa20
...
...
@@ -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 """
...
...
tweepy/models.py
View file @
e0fefa20
...
...
@@ -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
))
...
...
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