From 713814547a3ce1f3b800bd4f96ecb616b891362f Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Thu, 21 Oct 2021 09:38:04 +0200 Subject: [PATCH] [fix] yahoo engine - don't lump all search suggestions together Closes: https://github.com/searxng/searxng/issues/421 Signed-off-by: Markus Heiser --- searx/engines/yahoo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/searx/engines/yahoo.py b/searx/engines/yahoo.py index 09d06aff0..bd6e6721c 100644 --- a/searx/engines/yahoo.py +++ b/searx/engines/yahoo.py @@ -153,7 +153,7 @@ def response(resp): '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 results.append({'suggestion': extract_text(suggestion)})