From e1d60051cac413e208ad94d1cd0913fc6e9abcac Mon Sep 17 00:00:00 2001 From: Tom <70907959+ZetaTom@users.noreply.github.com> Date: Wed, 17 Nov 2021 18:13:54 +0100 Subject: [PATCH] [fix] Qwant search query string Search string: "!qwant time" Resulting request URL: https://api.qwant.com/v3/search/web?q=q=time&count=10&offset=0&device=desktop&safesearch=1&locale=en_US Notice the double "q=" Resulting request URL after fix: https://api.qwant.com/v3/search/web?q=time&count=10&offset=0&device=desktop&safesearch=1&locale=en_US --- searx/engines/qwant.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/searx/engines/qwant.py b/searx/engines/qwant.py index 249a1f4e4..0312e518c 100644 --- a/searx/engines/qwant.py +++ b/searx/engines/qwant.py @@ -59,7 +59,7 @@ category_to_keyword = { } # search-url -url = 'https://api.qwant.com/v3/search/{keyword}?q={query}&count={count}&offset={offset}' +url = 'https://api.qwant.com/v3/search/{keyword}?{query}&count={count}&offset={offset}' def request(query, params): """Qwant search request"""