1
0
mirror of https://github.com/searxng/searxng.git synced 2024-11-22 20:17:45 +01:00

Fix Google search engine.

- Fix broken links. Resolves #1794
- Fix missing results. Resolves #1829
This commit is contained in:
ngosang 2022-11-10 18:57:27 +01:00 committed by Markus Heiser
parent 117f69fa13
commit 78be4b4c70

View File

@ -112,9 +112,9 @@ filter_mapping = {0: 'off', 1: 'medium', 2: 'high'}
# specific xpath variables # specific xpath variables
# ------------------------ # ------------------------
results_xpath = '//div[contains(@class, "MjjYud")]' results_xpath = './/div[@data-sokoban-container]'
title_xpath = './/h3[1]' title_xpath = './/a/h3[1]'
href_xpath = './/a/@href' href_xpath = './/a[h3]/@href'
content_xpath = './/div[@data-content-feature=1]' content_xpath = './/div[@data-content-feature=1]'
# google *sections* are no usual *results*, we ignore them # google *sections* are no usual *results*, we ignore them