Guest User

Untitled

a guest
Nov 30th, 2011
377
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/usr/bin/env python2
  2.  
  3. import tweepy
  4.  
  5. consumerKey = 'Paste key between quotes'
  6. consumerSecret = 'Place key between quotes'
  7.  
  8. auth = tweepy.OAuthHandler(consumerKey, consumerSecret)
  9. auth_url = auth.get_authorization_url()
  10. print 'Please authorize: ' + auth_url
  11. verifier = raw_input('PIN: ').strip()
  12. auth.get_access_token(verifier)
  13. print "accessKey = '%s'" % auth.access_token.key
  14. print "accessSecret = '%s'" % auth.access_token.secret
  15.  
RAW Paste Data