From d592159cc5c815fb0c44bed69474cc77bb1bd840 Mon Sep 17 00:00:00 2001 From: Alexandre Flament Date: Sat, 15 Jan 2022 22:56:34 +0100 Subject: [PATCH] [fix] startpage: workaround to use the startpage network workaround for the issue #762 --- searx/engines/startpage.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/searx/engines/startpage.py b/searx/engines/startpage.py index d21272a0..d850eebe 100644 --- a/searx/engines/startpage.py +++ b/searx/engines/startpage.py @@ -16,7 +16,7 @@ from lxml import html from babel import Locale from babel.localedata import locale_identifiers -from searx import network +from searx.network import get from searx.utils import extract_text, eval_xpath, match_language from searx.exceptions import ( SearxEngineResponseException, @@ -84,7 +84,7 @@ def get_sc_code(headers): if time() > (sc_code_ts + 3000): logger.debug("query new sc time-stamp ...") - resp = network.get(base_url, headers=headers) + resp = get(base_url, headers=headers) raise_captcha(resp) dom = html.fromstring(resp.text)