计算 Twitter 上特定单词的结果数

发布于 2024-07-14 00:52:30 字数 324 浏览 6 评论 0原文

为了进一步推进我的个人项目,我一直在思考如何计算 Twitter。 我广泛使用了他们的 API,但一直无法想出一种有效甚至半实用的方法来计算特定单词的出现次数。 实际结果并不重要,重要的是总体计数。 我会继续挠头。 任何想法或方向指示将不胜感激。

例如 http://search.twitter.com/search?q=tomatoes

To further a personal project of mine, I have been pondering how to count the number of results for a user specified word on Twitter. I have used their API extensively, but have not been able to come up with an efficient or even halfway practical way to count the occurrences of a particular word. The actual results are not critical, just the overall count. I'll keep scratching my head. Any ideas or direction pointing would be most appreciated.

e.g. http://search.twitter.com/search?q=tomatoes

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

一影成城 2024-07-21 00:52:30

一周左右我就可以回去了。 我使用 Adam 发布的参数开始搜索,然后键入搜索结果集中最小的 id,如下所示,
http://search.twitter.com /search.atom?lang=en&q=iphone&rpp=100&max_id=
其中 max_id = 我刚刚提取的 100 个结果的 min(id)。

I'm able to go back about a week. I start my search with the parameters that Adam posted and then key off of the smallest id in the set of search results, like so,
http://search.twitter.com/search.atom?lang=en&q=iphone&rpp=100&max_id=
where max_id = the min(id) of the 100 results I just pulled.

甜点 2024-07-21 00:52:30

net 但我已经创建了递归函数来一次又一次地调用搜索查询,直到我在结果中找不到单词“page=”。

net but I have made recursive function to call search query again and again until I don't find word "page=" in result.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文