twitter API v1.1 as replaced "rpp" by "count" thus update the search example

This commit is contained in:
Robin Hahling 2013-06-16 13:34:19 +02:00
parent eac37536e7
commit 7c0739d941

View file

@ -3,7 +3,7 @@ from twython import Twython, TwythonError
# Requires Authentication as of Twitter API v1.1
twitter = Twython(APP_KEY, APP_SECRET, OAUTH_TOKEN, OAUTH_TOKEN_SECRET)
try:
search_results = twitter.search(q='WebsDotCom', rpp='50')
search_results = twitter.search(q='WebsDotCom', count=50)
except TwythonError as e:
print e