0

2018 年内に特定の Twitter ユーザー名のすべてのコメントを収集する予定です。どうすればそれを行うことができますか?

以下のコードは、時間を考慮せずに 1 つのツイートのツイートをスクレイピングします。

name = 'MoveTheWorld'
tweet_id = '1310127204538482690'
replies=[]
for tweet in tweepy.Cursor(api.search,q='to:'+name, result_type='recent', timeout=999999).items(8000):
if hasattr(tweet, 'in_reply_to_status_id_str'):
    if (tweet.in_reply_to_status_id_str==tweet_id):                        
        replies.append(tweet)
4

0 に答える 0