[fix] google engine - suggestion

BTW: google no longer offers *spelling suggestions*

Closes: https://github.com/searxng/searxng/issues/442
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
Markus Heiser
2021-11-25 19:38:14 +01:00
parent bd285de48a
commit 488ace1da9
2 changed files with 1 additions and 14 deletions

View File

@@ -37,7 +37,6 @@ from searx.engines.google import (
href_xpath,
content_xpath,
suggestion_xpath,
spelling_suggestion_xpath,
detect_google_sorry,
)
@@ -186,7 +185,4 @@ def response(resp):
# append suggestion
results.append({'suggestion': extract_text(suggestion)})
for correction in eval_xpath_list(dom, spelling_suggestion_xpath):
results.append({'correction': extract_text(correction)})
return results