From 7b0e585df2f4afe06f8e24192bc0b9daacbad84f Mon Sep 17 00:00:00 2001 From: Nivesh Krishna Date: Wed, 29 Mar 2023 15:36:41 +0530 Subject: [PATCH] fix google selectors --- 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 fcc3133da..a44704587 100644 --- a/searx/engines/google.py +++ b/searx/engines/google.py @@ -118,10 +118,10 @@ filter_mapping = {0: "off", 1: "medium", 2: "high"} # specific xpath variables # ------------------------ -results_xpath = ".//div[@data-sokoban-container]" +results_xpath = ".//div[contains(@jscontroller, 'SC7lYd')]" title_xpath = ".//a/h3[1]" href_xpath = ".//a[h3]/@href" -content_xpath = ".//div[@data-content-feature=1]" +content_xpath = ".//div[@data-sncf]" # google *sections* are no usual *results*, we ignore them g_section_with_header = "./g-section-with-header" -- GitLab