twython/examples/public_timeline.py

8 lines
205 B
Python

import twython
# Getting the public timeline requires no authentication, huzzah
twitter = twython.setup()
public_timeline = twitter.getPublicTimeline()
for tweet in public_timeline:
print tweet["text"]