From 0f2f52f0b52f08e6706fc32da090f682aaf42d41 Mon Sep 17 00:00:00 2001 From: Bnyro Date: Mon, 13 May 2024 18:21:35 +0200 Subject: [PATCH] [fix] google: don't display that keyword is missing 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 fd59a0e2e..ef82a057b 100644 --- a/searx/engines/google.py +++ b/searx/engines/google.py @@ -62,7 +62,7 @@ filter_mapping = {0: 'off', 1: 'medium', 2: 'high'} results_xpath = './/div[contains(@jscontroller, "SC7lYd")]' title_xpath = './/a/h3[1]' href_xpath = './/a[h3]/@href' -content_xpath = './/div[@data-sncf]' +content_xpath = './/div[@data-sncf="1"]' # Suggestions are links placed in a *card-section*, we extract only the text # from the links not the links itself.