From 94b3656b4abb141f7256654c20c9e309225530a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9on=20Tiek=C3=B6tter?= Date: Mon, 8 Aug 2022 19:34:38 +0200 Subject: [PATCH] [fix] google engine: results XPath Seems google rolls out changes first on the `google.com` domain and later on the "language" domains. By example: yesterday [1] `google.com` did not work but `google.de` and `google.fr` did work, today they do not work any longer and this fix is needed on all domains. Closes: https://github.com/searxng/searxng/issues/1628 [1] https://github.com/searxng/searxng/issues/1628#issuecomment-1208191816 --- searx/engines/google.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/searx/engines/google.py b/searx/engines/google.py index 5e80f6dcc..71438631e 100644 --- a/searx/engines/google.py +++ b/searx/engines/google.py @@ -113,7 +113,7 @@ filter_mapping = {0: 'off', 1: 'medium', 2: 'high'} # ------------------------ # google results are grouped into
-results_xpath = '//div[contains(@class, "jtfYYd")]' +results_xpath = '//div[contains(@class, "kvH3mc")]' # google *sections* are no usual *results*, we ignore them g_section_with_header = './g-section-with-header'