Skip to content

Instantly share code, notes, and snippets.

@matt40k
Created February 4, 2017 21:59
Show Gist options
  • Save matt40k/9f2e23fe391e8582442958eee8479a9d to your computer and use it in GitHub Desktop.
Save matt40k/9f2e23fe391e8582442958eee8479a9d to your computer and use it in GitHub Desktop.
Tweet using Python
pip install --upgrade pip
pip install tweepy
import tweepy
consumer_key = 'your_consumer_key'
consumer_secret = 'your_consumer_secret'
access_token = 'your_access_token'
access_token_secret = 'your_access_token_secret'
auth = tweepy.OAuthHandler(consumer_key, consumer_secret)
auth.set_access_token(access_token, access_token_secret)
api = tweepy.API(auth)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment