Skip to content

SearXNG is a free internet metasearch engine which aggregates results from various search services and databases. Users are neither tracked nor profiled.

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

Markus Heiser713814547a3c
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)})