Twitter atom 不检索旧推文 [英] Twitter atom don't retrieving old tweets
问题描述
我有一个使用 twitter xml 的应用程序(在 http://search.twitter.com/) 并显示帐户发布的最后 5 条推文.但现在只能检索过去 7 天内发布的推文.
I have an application that consumes a twitter xml (obtained in http://search.twitter.com/) and shows the last 5 tweets posted by an account. But now it's only retrieving tweets posted in last 7 days.
我提出的请求是这样的:
The request made by me is something like:
http://search.twitter.com/search.atom?q=from:twitter&rpp=5&show_user=true
有同样问题通过的人可以给我一个想法吗?
Anyone that passed for the same problem can give me an idea?
谢谢.
推荐答案
rpp=5
表示不返回超过 5 条推文".无论用户年龄多大,您的查询都会返回用户最近的 5 条推文.
rpp=5
means "do not return more than 5 tweets". Your query returns the 5 least recent tweets of the user no matter how old they are.
限制结果中推文年龄的唯一方法是参数 since_id.
The only way to restrict the age of the tweets in the result is the parameter since_id.
搜索 API 似乎是 限制为 7 天.
The search API seems to be limited to 7 days.
这篇关于Twitter atom 不检索旧推文的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!