2011-07-27 60 views
1

我一直在使用Twitter的搜索API和PHP鸣叫拉从我的帐户:Twitter搜索API突然停止返回结果

http://search.twitter.com/search.atom?q=from=myaccount

(使用SimpleXML和缓存的饲料,所以我只打电话给推特一次和小时)

它一直工作正常约两周,现在什么都没有。当我访问上面的URL(使用我的帐户)时,除了Feed的标题外没有任何东西。

我的头得到的回应是:

Date Wed, 27 Jul 2011 20:16:55 GMT 
Server hi 
Status 200 OK 
X-Served-From smf1-aek-11-sr2 
X-Runtime 0.13606 
Content-Type application/atom+xml; charset=utf-8 
X-Timeline-Cache-Hit Miss 
X-Served-By smf1-aas-19-sr2.prod.twitter.com 
Cache-Control max-age=15, must-revalidate, max-age=1800 
Expires Wed, 27 Jul 2011 20:46:55 GMT 
Vary Accept-Encoding 
X-Varnish 1602110106 
Age 0 
Via 1.1 varnish 
X-Cache-Svr smf1-aas-19-sr2.prod.twitter.com 
X-Cache MISS 
Content-Encoding gzip 
Content-Length 413 
Connection close 
X-Moz-Is-Feed 1 

...我想这是所有好的。我没有受到限制,然后显然我会得到一个400错误......但这对我来说看起来都很好。我只是无法弄清楚为什么会停止工作。什么也没有变。

我没看从另一个Twitter页面被返回我的鸣叫的XML和头都差不多,张玉峰头 - 除了状态行丢失:

Date Wed, 27 Jul 2011 20:24:42 GMT 
Server hi 
Cache-Control max-age=15, must-revalidate, max-age=300 
Expires Wed, 27 Jul 2011 20:29:42 GMT 
Content-Type application/atom+xml;charset=utf-8 
X-Pad avoid browser bug 
Vary Accept-Encoding 
X-Varnish 1922281127 
Age 0 
Via 1.1 varnish 
X-Cache-Svr smf1-aap-11-sr1.prod.twitter.com 
X-Cache MISS 
Content-Encoding gzip 
Content-Length 1919 
Connection close 
X-Moz-Is-Feed 1 

任何想法?有其他人遇到过这个问题吗?如果需要,我可以提供更多关于响应的信息。

回答

1

搜索api只返回最后4-6天的结果..我知道没用。

我还没有找到一个解决有关此任

+0

啊好吧,好吧,我不能告诉如果任何岗位都较旧的......我没有让他们似乎有没有办法看到twitter上的推文日期(而不是Twitter自己的用户)....是吗?你无法看到推文的日期? –

+1

嗯我不记得了,我会认为他们有日期戳...但是再次搜索结果只有4-6天。当它发生在我身上时,我知道什么时候推文被推出,然后通过对谷歌进行一些调查来发现。 – locrizak

+0

是的!这是问题!有人今天早上刚刚发推文,现在正在我的Feed中显示。谢谢你的时间 :) –