Count the number of results for a specific word on Twitter

To continue my own project, I thought about how to count the number of results for a user-specified word on Twitter . I used their API extensively, but could not find an effective or even halfway practical way of counting the occurrence of a specific word. Actual results are not critical, just a total score. I will scratch my head. Any ideas or directions would be most appreciated.

eg. http://search.twitter.com/search?q=tomatoes

+5
source share
2 answers

I can return in about a week. I start my search with the parameters that Adam sent, and then disabled the smallest identifier in the set of search results, for example, http://search.twitter.com/search.atom?lang=en&q=iphone&rpp=100&max_id= where max_id = min ( id) from 100 results that I just pulled out.

+2
source

net, but I made a recursive function to call the search query again and again until I find the word "page =" as a result.

0
source

Source: https://habr.com/ru/post/890069/


All Articles