简体   繁体   中英

Twitter hashtag search results - older than 7 days

I want to get the search results (screen_name, datetime, location, tweet_text) for Nov 12 until now for only 3 hashtags

I wrote a script in Python using tweepy, but by the time I finished the script it was Nov 20 and therefore not all tweets from Nov 12 were available (because of the 7 day window).

Tweepy doesn't work on the premium feed (30 day window) with cursors yet, so is it better to:

a) rewrite the code to use standard twitter API (this might take me some time !!) b) wait for tweepy to add cursor support for premium (obviously no guarantee here) c) find someone who wouldn't mind running the 3 searches for me (assuming the result contains the fields I need)

Is there any other options that I haven't thought of?

I wrote a script in Python using tweepy, but by the time I finished the script it was Nov 20 and therefore not all tweets from Nov 12 were available (because of the 7 day window) .

this is actually one of the restrictions of using the standard twitter api. I wouldn't suggest option b, as i'm guessing you're in dire need for your tweet data asap.

you could try using Jefferson-Henrique 's solution on github. I've used his code to gather tweets from 2015 (i gathered these 2015 tweets last year). here's a link to his github . his solution doesn't use the api though. but he included some examples on how to use his script on his readme.md. i hope this helps.

/ogs

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM