Twitter atom don't retrieving old tweets

二次信任 提交于 2019-12-25 04:44:44

问题


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?

Thank you.


回答1:


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.

The only way to restrict the age of the tweets in the result is the parameter since_id.

Edit: The search API seems to be limited to 7 days.



来源:https://stackoverflow.com/questions/4439998/twitter-atom-dont-retrieving-old-tweets

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!