1
0
mirror of https://github.com/searxng/searxng.git synced 2024-11-19 02:40:11 +01:00

[fix] yahoo engine - don't lump all search suggestions together

Closes: https://github.com/searxng/searxng/issues/421
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
Markus Heiser 2021-10-21 09:38:04 +02:00 committed by Markus Heiser
parent 8116cfb006
commit 713814547a

View File

@ -153,7 +153,7 @@ def response(resp):
'content': content 'content': content
}) })
for suggestion in eval_xpath_list(dom, '//div[contains(@class, "AlsoTry")]'): for suggestion in eval_xpath_list(dom, '//div[contains(@class, "AlsoTry")]//table//a'):
# append suggestion # append suggestion
results.append({'suggestion': extract_text(suggestion)}) results.append({'suggestion': extract_text(suggestion)})