你可以用 Twitter API 回到多远 [英] How far back can you go back with the Twitter API

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

问题描述

我用 c# 开发了一个应用程序,可以将推文提取到数据库中.我目前正在使用 TweetSharp Wrapper.

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(还有 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 天前.
  • 一年内与微软推文相关的推文数量将超过速率限制

我的来源是 Adam Green 的博客:140Dev,2013 年 11 月.该文档对于 REST API 到底能走多远有些含糊.我的经验表明,直到过去 7 天.然而,速率限制 有非常明确的记录.

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天全站免登陆