问题
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