Skip to content

Instantly share code, notes, and snippets.

@kurasaiteja
Created May 28, 2020 15:08
Show Gist options
  • Save kurasaiteja/e3b8939ffe3d320af8c9bb91ff374499 to your computer and use it in GitHub Desktop.
Save kurasaiteja/e3b8939ffe3d320af8c9bb91ff374499 to your computer and use it in GitHub Desktop.
from tweepy import OAuthHandler
from tweepy import API
# Consumer key authentication(consumer_key,consumer_secret can be collected from our twitter developer profile)
auth = OAuthHandler(consumer_key, consumer_secret)
# Access key authentication(access_token,access_token_secret can be collected from our twitter developer profile)
auth.set_access_token(access_token, access_token_secret)
# Set up the API with the authentication handler
api = API(auth)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment