From: Josh Roesslein Date: Sun, 9 Aug 2009 20:51:36 +0000 (-0500) Subject: Some tutorial fixes. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=a6adb649784206f92e9fe37e1ee4311bdf29f4c2;p=tweepy.git Some tutorial fixes. --- diff --git a/tutorial/t1.py b/tutorial/t1.py index 93aa167..951c777 100644 --- a/tutorial/t1.py +++ b/tutorial/t1.py @@ -51,14 +51,14 @@ oauth_auth.get_access_token(verifier) Okay we are all set then with OAuth. If you want to store the access token for later use, here's how... """ -access_token_to_store = oauth_auth.access_token -print 'Access token: %s' % access_token_to_store +access_token_store = oauth_auth.access_token +print 'Access token: %s' % access_token_store """ And to re-create the OAuthHandler with that access token later on... """ oauth_auth = tweepy.OAuthHandler(consumer_key, consumer_secret) -oauth_auth.access_token = access_token_from_storage +oauth_auth.access_token = access_token_store """ Now let's plugin our newly created auth handler into an API instance diff --git a/tutorial/t2.py b/tutorial/t2.py index 208b6fa..ddc3322 100644 --- a/tutorial/t2.py +++ b/tutorial/t2.py @@ -48,6 +48,7 @@ Let's query the authenticated user's friends timeline and print it to the console... """ friends_timeline = auth_api.friends_timeline() +print 'Friends timeline...' for status in friends_timeline: print status.text print 'from: %s' % status.user.screen_name