вроде как откатился на ошибки парсеров без веб интерфейс
This commit is contained in:
@@ -8,18 +8,10 @@ SEASON = "2025/2026"
|
||||
|
||||
|
||||
def fetch_html(url: str) -> str:
|
||||
headers = {
|
||||
"User-Agent": "Mozilla/5.0",
|
||||
"Accept": "*/*"
|
||||
}
|
||||
|
||||
try:
|
||||
r = requests.get(url, headers=headers, timeout=20)
|
||||
r.raise_for_status()
|
||||
return r.text
|
||||
|
||||
except requests.exceptions.RequestException as e:
|
||||
return f"Сайт недоступен: {e}"
|
||||
headers = {"User-Agent": "Mozilla/5.0", "Accept": "*/*"}
|
||||
r = requests.get(url, headers=headers, timeout=20)
|
||||
r.raise_for_status()
|
||||
return r.text
|
||||
|
||||
|
||||
def parse_standings(html: str) -> list[dict]:
|
||||
|
||||
Reference in New Issue
Block a user