From 4af7c8771f81892cc671511c33b8997d1f3caba8 Mon Sep 17 00:00:00 2001 From: Ryan McGrath Date: Sun, 14 Jun 2009 19:09:04 -0400 Subject: [PATCH] Examples of getting the public timeline --- tango_examples/public_timeline.py | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 tango_examples/public_timeline.py diff --git a/tango_examples/public_timeline.py b/tango_examples/public_timeline.py new file mode 100644 index 0000000..4a6c161 --- /dev/null +++ b/tango_examples/public_timeline.py @@ -0,0 +1,8 @@ +import tango + +# Getting the public timeline requires no authentication, huzzah +twitter = tango.setup() +public_timeline = twitter.getPublicTimeline() + +for tweet in public_timeline: + print tweet["text"]