[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
dependabot/pip/master/sphinx-6.1.3
Léon Tiekötter 2 years ago committed by Markus Heiser
parent 925f3ff487
commit 94b3656b4a

@ -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'

Loading…
Cancel
Save