我一直在使用Twitter搜索api和PHP从我的帐户中拉推文:
http://search.twitter.com/search.atom?q=from=myaccount(使用simplexml和缓存提要,所以我只调用twitter一次每小时)
它已经正常工作了大约两个星期,现在什么都没有了。当我访问上面的url时(用我的帐户),除了提要的标题外,我没有得到任何东西。
我在报头中得到的响应是:
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格式返回我的tweet,标题几乎相同-除了状态行缺失:
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
任何想法?还有其他人遇到过这个问题吗?如果需要的话,我可以提供更多关于回应的信息。
搜索api只返回最近4-6天的结果。我知道没用。
我还没有找到解决这个问题的方法