on master help sign in
[fix] startpage: workaround to use the startpage network

workaround for the issue #762

commitd592159cc5c815fb0c44bed69474cc77bb1bd840 authorAlexandre Flament <alex@al-f.net> dateSat 15 Jan 2022, 22:56 (5 years ago) parent036d80e
1 file changed+2−2
searx/engines/startpage.py+2−2
searx/engines/startpage.py+2−2
@@ -16,7 +16,7 @@ from lxml import html
1616from babel import Locale
1717from babel.localedata import locale_identifiers
1818
19−from searx import network
19+from searx.network import get
2020from searx.utils import extract_text, eval_xpath, match_language
2121from searx.exceptions import (
2222 SearxEngineResponseException,
@@ -84,7 +84,7 @@ def get_sc_code(headers):
8484 if time() > (sc_code_ts + 3000):
8585 logger.debug("query new sc time-stamp ...")
8686
87− resp = network.get(base_url, headers=headers)
87+ resp = get(base_url, headers=headers)
8888 raise_captcha(resp)
8989 dom = html.fromstring(resp.text)
9090