This commit is contained in:
doms9 2025-09-20 23:47:18 -04:00
parent 8e5b3e786c
commit 00000d98c4
4 changed files with 8 additions and 9 deletions

View file

@ -8,12 +8,6 @@ TZ = pytz.timezone("America/New_York")
now = datetime.now(TZ)
UA = (
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) "
"AppleWebKit/537.36 (KHTML, like Gecko) "
"Chrome/134.0.0.0 Safari/537.36 Edg/134.0.0.0"
)
live_img = "https://i.gyazo.com/978f2eb4a199ca5b56b447aded0cb9e3.png"
leagues_file = Path(__file__).parent / "leagues.json"

View file

@ -7,7 +7,11 @@ from typing import Any
import httpx
from playwright.async_api import Browser, BrowserContext, Playwright, Request
from .config import UA
UA = (
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) "
"AppleWebKit/537.36 (KHTML, like Gecko) "
"Chrome/134.0.0.0 Safari/537.36 Edg/134.0.0.0"
)
CLIENT = httpx.AsyncClient(
timeout=5,