twitter-scraper icon indicating copy to clipboard operation
twitter-scraper copied to clipboard

fetchSearchTweets limits

Open whynotmarc opened this issue 2 years ago • 2 comments

It seems like when using fetchSearchTweets example: await scraper.fetchSearchTweets('elonmusk', 25)

There is a limit of fetching 20 tweets each fetch?

whynotmarc avatar Aug 12 '23 20:08 whynotmarc

That function returns a single page of results, but the number of results per page is undefined. It should return a cursor you can use to get more data.

The fetch functions are mostly intended for use in environments that don't support async generators — I recommend using searchTweets instead so pagination is handled automatically.

karashiiro avatar Aug 13 '23 13:08 karashiiro

That function returns a single page of results, but the number of results per page is undefined. It should return a cursor you can use to get more data.

The fetch functions are mostly intended for use in environments that don't support async generators — I recommend using searchTweets instead so pagination is handled automatically.

Yeah I figured the cursor part out 👍 But as of right now I have to use fetchSearchTweets since searchTweets doesn't work with reply's right now.

whynotmarc avatar Aug 13 '23 13:08 whynotmarc