From b71dd218aaeaf7fdbe09bbcd5fb4cc7924afd43e Mon Sep 17 00:00:00 2001 From: Ryan McGrath Date: Sun, 14 Jun 2009 19:31:24 -0400 Subject: [PATCH] Example of getting the friends timeline --- tango_examples/get_friends_timeline.py | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 tango_examples/get_friends_timeline.py diff --git a/tango_examples/get_friends_timeline.py b/tango_examples/get_friends_timeline.py new file mode 100644 index 0000000..e3c3ddd --- /dev/null +++ b/tango_examples/get_friends_timeline.py @@ -0,0 +1,8 @@ +import tango, pprint + +# Authenticate using Basic (HTTP) Authentication +twitter = tango.setup(authtype="Basic", username="example", password="example") +friends_timeline = twitter.getFriendsTimeline(count="150", page="3") + +for tweet in friends_timeline: + print tweet["text"]