From fa108c140fb8fe523e9be432f6e92c6812acc6ea Mon Sep 17 00:00:00 2001 From: uply23333 Date: Thu, 31 Oct 2024 18:23:36 +0800 Subject: [PATCH] [fix] google: display every result when keyword is contained in content field --- 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 5fb5e9a7615..e1871c65413 100644 --- a/searx/engines/google.py +++ b/searx/engines/google.py @@ -62,7 +62,7 @@ results_xpath = './/div[contains(@jscontroller, "SC7lYd")]' title_xpath = './/a/h3[1]' href_xpath = './/a[h3]/@href' -content_xpath = './/div[@data-sncf="1"]' +content_xpath = './/div[contains(@data-sncf, "1")]' # Suggestions are links placed in a *card-section*, we extract only the text # from the links not the links itself.