从 API 搜索结果中获取推文总数? [英] Get total count of tweets from a API search result?

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

问题描述

你好,我正在尝试计算来自 Twitter 搜索 API 响应的所有推文,有人有任何想法吗?

Hello Guy's I'm trying to count all of the tweets from a Twitter search API response, anyone got any ideas?

我尝试的一切似乎都不起作用,我正在用 JSON 做所有事情,所以我最好的猜测是获取 max_id 并从对象中的第一项中减去 id.但我认为这并没有给我一个正确的数字.

Everything I tried doesn't seem to work, I'm doing everything with jSON so my best guess is get the max_id and subtract the id from the first item in the object. But I think that's not giving me a correct number.

推荐答案

我猜你不能这样做:twitter api 文档不显示任何内容,你可以看到 计算 Twitter 上特定单词的结果数量 了解更多详情.

I'm guessing you can't do that: the twitter api docs don't show anything and you can see Count number of results for a particular word on Twitter for more detail.

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

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