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
|
|
@ -250,12 +250,17 @@ class Network:
|
|||
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
|
||||
|
||||
wait_task = asyncio.create_task(got_one.wait())
|
||||
|
||||
try:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue