Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 23 lines (16 sloc) 673 Bytes
#!/usr/bin/python
#-----------------------------------------------------------------------
# twitter-user-timeline
# - displays a user's current timeline.
#-----------------------------------------------------------------------
from twitter import *
# this is the user we're going to query.
user = "ideoforms"
# create twitter API object
twitter = Twitter()
# query the user timeline
# twitter API docs: https://dev.twitter.com/docs/api/1/get/statuses/user_timeline
results = twitter.statuses.user_timeline(screen_name = user)
# loop through each of my statuses, and print its content
for status in results:
print "(%s) %s" % (status["created_at"], status["text"])
Something went wrong with that request. Please try again.