Created
February 4, 2017 21:59
-
-
Save matt40k/9f2e23fe391e8582442958eee8479a9d to your computer and use it in GitHub Desktop.
Tweet using Python
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pip install --upgrade pip | |
pip install tweepy |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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