twython/core_examples/public_timeline.py

8 lines
212 B
Python

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