search_gen in Advanced usage deprecated
Updated advanced usage documentation to use cursor instead of search_gen
This commit is contained in:
parent
f05c3f0da6
commit
db738cf41e
1 changed files with 7 additions and 3 deletions
|
|
@ -67,8 +67,12 @@ That being said, Twython offers a generator for search results and can be access
|
||||||
|
|
||||||
.. code-block:: python
|
.. code-block:: python
|
||||||
|
|
||||||
search = twitter.search_gen('python')
|
from twython import Twython
|
||||||
for result in search:
|
twitter = Twython(APP_KEY, APP_SECRET, OAUTH_TOKEN,
|
||||||
|
OAUTH_TOKEN_SECRET)
|
||||||
|
|
||||||
|
results = twitter.cursor(twitter.search, q='python')
|
||||||
|
for result in results:
|
||||||
print result
|
print result
|
||||||
|
|
||||||
Manipulate the Request (headers, proxies, etc.)
|
Manipulate the Request (headers, proxies, etc.)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue