Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python2
- import tweepy
- consumerKey = 'Paste key between quotes'
- consumerSecret = 'Place key between quotes'
- auth = tweepy.OAuthHandler(consumerKey, consumerSecret)
- auth_url = auth.get_authorization_url()
- print 'Please authorize: ' + auth_url
- verifier = raw_input('PIN: ').strip()
- auth.get_access_token(verifier)
- print "accessKey = '%s'" % auth.access_token.key
- print "accessSecret = '%s'" % auth.access_token.secret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement