вроде как откатился на ошибки парсеров без веб интерфейс
This commit is contained in:
@@ -7,18 +7,10 @@ BASE_MATCH_URL = "https://wfl.rfs.ru/match/"
|
||||
|
||||
|
||||
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 extract_player_id_from_href(href: str) -> str:
|
||||
|
||||
Reference in New Issue
Block a user