summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBnyro <bnyro@tutanota.com>2024-05-13 18:21:35 +0200
committerMarkus Heiser <markus.heiser@darmarIT.de>2024-05-15 16:03:35 +0200
commit0f2f52f0b52f08e6706fc32da090f682aaf42d41 (patch)
tree0761bbea2b321e3f6997de52488612b7e73bbb52
parent949a73103fb8af519544409aa7c0af8c6b72358e (diff)
downloadsearxng-0f2f52f0b52f08e6706fc32da090f682aaf42d41.tar.gz
searxng-0f2f52f0b52f08e6706fc32da090f682aaf42d41.zip
[fix] google: don't display that keyword is missing in content field
-rw-r--r--searx/engines/google.py2
1 files changed, 1 insertions, 1 deletions
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.