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

Add proxy #248

Open
lyudad opened this issue Sep 17, 2020 · 4 comments
Open

Add proxy #248

lyudad opened this issue Sep 17, 2020 · 4 comments
Labels
enhancement New feature or request

Comments

@lyudad
Copy link

lyudad commented Sep 17, 2020

Hello. Account become blocked very quickly. Do you have opportunity to add proxies as parameter?

@mikedidomizio
Copy link
Member

NPM does allow proxies, although I can't recall for requests if you have to set it up through npm config or if environment variables will be enough HTTP_PROXY/HTTPS_PROXY.

. BoxRec has increased their security since this was worked on. Things to avoid are:

  • Too many requests at once. Allow a few seconds between requests
  • Certain pages might trigger the captcha. No workaround at this time

@mikedidomizio mikedidomizio added the enhancement New feature or request label Sep 19, 2020
@panoply
Copy link

panoply commented Sep 28, 2021

There might a solution around this by passing requests through serverless lambdas. I have not investigated it as yet. Another approach is simply throttling the requests. In terms of the captcha, you can parse the response and intercept the captcha nd trigger a retry if detected.

@mikedidomizio
Copy link
Member

Yeah, for testing I added a throttle which seems to be fine most of the time. It still does occasionally trip the captcha. As far as the captcha, I haven't found a solution yet.

I'm open to solutions if you come up with something 👍

@panoply
Copy link

panoply commented Sep 28, 2021

Happy days.

I will be working with the module on a side project, so I will see how far I can push it. Boxrec is getting difficult as we progress into a more digital landscape. It's ambitious but I am going to attempt to skin a UX and couple user interaction, twitter voices and generally just breathe some new life across the nexus.

Side note: Thanks for creating this Mike. There are very few boxing enthusiasts and/or former/active pugilists in this field. It's deeply refreshing when you find like minded folks who share a passion for the sweet science together with software engineering.

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

No branches or pull requests

3 participants