summaryrefslogtreecommitdiff
path: root/searx/engines/google_news.py
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2021-06-11 16:31:50 +0200
committerMarkus Heiser <markus.heiser@darmarit.de>2021-06-11 16:31:50 +0200
commit2ac3e5b20b50045574d55ff01cfa19f3ca9da8b9 (patch)
tree13ba5964da057d827cff88fc87449afe9ea67d86 /searx/engines/google_news.py
parent1ac396133677d4b4171bad89885a5cdacce51d83 (diff)
[fix] log messages from: google- images, news, scholar, videos
- HTTP header Accept-Language --> lang_info['headers']['Accept-Language'] - remove obsolete query_url log messages which is already logged by httpx._client:HTTP request Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'searx/engines/google_news.py')
-rw-r--r--searx/engines/google_news.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/searx/engines/google_news.py b/searx/engines/google_news.py
index 71b6093d3..485d602bc 100644
--- a/searx/engines/google_news.py
+++ b/searx/engines/google_news.py
@@ -85,6 +85,8 @@ def request(query, params):
# pylint: disable=undefined-variable
params, supported_languages, language_aliases, False
)
+ logger.debug(
+ "HTTP header Accept-Language --> %s", lang_info['headers']['Accept-Language'])
# google news has only one domain
lang_info['subdomain'] = 'news.google.com'
@@ -107,11 +109,8 @@ def request(query, params):
'oe': "utf8",
'gl': lang_info['country'],
}) + ('&ceid=%s' % ceid) # ceid includes a ':' character which must not be urlencoded
-
- logger.debug("query_url --> %s", query_url)
params['url'] = query_url
- logger.debug("HTTP header Accept-Language --> %s", lang_info.get('Accept-Language'))
params['headers'].update(lang_info['headers'])
params['headers']['Accept'] = (
'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8'