How can I get tweets older than a week (using tweepy or other python libraries)

后端 未结 8 621
予麋鹿
予麋鹿 2020-11-27 02:55

I have been trying to figure this out but this is a really frustrating. I\'m trying to get tweets with a certain hashtag (a great amount of tweets) using Tweepy. But this do

8条回答
  •  攒了一身酷
    2020-11-27 03:36

    use the args "since" and "until" to adjust your timeframe. You are presently using since_id which is meant to correspond to twitter id values (not dates):

    for tweet in tweepy.Cursor(api.search,
                               q="test",
                               since="2014-01-01",
                               until="2014-02-01",
                               lang="en").items():
    

提交回复
热议问题