简体   繁体   中英

Crawl streaming tweets and historical tweets with python

I want to crawl streaming twitter data with python for a search query. One questions here: is it true that data I will collect is generated right from the time I run the script?

Also, how to crawl tweets in the past given day? Is is possible I can get access to all the tweets in that day?

Thanks!

Yes it's true that if you do streaming it will be collected from the moment you start that service .

So what you can do is get old tweets by another mechanism, here is a github repo , it will give the result in CSV format and you can specify range of dates for that search too.

And you can simultaneously run the streaming service which will provide you tweets from that point forward.

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