]> jfr.im git - z_archive/twitter.git/blobdiff - twitter/oauth_dance.py
Merge pull request #208 from RouxRC/pr-userstream-keywords-example
[z_archive/twitter.git] / twitter / oauth_dance.py
index d6e93e36617b7fcff9c5baf26806bc74f6926016..d3f0ea8f6548635a5c93d6c832f160bb0d5f5cf3 100644 (file)
@@ -1,4 +1,3 @@
-
 from __future__ import print_function
 
 import webbrowser
@@ -21,13 +20,13 @@ def oauth_dance(app_name, consumer_key, consumer_secret, token_filename=None):
 
     Provide the name of your app in `app_name`, your consumer_key, and
     consumer_secret. This function will open a web browser to let the
-    user Allow your app to access their Twitter account. PIN
+    user allow your app to access their Twitter account. PIN
     authentication is used.
 
     If a token_filename is given, the oauth tokens will be written to
     the file.
     """
-    print(("Hi there! We're gonna get you all set up to use %s." % app_name))
+    print("Hi there! We're gonna get you all set up to use %s." % app_name)
     twitter = Twitter(
         auth=OAuth('', '', consumer_key, consumer_secret),
         format='', api_version=None)
@@ -38,7 +37,7 @@ In the web browser window that opens please choose to Allow
 access. Copy the PIN number that appears on the next page and paste or
 type it here:
 """)
-    oauth_url = ('http://api.twitter.com/oauth/authorize?oauth_token=' +
+    oauth_url = ('https://api.twitter.com/oauth/authorize?oauth_token=' +
                  oauth_token)
     print("Opening: %s\n" % oauth_url)