您可以使用Twitter API回溯多长时间 [英] How far back can you go back with the Twitter API

查看:223
本文介绍了您可以使用Twitter API回溯多长时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经用c#开发了一个应用程序,该应用程序将tweet提取到数据库中.我目前正在使用TweetSharp包装器.

I have developed a application in c# that fetches in tweets to a database. I'm currently using TweetSharp Wrapper.

自从最近宣布Twitter现在已经索引了所有以前的推文以来,这使您可以返回到最初的推文,我开始怀疑是否有可能回到某个时间段.

Since it has recently been announced that twitter now have indexed all of the previous tweets, which allows you to go back to the very first tweets, i started to wonder if it's possible to go back to a certain time period.

让我们说从2008-10-10到2009-10-10期间,我将看到所有包含"Microsoft"的推文. Twitter API有可能吗???更不用说使用TweetSharp模块了吗?

Lets say i want to see all tweets that contains "Microsoft" from the time period 2008-10-10 to 2009-10-10. Is this possible for the Twitter API??? Let alone is it possible with the TweetSharp module??

任何答案都可以接受.

谢谢!

推荐答案

我的假设是您使用的是Twitter REST API的 free 版本(也有我没有的Twitter Streaming API经验),而TweetSharp只是REST API的包装.

My assumptions are that you are using the free version of the Twitter REST API (there are also Twitter Streaming APIs that I have no experience with) and that TweetSharp is just a wrapper over the REST API.

鉴于此,我倾向于认为您要查询的查询("Microsoft从:2008-10-10直到:2009-10-10")不可能原因:

Given that, I'm inclined to think that the query you are requesting ("microsoft since:2008-10-10 until:2009-10-10") is not possible for a few reasons:

  • 使用Twitter REST API进行搜索只能追溯到7天.
  • 一年中与Microsoft tweets相关的tweets数量将超过速率限制

我的来源是速率限制已被明确记录.

My Source is Adam Green's Blog: 140Dev, Nov 2013. The documentation is a bit vague on exactly how far back the REST API will go. My experiences show that up to the past 7 days. The rate limits are pretty explicitly documented, however.

这个答案晚了一个多月;如果您想出一种方法来完成这项工作,那就分享吧!

This answer is a over a month late; if you figured out a way to make this work, do share!

这篇关于您可以使用Twitter API回溯多长时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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