- edit livetvsx.py scraping
This commit is contained in:
doms9 2026-03-02 20:02:26 -05:00
parent b896a22a29
commit 00000d9ab1
5 changed files with 55 additions and 26 deletions

View file

@ -93,12 +93,16 @@ async def process_event(
page.on("request", handler)
try:
await page.goto(
resp = await page.goto(
url,
wait_until="domcontentloaded",
timeout=6_000,
)
if resp.status != 200:
log.warning(f"URL {url_num}) status code: {resp.status}")
return
try:
if btn := await page.wait_for_selector(
"button.streambutton:nth-of-type(1)",