Last active
May 29, 2016 08:18
-
-
Save kurozumi/52d8a53180005abdbe9f11d234f01f71 to your computer and use it in GitHub Desktop.
【Python】tweepyを使ってツイートする方法
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
# coding: utf-8 | |
import tweepy | |
CONSUMER_KEY = "コンシューマーキー設定" | |
CONSUMER_SECRET = "コンシューマーシークレットキー設定" | |
auth = tweepy.OAuthHandler(CONSUMER_KEY, CONSUMER_SECRET) | |
ACCESS_TOKEN = "アクセストークン設定" | |
ACCESS_SECRET = "アクセスシークレットトークン設定" | |
auth.set_access_token(ACCESS_TOKEN, ACCESS_SECRET) | |
api = tweepy.API(auth) | |
api.update_status(status="オッス!悟空") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment