From 86bd82d691351190c15eb090875a6f3be56703a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9on=20Tiek=C3=B6tter?= Date: Tue, 26 Jul 2022 00:24:15 +0200 Subject: [PATCH] [fix] google engine: results XPath --- searx/engines/google.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/searx/engines/google.py b/searx/engines/google.py index 8e548215..7fc022ea 100644 --- a/searx/engines/google.py +++ b/searx/engines/google.py @@ -108,8 +108,8 @@ filter_mapping = { # specific xpath variables # ------------------------ -# google results are grouped into
-results_xpath = '//div[@id="search"]//div[contains(@class, "g ")]' +# google results are grouped into
+results_xpath = '//div[contains(@class, "jtfYYd")]' results_xpath_mobile_ui = '//div[contains(@class, "g ")]' # google *sections* are no usual *results*, we ignore them