twitter API v1.1 as replaced "rpp" by "count" thus update the search example
This commit is contained in:
parent
eac37536e7
commit
7c0739d941
1 changed files with 1 additions and 1 deletions
|
|
@ -3,7 +3,7 @@ from twython import Twython, TwythonError
|
||||||
# Requires Authentication as of Twitter API v1.1
|
# Requires Authentication as of Twitter API v1.1
|
||||||
twitter = Twython(APP_KEY, APP_SECRET, OAUTH_TOKEN, OAUTH_TOKEN_SECRET)
|
twitter = Twython(APP_KEY, APP_SECRET, OAUTH_TOKEN, OAUTH_TOKEN_SECRET)
|
||||||
try:
|
try:
|
||||||
search_results = twitter.search(q='WebsDotCom', rpp='50')
|
search_results = twitter.search(q='WebsDotCom', count=50)
|
||||||
except TwythonError as e:
|
except TwythonError as e:
|
||||||
print e
|
print e
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue