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
// https://gist.github.com/belltreeSzk/b75f6cc57952246a35d6b6c79613ed28#file-gas-5-gs を変える | |
// ② Twitterで検索する | |
var tweetList = findTweets(searchWord, lastTweetId); // ※検索処理は割愛してるので各自作ってください | |
var count = 0 | |
// ③ 複数件ツイートを取得されるので for を使って1つずつツイートを取り出し いいね or RT をする | |
for (var j = 0, jl = tweetList.length; j < jl; j++ ) { | |
var tweet = tweetList[j]; | |
if (tweet.id_str > lastTweetId) { | |
lastTweetId = tweet.id_str; | |
} | |
// !!!!!! 追加 !!!!!!! | |
if (tweet.in_reply_to_status_id) { | |
// in_reply_to_status_id にデータが入っている場合はリプライツイート | |
continue; | |
} | |
︙ | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment