统计结果的数量在Twitter上某个单词 [英] Count number of results for a particular word on Twitter
问题描述
要进一步我的一个个人项目,我一直在琢磨怎么算的结果对微博用户指定单词的数量。我已经广泛使用他们的API,但一直没能拿出一个有效的,甚至中途实用的方法来计算一个特定的词的出现。实际结果是不是关键的,只要整体计数。我会继续抓我的头。任何意见或方向指向将是最AP preciated。
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.
例如。 <一href=\"http://search.twitter.com/search?q=tomatoes\">http://search.twitter.com/search?q=tomatoes
推荐答案
我能回去一个星期左右。我开始我的搜索与亚当贴,然后在搜索结果集的键关机最小的ID,像这样的参数,
的http://search.twitter.com/search.atom?lang=en&q=iphone&rpp=100&max_id=
其中,max_id = 100结果我刚拉着分钟(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.
这篇关于统计结果的数量在Twitter上某个单词的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!