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

feat(scraping): change lookup impl, add randomize sleep #110

Merged
merged 2 commits into from Sep 20, 2020
Merged

feat(scraping): change lookup impl, add randomize sleep #110

merged 2 commits into from Sep 20, 2020

Conversation

Doridian
Copy link
Collaborator

Description

This changes the async queue into multiple indepentend timeouts.
It also adds a randomized sleep which might help avoid newegg's bot detection even better (it still CAPTCHA's me at times, so we probably need more on that front).
It also doesn't suffer from the (theoretical) bug of the async queue draining

Testing

Ran with my usual configuration and observed it correctly creating timeouts

New dependencies

@Doridian Doridian requested a review from jef as a code owner September 20, 2020 16:31
src/config.ts Show resolved Hide resolved
src/index.ts Show resolved Hide resolved
@jef jef changed the title feat(scraping): Change the system for lookups. Added randomized sleep feat(scraping): change lookup impl, add randomize sleep Sep 20, 2020
@jef jef merged commit dc0f710 into jef:main Sep 20, 2020
@jef jef mentioned this pull request Sep 20, 2020
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.

None yet

2 participants