Twitter4j TwitterStream doesn't get all tweets

前端 未结 1 679
眼角桃花
眼角桃花 2021-01-03 03:10

I am trying to get all the tweets on twitter through the twitter4j TwitterStream object. I\'m not sure that I am getting all the tweets. For testing the delay after which th

相关标签:
1条回答
  • 2021-01-03 03:29

    I'm open to contradiction on this, but I believe it works like this...

    Streaming API only gives a sample of tweets for non-partners. It's the "garden hose" as opposed to the "firehose" which a few Twitter partners get. But you can apply for full access.

    .sample() gives this "garden hose". Your twitter account won't have access to the firehose, although I think there is a twitterStream for the firehose if you did have access.

    Search for "statuses/sample" on this page for the specifics: https://dev.twitter.com/docs/streaming-api/methods

    0 讨论(0)
提交回复
热议问题