This commit is contained in:
doms9 2025-09-17 23:52:37 -04:00
parent eb51119f78
commit 00000d9cc3
5 changed files with 220 additions and 36 deletions

View file

@ -9,6 +9,12 @@ from playwright.async_api import Browser, BrowserContext, Playwright, Request
from .config import UA
CLIENT = httpx.AsyncClient(
timeout=5,
follow_redirects=True,
headers={"User-Agent": UA},
)
async def check_status(client: httpx.AsyncClient, url: str) -> bool:
try: