summaryrefslogtreecommitdiff
path: root/searx/engines/yahoo.py
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2021-10-21 09:38:04 +0200
committerMarkus Heiser <markus.heiser@darmarIT.de>2021-10-21 07:51:05 +0000
commit713814547a3ce1f3b800bd4f96ecb616b891362f (patch)
tree5a5ed6d75de37029218d6a319a01bcdcb26dd23a /searx/engines/yahoo.py
parent8116cfb006abb4e940ad24f6ff1139765f29214e (diff)
downloadsearxng-713814547a3ce1f3b800bd4f96ecb616b891362f.tar.gz
searxng-713814547a3ce1f3b800bd4f96ecb616b891362f.zip
[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>
Diffstat (limited to 'searx/engines/yahoo.py')
-rw-r--r--searx/engines/yahoo.py2
1 files changed, 1 insertions, 1 deletions
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)})