获得通过Twitter流API所有过去的鸣叫 [英] Get all past tweets via Twitter Streaming API

查看:241
本文介绍了获得通过Twitter流API所有过去的鸣叫的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我怎样才能通过Twitter流API所有过去的鸣叫?正如你可能知道它发送的实时微博,而不是过去的。有用的计数参数在2010年REST API被禁用有如此糟糕的局限性,它将采取用上一生的时间让所有过去的鸣叫。
有没有什么解决办法吗?

How can i get all past tweets via Twitter Streaming API? As you may know it sends real-time tweets, not past ones. Useful count parameter was disabled in 2010. REST API have so bad limitations that it would take a whole life to get all past tweets. Is there any solution?

推荐答案

对不起,你不能让历史的鸣叫从的流API 除非你已经升高访问(例如,流水,转推,链接,Birddog或阴影)。您可以要求在微博点com 通过电子邮件的 API额外的访问。请注意,您不能使用跟踪带参数的计数

Sorry, you can't get historical tweets from the streaming API unless you have elevated access (e.g., Firehose, Retweet, Link, Birddog or Shadow). You can request additional access by emailing api at twitter dot com. Note that you cannot use the track parameter with count.

只有最后的15万使用状态时,可以使用计数。引用Twitter的文档:

Only the last 150,000 statuses sent through Twitter are available when using count. To quote the Twitter docs:

在未经过滤的流,都被认为是状态传递,所以要求的数量是返回的数字。过滤后的流,所请求的数目是被施加到过滤器predicate状态的数量,和状态的数量不限退货。

On unfiltered streams, all considered statuses are delivered, so the number requested is the number returned. On filtered streams, the number requested is the number of statuses that are applied to the filter predicate, and not the number of statuses returned.

此外,包含上次150000鸣叫循环缓冲区是以速度它们被流出的Twitter。所以,如果目前的鸣叫速率为每秒600鸣叫,缓冲区只包含数据的末尾250秒,如果你有兴趣,在短短几个用户,则可能不会比只是在缓冲区一对夫妇更鸣叫(如有)。

Also, that circular buffer containing the last 150,000 tweets is subject to the rate in which they are flowing out of Twitter. So, if the current tweet rate is 600 tweets per second, the buffer only holds the last 250 seconds of data, and if you are interested in just a few users, there probably won't be more than just a couple tweets in the buffer, if any.

如果您通过认证,REST API的将会的让你拉每天1,680,000鸣叫,但真正的限制因素是,你只能得到每用户3200鸣叫。搜索API更糟糕的是,因为它目前似乎是从一个特定的目标只返回约四天价值的鸣叫。

If you're authenticated, the REST API will allow you to pull 1,680,000 tweets per day, but the real limiting factor is that you can only get at 3,200 tweets per user. The search API is worse, since it currently seems to be returning only about four days worth of tweets from a specific target.

注意:编辑亚伯拉罕长大后计数仍然可以使用提升访问流API

这篇关于获得通过Twitter流API所有过去的鸣叫的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆