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] update_ahmia_blacklist.py - `User-Agent` become required
Markus Heiserc48993452f84
diff --git a/searxng_extra/update/update_ahmia_blacklist.py b/searxng_extra/update/update_ahmia_blacklist.pyindex c890b3760..969f9aeb6 100755--- a/searxng_extra/update/update_ahmia_blacklist.py+++ b/searxng_extra/update/update_ahmia_blacklist.py@@ -18,10 +18,10 @@ URL = 'https://ahmia.fi/blacklist/banned/'def fetch_ahmia_blacklist():- resp = requests.get(URL, timeout=3.0)+ resp = requests.get(URL, timeout=3.0, headers={"User-Agent": "SearXNG"})if resp.status_code != 200:# pylint: disable=broad-exception-raised- raise Exception("Error fetching Ahmia blacklist, HTTP code " + resp.status_code) # type: ignore+ raise Exception("Error fetching Ahmia blacklist, HTTP code " + str(resp.status_code))return resp.text.split()