This commit is contained in:
doms9 2025-12-23 13:28:56 -05:00
parent 4210d7dd18
commit 00000d9cb2
11 changed files with 342 additions and 321 deletions

View file

@ -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 {})