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] add 'categories' to PYLINT_ADDITIONAL_BUILTINS_FOR_ENGINES
Markus Heiser82847df3001b
diff --git a/manage b/manageindex 8b1975bde..bd89e7f2b 100755--- a/manage+++ b/manage@@ -37,7 +37,7 @@ PYLINT_SEARX_DISABLE_OPTION="\I,C,R,\W0105,W0212,W0511,W0603,W0613,W0621,W0702,W0703,W1401,\E1136"-PYLINT_ADDITIONAL_BUILTINS_FOR_ENGINES="supported_languages,language_aliases,logger"+PYLINT_ADDITIONAL_BUILTINS_FOR_ENGINES="supported_languages,language_aliases,logger,categories"PYLINT_OPTIONS="-m pylint -j 0 --rcfile .pylintrc"help() {diff --git a/searx/engines/xpath.py b/searx/engines/xpath.pyindex 3a8d32a6a..a7a5e57ab 100644--- a/searx/engines/xpath.py+++ b/searx/engines/xpath.py@@ -184,7 +184,7 @@ def response(resp):'''results = []dom = html.fromstring(resp.text)- is_onion = 'onions' in categories # pylint: disable=undefined-variable+ is_onion = 'onions' in categoriesif results_xpath:for result in eval_xpath_list(dom, results_xpath):