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

Added a 4 second delay per download due to rate-limiting #266

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nicholascc
Copy link

Fixes #264 (15 requests per minute rate-limit by archive.org) by adding a 4-second delay between every download. This is currently a bit of a hack - there should probably be a configurable delay parameter. I'm not good enough at Ruby to implement this in its best form, so someone else should add features like that in another pull request if they want to.

Still, since this library is currently non-functional due to the rate limit, we should just fix it in the simplest way possible right now - by merging this pull request.

Currently a bit of a hack - there should probably be a configurable delay parameter.
@nicholascc nicholascc changed the title Fixed #264 by adding a 4 second delay per download Added a 4 second delay per download due to rate-limiting Nov 12, 2023
@FrankyBoy
Copy link

There should also be a delay when fetching snapshot pages (i.e. get_all_snapshots_to_consider). This seems also to be affected by the rate-limiting.

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

Successfully merging this pull request may close these issues.

wayback_machine_downloader get lots Connection refused
2 participants