mirror of
https://github.com/doms9/iptv.git
synced 2026-01-21 03:59:03 +01:00
e
This commit is contained in:
parent
4210d7dd18
commit
00000d9cb2
11 changed files with 342 additions and 321 deletions
|
|
@ -88,16 +88,18 @@ async def scrape() -> None:
|
|||
async with async_playwright() as p:
|
||||
browser, context = await network.browser(p)
|
||||
|
||||
handler = partial(get_events, context=context)
|
||||
try:
|
||||
handler = partial(get_events, context=context)
|
||||
|
||||
events = await network.safe_process(
|
||||
handler,
|
||||
url_num=1,
|
||||
semaphore=network.PW_S,
|
||||
log=log,
|
||||
)
|
||||
events = await network.safe_process(
|
||||
handler,
|
||||
url_num=1,
|
||||
semaphore=network.PW_S,
|
||||
log=log,
|
||||
)
|
||||
|
||||
await browser.close()
|
||||
finally:
|
||||
await browser.close()
|
||||
|
||||
urls.update(events or {})
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue