summaryrefslogtreecommitdiff
path: root/searx/engines/google.py
diff options
context:
space:
mode:
authorngosang <ngosang@hotmail.es>2022-11-10 18:57:27 +0100
committerMarkus Heiser <markus.heiser@darmarit.de>2022-11-11 07:34:19 +0100
commit78be4b4c70679295782f1e2d56786124be6babed (patch)
tree2c6eed7a32b3f9a3c7cc4dbe0b6806c9472b0e14 /searx/engines/google.py
parent117f69fa138ab5a50932ac673bf9f88033cbba33 (diff)
downloadsearxng-78be4b4c70679295782f1e2d56786124be6babed.tar.gz
searxng-78be4b4c70679295782f1e2d56786124be6babed.zip
Fix Google search engine.
- Fix broken links. Resolves #1794 - Fix missing results. Resolves #1829
Diffstat (limited to 'searx/engines/google.py')
-rw-r--r--searx/engines/google.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/searx/engines/google.py b/searx/engines/google.py
index 2f894b21f..d77837c9e 100644
--- a/searx/engines/google.py
+++ b/searx/engines/google.py
@@ -112,9 +112,9 @@ filter_mapping = {0: 'off', 1: 'medium', 2: 'high'}
# specific xpath variables
# ------------------------
-results_xpath = '//div[contains(@class, "MjjYud")]'
-title_xpath = './/h3[1]'
-href_xpath = './/a/@href'
+results_xpath = './/div[@data-sokoban-container]'
+title_xpath = './/a/h3[1]'
+href_xpath = './/a[h3]/@href'
content_xpath = './/div[@data-content-feature=1]'
# google *sections* are no usual *results*, we ignore them