mirror of
https://github.com/doms9/iptv.git
synced 2026-03-07 11:18:25 +01:00
e
- edit livetvsx.py scraping
This commit is contained in:
parent
b896a22a29
commit
00000d9ab1
5 changed files with 55 additions and 26 deletions
|
|
@ -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)",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue