diff options
author | uply23333 <uply233@163.com> | 2024-10-31 18:23:36 +0800 |
---|---|---|
committer | Markus Heiser <markus.heiser@darmarIT.de> | 2024-10-31 13:21:32 +0100 |
commit | fa108c140fb8fe523e9be432f6e92c6812acc6ea (patch) | |
tree | 941eb83daea8c680123396554ed01a6410c4c304 /searx | |
parent | fa4dfd4efea01d558dd4c8b0d6db39708ee03917 (diff) | |
download | searxng-fa108c140fb8fe523e9be432f6e92c6812acc6ea.tar.gz searxng-fa108c140fb8fe523e9be432f6e92c6812acc6ea.zip |
[fix] google: display every result when keyword is contained in content field
Diffstat (limited to 'searx')
-rw-r--r-- | searx/engines/google.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/engines/google.py b/searx/engines/google.py index 5fb5e9a76..e1871c654 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="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. |