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] qwant engine: set header Accept-Language to bypass bot detection (#5382)

Aadnizea4a55fa57a4
diff --git a/searx/engines/qwant.py b/searx/engines/qwant.py
index 3c9d40e10..931a60a6c 100644
--- a/searx/engines/qwant.py
+++ b/searx/engines/qwant.py
@@ -82,6 +82,9 @@ max_page = 5
"""5 pages maximum (``&p=5``): Trying to do more just results in an improper
redirect"""
+# Otherwise Qwant will return 403 if not set
+send_accept_language_header = True
+
qwant_categ = None
"""One of ``web-lite`` (or ``web``), ``news``, ``images`` or ``videos``"""