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] google news - send CONSENT Cookie to not be redirected
Markus Heiser9328c66e93af
diff --git a/searx/engines/google_news.py b/searx/engines/google_news.pyindex 38cbbd0ea..c1c97b700 100644--- a/searx/engines/google_news.py+++ b/searx/engines/google_news.py@@ -19,6 +19,7 @@ Definitions`_. Not all parameters can be appied:# pylint: disable=invalid-name, missing-function-docstringimport binascii+from datetime import datetimeimport refrom urllib.parse import urlencodefrom base64 import b64decode@@ -115,6 +116,7 @@ def request(query, params):params['headers']['Accept'] = ('text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8')+ params['headers']['Cookie'] = "CONSENT=YES+cb.%s-14-p0.en+F+941;" % datetime.now().strftime("%Y%m%d")return params