From 188cac773e9c74f6ac1fc9c34c5328dabaf8964a Mon Sep 17 00:00:00 2001 From: Joseph Cheung Date: Wed, 8 Mar 2023 00:32:49 +0800 Subject: [PATCH] c --- searx/engines/wolframalpha_noapi.py | 14 +++++++------- searx/webapp.py | 2 +- searx/webapp1.py | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/searx/engines/wolframalpha_noapi.py b/searx/engines/wolframalpha_noapi.py index 5bb3f6b04..7f97da359 100644 --- a/searx/engines/wolframalpha_noapi.py +++ b/searx/engines/wolframalpha_noapi.py @@ -114,13 +114,13 @@ def response(resp): if not result_chunks: return [] - results.append( - { - 'infobox': infobox_title, - 'attributes': result_chunks, - 'urls': [{'title': 'WolframAlpha', 'url': resp.request.headers['Referer']}], - } - ) + # results.append( + # { + # 'infobox': infobox_title, + # 'attributes': result_chunks, + # 'urls': [{'title': 'WolframAlpha', 'url': resp.request.headers['Referer']}], + # } + # ) results.append( { diff --git a/searx/webapp.py b/searx/webapp.py index 5c3dfe135..a10678dc1 100755 --- a/searx/webapp.py +++ b/searx/webapp.py @@ -682,7 +682,7 @@ def process_result(result): # 判断返回值是否为'null',如果不是则更新title if response.text != 'null': - result['title'] += ' 网站备案主体:' +response.text + result['title'] += ' (该网站属于:' +response.text + ')' @app.route('/search', methods=['GET', 'POST']) def search(): diff --git a/searx/webapp1.py b/searx/webapp1.py index 22c5506d1..8cf0219b6 100644 --- a/searx/webapp1.py +++ b/searx/webapp1.py @@ -682,7 +682,7 @@ def process_result(result): # 判断返回值是否为'null',如果不是则更新title if response.text != 'null': - result['title'] += ' 网站备案主体:' +response.text + result['title'] += ' (该网站属于:' +response.text + ')' @app.route('/search', methods=['GET', 'POST']) def search():