обновление для Кубка России
переделаны все парсеры на ссылки из базы
This commit is contained in:
@@ -12,6 +12,8 @@ from parsers.parser_standings import run_parser_standings
|
||||
import requests
|
||||
from bs4 import BeautifulSoup
|
||||
|
||||
from source_config import match_url
|
||||
|
||||
|
||||
TZ = ZoneInfo("Europe/Moscow")
|
||||
|
||||
@@ -202,7 +204,7 @@ def parse_score(value: str) -> int | None:
|
||||
|
||||
|
||||
def fetch_match_live_data(match_id: int) -> dict:
|
||||
html = fetch_html(f"https://wfl.rfs.ru/match/{match_id}")
|
||||
html = fetch_html(match_url(match_id))
|
||||
soup = BeautifulSoup(html, "html.parser")
|
||||
|
||||
score_box = soup.find("div", class_="score__container")
|
||||
|
||||
Reference in New Issue
Block a user