SearXNG is a free internet metasearch engine which aggregates results from various search services and databases. Users are neither tracked nor profiled.
Python bingbravedegoogleduckduckgogooglemetasearchprivacypythonqwantsearchsearch-enginesearxsearxngstartpageyahoo
[fix] engine: duckduckgo - don't quote query string
Markus Heiser10d3af84b833
diff --git a/searx/engines/duckduckgo.py b/searx/engines/duckduckgo.pyindex a7226043b..36125556b 100644--- a/searx/engines/duckduckgo.py+++ b/searx/engines/duckduckgo.py@@ -6,7 +6,7 @@ DuckDuckGo Litefrom typing import TYPE_CHECKINGimport re-from urllib.parse import urlencode, quote_plus+from urllib.parse import urlencodeimport jsonimport babelimport lxml.html@@ -263,7 +263,7 @@ def request(query, params):params['url'] = urlparams['method'] = 'POST'- params['data']['q'] = quote_plus(query)+ params['data']['q'] = query# The API is not documented, so we do some reverse engineering and emulate# what https://html.duckduckgo.com/html does when you press "next Page" link@@ -381,7 +381,11 @@ def response(resp):zero_click_info_xpath = '//div[@id="zero_click_abstract"]'zero_click = extract_text(eval_xpath(doc, zero_click_info_xpath)).strip()- if zero_click and "Your IP address is" not in zero_click and "Your user agent:" not in zero_click:+ if zero_click and (+ "Your IP address is" not in zero_click+ and "Your user agent:" not in zero_click+ and "URL Decoded:" not in zero_click+ ):current_query = resp.search_params["data"].get("q")results.append(