From a08df82574e47703ba236180222d9ffeb33fe4fc Mon Sep 17 00:00:00 2001 From: Alexandre Flament Date: Tue, 3 Nov 2020 10:54:02 +0100 Subject: [fix] scanr_structure engine: fix import --- searx/engines/scanr_structures.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'searx/engines') diff --git a/searx/engines/scanr_structures.py b/searx/engines/scanr_structures.py index 6dbbf4fd9..72fd2b3c9 100644 --- a/searx/engines/scanr_structures.py +++ b/searx/engines/scanr_structures.py @@ -11,7 +11,7 @@ """ from json import loads, dumps -from urllib.parse import html_to_text +from searx.utils import html_to_text # engine dependent config categories = ['science'] -- cgit v1.2.3 From eed43783f98dc58c94af8132452b92a172ea03b5 Mon Sep 17 00:00:00 2001 From: Alexandre Flament Date: Tue, 3 Nov 2020 10:55:08 +0100 Subject: [fix] comamnd engine: fix import --- searx/engines/command.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'searx/engines') diff --git a/searx/engines/command.py b/searx/engines/command.py index b9e672ffa..1b73861f7 100644 --- a/searx/engines/command.py +++ b/searx/engines/command.py @@ -14,8 +14,8 @@ along with searx. If not, see < http://www.gnu.org/licenses/ >. ''' +import re from os.path import expanduser, isabs, realpath, commonprefix -from re import MULTILINE, search as re_search from shlex import split as shlex_split from subprocess import Popen, PIPE from time import time @@ -59,7 +59,7 @@ def init(engine_settings): if 'parse_regex' in engine_settings: parse_regex = engine_settings['parse_regex'] for result_key, regex in parse_regex.items(): - _compiled_parse_regex[result_key] = re.compile(regex, flags=MULTILINE) + _compiled_parse_regex[result_key] = re.compile(regex, flags=re.MULTILINE) if 'delimiter' in engine_settings: delimiter = engine_settings['delimiter'] -- cgit v1.2.3