summaryrefslogtreecommitdiff
path: root/searx/engines
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2022-01-15 22:56:34 +0100
committerAlexandre Flament <alex@al-f.net>2022-01-15 22:56:34 +0100
commitf9271d595fb08ff29408eecb5a0eb5fd9f7cc314 (patch)
tree0958e27609400e61441a8ea6df41ee78cece1c43 /searx/engines
parentdf238e944c8902ac7e075123ca22902c367fd0de (diff)
downloadsearxng-f9271d595fb08ff29408eecb5a0eb5fd9f7cc314.tar.gz
searxng-f9271d595fb08ff29408eecb5a0eb5fd9f7cc314.zip
[fix] startpage: workaround to use the startpage network
workaround for the issue #762
Diffstat (limited to 'searx/engines')
-rw-r--r--searx/engines/startpage.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/searx/engines/startpage.py b/searx/engines/startpage.py
index 5e4490afb..cf6872717 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)