yahoo engine - don't lump all search suggestions together (#3208)

This commit is contained in:
Eric Zhang 2022-04-14 03:00:54 +08:00 committed by GitHub
parent ba95fd570b
commit b7d91c9c95
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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)})