开发者

How to download all tweets from where it stopped using Phirehose? (streaming api twitter)

开发者 https://www.devze.com 2023-02-26 09:37 出处:网络
I\'m using Phirehose for doing the streaming from some hashtags from twitter. But if my internet connection goes down I miss the tweets from the time it was 开发者_Python百科down.

I'm using Phirehose for doing the streaming from some hashtags from twitter. But if my internet connection goes down I miss the tweets from the time it was 开发者_Python百科down.

I need to know if there is a way to download all tweets from the point It stopped when my connection was down using only the streaming API.


You can use the count parameter with the streaming API to get historical statuses, however you need elevated access (such as Firehose, Retweet, Link, Birddog or Shadow), and you cannot use the track parameter at the same time. Otherwise, you can only get statuses from after the point you connect to the endpoint.

Without additional access you'll need to backfill from the REST API in order to get historical tweets.

I went into a bit more detail regarding the count parameter here.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号