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 searxng_extra/update/update*.py scripts
Alexandre Flament578b2a81837b
diff --git a/searxng_extra/update/update_currencies.py b/searxng_extra/update/update_currencies.pyindex e51692e72..41ee2fa0b 100755--- a/searxng_extra/update/update_currencies.py+++ b/searxng_extra/update/update_currencies.py@@ -19,10 +19,11 @@ import jsonfrom os.path import joinfrom searx import searx_dir-from searx.locales import LOCALE_NAMES+from searx.locales import LOCALE_NAMES, locales_initializefrom searx.engines import wikidata, set_loggersset_loggers(wikidata, 'wikidata')+locales_initialize()# ORDER BY (with all the query fields) is important to keep a deterministic result order# so multiple invokation of this script doesn't change currencies.jsondiff --git a/searxng_extra/update/update_engine_descriptions.py b/searxng_extra/update/update_engine_descriptions.pyindex 5b73fd396..f3d6e7fa8 100755--- a/searxng_extra/update/update_engine_descriptions.py+++ b/searxng_extra/update/update_engine_descriptions.py@@ -22,13 +22,14 @@ from langdetect.lang_detect_exception import LangDetectExceptionfrom searx.engines import wikidata, set_loggersfrom searx.utils import extract_text, match_language-from searx.locales import LOCALE_NAMES+from searx.locales import LOCALE_NAMES, locales_initializefrom searx import searx_dirfrom searx.utils import gen_useragentimport searx.searchimport searx.networkset_loggers(wikidata, 'wikidata')+locales_initialize()SPARQL_WIKIPEDIA_ARTICLE = """SELECT DISTINCT ?item ?name