qwant-api icon indicating copy to clipboard operation
qwant-api copied to clipboard

This doesn't work anymore

Open floweb opened this issue 7 years ago • 5 comments
trafficstars

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:

  • t variable which is basically a copy of the query (I think it's t for translation, but not sure)
  • f variable which is due to be set (seems like it's a boolean but I don't know what it is)
  • and uiv variable which had to be set to 4

I'll be sending a PR following this issue.

floweb avatar Oct 09 '18 06:10 floweb

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 avatar Oct 09 '18 07:10 NullDev

Ill actually keep this open for now

NullDev avatar Oct 09 '18 07:10 NullDev

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

floweb avatar Oct 09 '18 08:10 floweb

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

jumfive avatar Nov 26 '18 08:11 jumfive

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.

simoniz0r avatar Jan 14 '19 00:01 simoniz0r