From 5ec7df34808d0fe9f057347116b3abf463e5fa6d Mon Sep 17 00:00:00 2001 From: Bnyro Date: Fri, 11 Aug 2023 11:38:09 +0200 Subject: [PATCH] [mod] engine duckduckgo definitions: support for answer source --- searx/engines/duckduckgo_definitions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/searx/engines/duckduckgo_definitions.py b/searx/engines/duckduckgo_definitions.py index 39fed87e7..49f9dee34 100644 --- a/searx/engines/duckduckgo_definitions.py +++ b/searx/engines/duckduckgo_definitions.py @@ -102,7 +102,7 @@ def response(resp): if answer: logger.debug('AnswerType="%s" Answer="%s"', search_res.get('AnswerType'), answer) if search_res.get('AnswerType') not in ['calc', 'ip']: - results.append({'answer': html_to_text(answer)}) + results.append({'answer': html_to_text(answer), 'url': search_res.get('AbstractURL', '')}) # add infobox if 'Definition' in search_res: