[fix] engines: typo (#5466)

Fix typo in engine timeout definition: 'timout' -> 'timeout'
This commit is contained in:
Léon Tiekötter 2025-11-21 11:20:10 +01:00 committed by GitHub
parent 7c223b32a7
commit e245cade25
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -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:

View File

@ -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 = {