Browse Source

[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
Tom 3 years ago
parent
commit
e1d60051ca
1 changed files with 1 additions and 1 deletions
  1. 1 1
      searx/engines/qwant.py

+ 1 - 1
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"""