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

How to deal with error 24? #4

Open
simoniz0r opened this issue Jan 14, 2019 · 5 comments
Open

How to deal with error 24? #4

simoniz0r opened this issue Jan 14, 2019 · 5 comments

Comments

@simoniz0r
Copy link

24	Rate limit reached - IP Blocked until captcha is solved

How do I solve this captcha? Is there some API endpoint for this or?

@geoffyuen
Copy link

geoffyuen commented Feb 16, 2019

@simoniz0r Did you ever find a solution for this? If you wait a day or two can you use the api again?

Edit: Answering this myself... if you visit qwant.com and do a search it prompts you for a captcha.

@n-o-kh
Copy link

n-o-kh commented Aug 8, 2019

You can check the line in the code: https://github.com/NLDev/qwant-api/blob/master/lib/qwant-api.js#L52 and replace:

https://api.qwant.com/api/search/${keyword}?count=${count}&q=${query}&t=${query}&f=&offset=${offset}&locale=${lang}&uiv=4

with

http://api.scraperapi.com/?api_key=YOURAPIKEY&url=https://api.qwant.com/api/search/${keyword}?count=${count}&q=${query}&t=${query}&f=&offset=${offset}&locale=${lang}&uiv=4

You can register with scraperapi on the link below to bypass all the captcha issue (make sure you replace YOURAPIKEY with the api key you register with scraperapi.

There is a free version with 1000 calls per month or you can use the paid version:
https://www.scraperapi.com/pricing?fp_ref=n_o_kh

@simoniz0r
Copy link
Author

I've found a similar solution, but with 10,000 free uses per month at https://scrapestack.com

@polyjitter
Copy link

Is the ratelimit known?

@HQuser
Copy link

HQuser commented Jul 1, 2020

I've found a similar solution, but with 10,000 free uses per month at https://scrapestack.com

They now do not provide free HTTPS

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

No branches or pull requests

5 participants