T
T
tuxx2014-11-14 13:33:28
PHP
tuxx, 2014-11-14 13:33:28

How to scrape from Twitter ALL tweets with a specific hashtag?

The task was given to write a tweet parser for a specific tag. Googled and stumbled upon the class . Connected, configured, received tweets, but the tweets are not quite the same and not all. The parser runs about 180 times in 15 minutes, picking up 100 messages at a time, but all 180 message sets are the same, although there are more than a hundred of them. This should not be, because. the since_id parameter constantly changes to the id of the last tweet.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
T
tuxx, 2014-11-14
@tuxx

He himself solved the problem. Was not attentive enough. The parameters for the next request with the next set of tweets are passed to search_metadata->next_results.

A
Andrey Kravchuk, 2014-12-15
@TaPTaK1989

I also used this class, but I can't search for Russian hashtags...

M
megastudio, 2020-02-04
@megastudio

We use the Twitter researcher API twitter.sneakin.info They have a paid version of their tweet collection API that you can order. In principle, we are satisfied, it is enough for our tasks. There are other options, for example, you can use the Twitter API or create a network of bots, but this is expensive and not a 100% option.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question