diff --git a/searx/engines/google.py b/searx/engines/google.py index fcc3133da15c4d280832fd2c45651ca6b11625a2..a44704587d6c5e1c29cab4a42d996828ed8bde3c 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"