summaryrefslogtreecommitdiff
path: root/searx/engines/google.py
diff options
context:
space:
mode:
authorLéon Tiekötter <leon@tiekoetter.com>2022-08-08 19:34:38 +0200
committerMarkus Heiser <markus.heiser@darmarit.de>2022-08-09 06:23:59 +0200
commit94b3656b4abb141f7256654c20c9e309225530a6 (patch)
tree54cff9b486d6b511b0c55ccf10a537457015178d /searx/engines/google.py
parent925f3ff48748e287ed596783658a4d15df257e30 (diff)
[fix] google engine: results XPath
Seems google rolls out changes first on the `google.com` domain and later on the "language" domains. By example: yesterday [1] `google.com` did not work but `google.de` and `google.fr` did work, today they do not work any longer and this fix is needed on all domains. Closes: https://github.com/searxng/searxng/issues/1628 [1] https://github.com/searxng/searxng/issues/1628#issuecomment-1208191816
Diffstat (limited to 'searx/engines/google.py')
-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 5e80f6dcc..71438631e 100644
--- a/searx/engines/google.py
+++ b/searx/engines/google.py
@@ -113,7 +113,7 @@ filter_mapping = {0: 'off', 1: 'medium', 2: 'high'}
# ------------------------
# google results are grouped into <div class="jtfYYd ..." ../>
-results_xpath = '//div[contains(@class, "jtfYYd")]'
+results_xpath = '//div[contains(@class, "kvH3mc")]'
# google *sections* are no usual *results*, we ignore them
g_section_with_header = './g-section-with-header'