Also updated functions in twython.py to use pep8 functions instead of camelCase functions
10 lines
301 B
Python
10 lines
301 B
Python
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:
|
|
user_timeline = twitter.get_user_timeline(screen_name='ryanmcgrath')
|
|
except TwythonError as e:
|
|
print e
|
|
|
|
print user_timeline
|