google spreadsheetでtwitter bot作ったよ
TRANSCRIPT
Google SpreadSheetでTwitter Bot作ったよ
kanazawa.rb meetup#41 2016年01月16日
Keisuke Oohata
安心してください!!
元ネタあります
http://www.zachwhalen.net/posts/how-to-make-a-twitter-bot-with-google-spreadsheets-version-04/
手順Step1 Twitterアカウントの作成
Step2 Twitter Appの作成
Step3 SpreadSheetの設定
Twitter アカウントTwitter AppのConsumer Key (API Key)
Twitter AppのConsumer Secret (API Secret)
手順Step4 SpreadSheetの設定 SpreadSheet(スクリプトエディタ)のProject Key
Step5 Twitter AppのCallback URLの設定 SpreadSheetの値を設定Step6 ツイートで使用するデータの選択
手順Step7 Test Tweet & Auth BotメニューからSend a Tweetを実行
Step8 Botツイート間隔の選択
Step9 Bot開始
BotメニューからStart Posting Tweetsを実行
簡単な流れ
1.Google Apps Script実行
2.ツイート内容作成
3.Twitter Appからツイート
指定間隔
これを使えば
予約投稿できるんじゃね!?
追加してみた
sheet追加
コード追加
簡単な流れ
1.Google Apps Script実行
2.
4.Twitter Appからツイート
指定間隔
シートから年月時、メッセージ内容、 送信フラグを取得
3. 送信フラグ=0かつ 予約年月時<=現在時間
True
False
Demo
ありがとうございました