projects
/
twitter-api-cdsw
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
updated cursor to new version of tweepy docs
[twitter-api-cdsw]
/
twitter1-cursor.py
diff --git
a/twitter1-cursor.py
b/twitter1-cursor.py
index dfb1188af96ca4d13fe5aed8f00ed6b821677453..b7de59b04d584c0c0522b29c0ec75cf82958d96f 100644
(file)
--- a/
twitter1-cursor.py
+++ b/
twitter1-cursor.py
@@
-9,7
+9,7
@@
auth.set_access_token(ACCESS_TOKEN, ACCESS_TOKEN_SECRET)
api = tweepy.API(auth)
# I found the idea of how to the user the Cursor here:
api = tweepy.API(auth)
# I found the idea of how to the user the Cursor here:
-# https://tweepy.readthedocs.org/en/v3.
2
.0/cursor_tutorial.html
+# https://tweepy.readthedocs.org/en/v3.
4
.0/cursor_tutorial.html
for page in tweepy.Cursor(api.home_timeline, count=200).pages():
for tweet in page:
print(tweet.text)
for page in tweepy.Cursor(api.home_timeline, count=200).pages():
for tweet in page:
print(tweet.text)
Benjamin Mako Hill
||
Want to submit a patch?