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

This doesn't work anymore #2

Open
floweb opened this issue Oct 9, 2018 · 5 comments · Fixed by #3
Open

This doesn't work anymore #2

floweb opened this issue Oct 9, 2018 · 5 comments · Fixed by #3
Assignees
Labels
bug needs investigation The issue isn't completely clear

Comments

@floweb
Copy link
Contributor

floweb commented Oct 9, 2018

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.

@NullDev
Copy link
Owner

NullDev commented Oct 9, 2018

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 NullDev closed this as completed in #3 Oct 9, 2018
@NullDev
Copy link
Owner

NullDev commented Oct 9, 2018

Ill actually keep this open for now

@NullDev NullDev reopened this Oct 9, 2018
@NullDev NullDev self-assigned this Oct 9, 2018
@NullDev NullDev added bug needs investigation The issue isn't completely clear labels Oct 9, 2018
@floweb
Copy link
Contributor Author

floweb commented Oct 9, 2018

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

@jumfive
Copy link

jumfive commented Nov 26, 2018

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

@simoniz0r
Copy link

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.

@NullDev NullDev pinned this issue Feb 8, 2019
@floweb floweb mentioned this issue Jun 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug needs investigation The issue isn't completely clear
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants