统计twitter搜索API返回的页面数
有没有办法计算 Twitter 搜索 API 返回的页面数?我只是想知道是否有办法访问特定查询有多少页面。
Is there a way to count the number of pages returned by the twitter search API? I'm just trying to get an idea if there's a way to access how many pages there are for a specific query.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
据我了解,无法获取 Twitter 查询的“总页数”或总记录数。如果您查看 Twitter 界面或任何使用 Twitter 的内容,您会发现它们没有任何数量的页面表示。相反,您应该做的是使用“加载更多推文”选项来转到下一页,而不是使用“第 1 页(共 10 页)”。
无论如何,这种分页方式被许多人认为已经过时了:)
As I understand, there is no way to get "total number of pages", or total number of records, for a twitter query. If you look at twitters interface, or anything that uses twitter, they don't have any number of pages represented. What you should do instead, is to have a "load more tweets" option that goes to the next page, instead of having a "page 1 of 10".
That kind of paging is by many considered obsolete anyways :)
twitter 搜索 API 是这样说的:
所以是的,有一种方法,但这取决于您想要每页获得多少条推文。
The twitter search API says this:
so yeah, there is a way, but that depends on how many tweets per page you want to get.