Twitter 搜索 API 结果 [英] Twitter search API results

查看:52
本文介绍了Twitter 搜索 API 结果的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是 Twitter API atom 格式

I'm using the Twitter API atom format

http://search.twitter.com/search.atom?q=Name&:)&since:year-month-date&rpp=1500

但它只返回 100 条推文,我也尝试使用 JSON 格式,但它只返回 100 个结果.有什么我做错的地方只得到 100 个结果吗?

but it's only returning 100 tweets, I tried using the JSON format as well, but it only returned 100 results. Is there anything that I'm doing wrong to only get 100 results?

推荐答案

是的,每页的结果数是有限的.为了获得更多结果,您必须像这样使用 page 参数:

Yes, you're limited on the number of results per page. In order to get more results, you have to use the page parameter like so:

http://search.twitter.com/search.atom?q=Name&:)&since:year-month-date&rpp=1500&page=2

编辑

rpp:返回的推文数量每页,最多 100 个.例如,

rpp: the number of tweets to return per page, up to a max of 100. E.g.,

http://search.twitter.com/search.atom?lang=en&q=devo&rpp=15

page:返回的页码,最多最多大约 1500 个结果(基于在 rpp * 页)

page: the page number to return, up to a max of roughly 1500 results (based on rpp * page)

来源:http://search.twitter.com/api/

换句话说,您的 rpp 不会像您预期的那样工作,因为最大值是 100.

In other words your rpp won't work as you expect because the max is 100.

这篇关于Twitter 搜索 API 结果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆