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 woxikon.de - don't raise exception on empty result list
Markus Heisera15dfa5ee112
diff --git a/searx/engines/xpath.py b/searx/engines/xpath.pyindex 705a5211d..97656705a 100644--- a/searx/engines/xpath.py+++ b/searx/engines/xpath.py@@ -60,6 +60,9 @@ lang_all = 'en''''Replacement ``{lang}`` in :py:obj:`search_url` if language ``all`` isselected.'''+raise_for_httperror = True+'''True by default: raise an exception if the HTTP code of response is ``>=+300``'''soft_max_redirects = 0'''Maximum redirects, soft limit. Record an error but don't stop the engine'''@@ -176,7 +179,7 @@ def request(query, params):params['url'] = search_url.format(**fargs)params['soft_max_redirects'] = soft_max_redirects-+ params['raise_for_httperror'] = raise_for_httperrorreturn paramsdiff --git a/searx/settings.yml b/searx/settings.ymlindex 416450d9b..f83c104fd 100644--- a/searx/settings.yml+++ b/searx/settings.yml@@ -1808,6 +1808,7 @@ engines:url_xpath: //div[@class="upper-synonyms"]/a/@hrefcontent_xpath: //div[@class="synonyms-list-group"]title_xpath: //div[@class="upper-synonyms"]/a+ raise_for_httperror: falseabout:website: https://www.woxikon.de/wikidata_id: # No Wikidata ID