Merge pull request #220 from Rolinh/fix/example/search
search example update: twitter API v1.1 has replaced "rpp" by "count"
This commit is contained in:
commit
98469c2968
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