summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom <70907959+ZetaTom@users.noreply.github.com>2021-11-17 18:13:54 +0100
committerGitHub <noreply@github.com>2021-11-17 18:13:54 +0100
commite1d60051cac413e208ad94d1cd0913fc6e9abcac (patch)
tree2afc009dc0cf0ea76f8649dfbf0898aac1c3612f
parent08d66804140f860837c9a03d2c0bdedd78b6cd14 (diff)
[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
-rw-r--r--searx/engines/qwant.py2
1 files changed, 1 insertions, 1 deletions
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"""