mirror of
https://github.com/searxng/searxng.git
synced 2025-11-21 05:53:10 -05:00
[fix] engines: typo (#5466)
Fix typo in engine timeout definition: 'timout' -> 'timeout'
This commit is contained in:
parent
7c223b32a7
commit
e245cade25
@ -140,7 +140,7 @@ def _get_request_id(query, params):
|
|||||||
if l.territory:
|
if l.territory:
|
||||||
headers['Accept-Language'] = f"{l.language}-{l.territory},{l.language};" "q=0.9,*;" "q=0.5"
|
headers['Accept-Language'] = f"{l.language}-{l.territory},{l.language};" "q=0.9,*;" "q=0.5"
|
||||||
|
|
||||||
resp = get(url, headers=headers, timout=5)
|
resp = get(url, headers=headers, timeout=5)
|
||||||
|
|
||||||
for line in resp.text.split("\n"):
|
for line in resp.text.split("\n"):
|
||||||
if "window.searchId = " in line:
|
if "window.searchId = " in line:
|
||||||
|
|||||||
@ -27,7 +27,7 @@ base_url = 'https://search.seznam.cz/'
|
|||||||
|
|
||||||
|
|
||||||
def request(query, params):
|
def request(query, params):
|
||||||
response_index = get(base_url, headers=params['headers'], raise_for_httperror=True, timout=3)
|
response_index = get(base_url, headers=params['headers'], raise_for_httperror=True, timeout=3)
|
||||||
dom = html.fromstring(response_index.text)
|
dom = html.fromstring(response_index.text)
|
||||||
|
|
||||||
url_params = {
|
url_params = {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user