NullDev / qwant-api

:crystal_ball: Unofficial API wrapper for qwant
https://qwant.com
Apache License 2.0
32 stars 4 forks source link

This doesn't work anymore #2

Open floweb opened 6 years ago

floweb commented 6 years ago

Hi,

To begin with, thank you very much for this work.

I found out recently that this lib doesn't work anymore, Qwant always returns empty result sets... and set status to success !

After some research, I found out that it basically needs some extra params in the URL. To be honest, I'm not sure about everything, but it does work as expected and it might be a little bit hacky:

I'll be sending a PR following this issue.

NullDev commented 6 years ago

Thank you very much! I will definitely look into that.

So far I found some clues here and here.

t contains the actual keywords and f appears to be some sort of query type.

Another major problem with the API appears to be its rate limits. As of now, they are very strict and once reached, they require a captcha. There are some inconsistencies with the error codes as well. The rate limit appears to be somewhere at double-digit level. Some users got the Error Code 24 but I received an email once with a user saying he got error code 9.

Anyway, thank you for your help! Merging now

NullDev commented 6 years ago

Ill actually keep this open for now

floweb commented 6 years ago

Thank you for your quick response, it's truly appreciated, hopefully we will find some solutions for the rate limit problem.

jumfive commented 5 years ago

How to render the captcha (to a display) in order to pass the error 24?

simoniz0r commented 5 years ago

How to render the captcha (to a display) in order to pass the error 24?

I would also like to know how to do this.