Skip to content

SearXNG is a free internet metasearch engine which aggregates results from various search services and databases. Users are neither tracked nor profiled.

[fix] duckduckgo.fetch_traist - URL of region definitions has changed

Markus Heisere97e1f911051
diff --git a/searx/engines/duckduckgo.py b/searx/engines/duckduckgo.py
index 50f43ad9a..636dfccd5 100644
--- a/searx/engines/duckduckgo.py
+++ b/searx/engines/duckduckgo.py
@@ -379,8 +379,8 @@ def fetch_traits(engine_traits: EngineTraits):
engine_traits.all_locale = 'wt-wt'
- # updated from u588 to u661 / should be updated automatically?
- resp = get('https://duckduckgo.com/util/u661.js')
+ # updated from u661.js to u.7669f071a13a7daa57cb / should be updated automatically?
+ resp = get('https://duckduckgo.com/dist/util/u.7669f071a13a7daa57cb.js')
if not resp.ok: # type: ignore
print("ERROR: response from DuckDuckGo is not OK.")