Browse Source

[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>
Markus Heiser 3 years ago
parent
commit
713814547a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      searx/engines/yahoo.py

+ 1 - 1
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)})