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 ability to disable or enable safesearch on Qwant web & image search #1640

Closed
Krando opened this issue Aug 9, 2022 · 1 comment · Fixed by #1652
Closed

Add ability to disable or enable safesearch on Qwant web & image search #1640

Krando opened this issue Aug 9, 2022 · 1 comment · Fixed by #1652

Comments

@Krando
Copy link

Krando commented Aug 9, 2022

Is your feature request related to a problem? Please describe.
Searxng has so far not implemented safesearch on it's Qwant module yet but this can be easily done using the 's' parameter.

Describe the solution you'd like
For any search on it's web or image section, simply attach &s=0 to disable safesearch, &s=1 to enable moderate safesearch or &s=2 to enable strict safesearch.

This is with strict safesearch:

https://www.qwant.com/?s=2&q=dead+lion&t=images&s=2

This is with no safesearch:

https://www.qwant.com/?s=2&q=dead+lion&t=images&s=0

Describe alternatives you've considered

Additional context

@Krando Krando changed the title Add safesearch to Qwant web & image search Add ability to disable or enable safesearch on Qwant web & image search Aug 9, 2022
@return42 return42 self-assigned this Aug 10, 2022
return42 added a commit to return42/searxng that referenced this issue Aug 10, 2022
Closes: searxng#1640
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
@return42
Copy link
Member

@Krando thanks for pointing out / I send #1652 would you give it a try?

FWIW: we use the API https://api.qwant.com/v3 .. the safesearch argument in the API is: &safesearch=

return42 added a commit to return42/searxng that referenced this issue Aug 12, 2022
Closes: searxng#1640
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
return42 added a commit to return42/searxng that referenced this issue Aug 13, 2022
Closes: searxng#1640
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
return42 added a commit to return42/searxng that referenced this issue Aug 14, 2022
Closes: searxng#1640
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants