Created
July 9, 2017 04:13
-
-
Save kdmgs110/3bfe7c060b4e300b1e48b52bcc5e36d1 to your computer and use it in GitHub Desktop.
This file contains 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
# Tweepyライブラリをインポート | |
import tweepy | |
# 各種キーをセット | |
CONSUMER_KEY = 'xxxxxxxx' | |
CONSUMER_SECRET = 'xxxxxxxx' | |
ACCESS_TOKEN = 'xxxxxxxx' | |
ACCESS_SECRET = 'xxxxxxxx' | |
auth = tweepy.OAuthHandler(CONSUMER_KEY, CONSUMER_SECRET) | |
auth.set_access_token(ACCESS_TOKEN, ACCESS_SECRET) | |
#APIインスタンスを作成 | |
api = tweepy.API(auth) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment