Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fetchSearchTweets limits #42

Open
whynotmarc opened this issue Aug 12, 2023 · 2 comments
Open

fetchSearchTweets limits #42

whynotmarc opened this issue Aug 12, 2023 · 2 comments
Labels
documentation Improvements or additions to documentation

Comments

@whynotmarc
Copy link

whynotmarc commented Aug 12, 2023

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

There is a limit of fetching 20 tweets each fetch?

@karashiiro
Copy link
Collaborator

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 karashiiro added the documentation Improvements or additions to documentation label Aug 13, 2023
@whynotmarc
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants