From b7d91c9c95628c2733f0c136d3742ae97ca1790a Mon Sep 17 00:00:00 2001 From: Eric Zhang Date: Thu, 14 Apr 2022 03:00:54 +0800 Subject: [PATCH] yahoo engine - don't lump all search suggestions together (#3208) --- 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 71f93225..591dd501 100644 --- a/searx/engines/yahoo.py +++ b/searx/engines/yahoo.py @@ -143,7 +143,7 @@ def response(resp): 'title': title, '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)})