Commits

Kumar McMillan committed 1dfee76

Better prompt, fixes dateutil

  • Participants
  • Parent commits 3a68a91

Comments (0)

Files changed (2)

File prune_followers.py

 
 import datetime
 import getpass
+import sys
 
 import dateutil.parser
 from dateutil.tz import tzutc
 import simplejson
 
 def main():
+    sys.stdout.write("""
+        You can get tokens by clicking on
+        Your Apps / <app name>
+        on dev.twitter.com
+
+""")
     consumer_key = getpass.getpass("Twitter Consumer Key: ")
     consumer_secret = getpass.getpass("Twitter Consumer Secret: ")
-    
     twitter = OAuthApi(consumer_key, consumer_secret)
-    
-    # you can access your own account by clicking on the 
-    # My Access Token tab on dev.twitter.com
     oauth_token = getpass.getpass("Your authorization token: ")
     oauth_token_secret = getpass.getpass("Your authorization token secret: ")
     # or for another account, prompt the user for it:

File requirements.txt

 oauth2
 httplib2
 simplejson
-python-dateutil
+python-dateutil==1.5