mirror of https://github.com/searx/searx
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>
This commit is contained in:
parent
03eb9c2461
commit
35496b5c51
|
@ -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)})
|
||||
|
||||
|
|
Loading…
Reference in New Issue