- edit scraping for livetvsx.py
This commit is contained in:
doms9 2026-04-21 15:55:40 -04:00
parent a3de6f3418
commit 00000d9700
2 changed files with 47 additions and 95 deletions

View file

@ -38,12 +38,16 @@ class Network:
PW_S = asyncio.Semaphore(3)
def __init__(self) -> None:
self.client = httpx.AsyncClient(
timeout=httpx.Timeout(5.0),
follow_redirects=True,
headers={"User-Agent": Network.UA},
http2=True,
)
client_params = {
"timeout": httpx.Timeout(5.0),
"follow_redirects": True,
"headers": {"User-Agent": Network.UA},
"http2": True,
}
self.client = httpx.AsyncClient(**client_params)
self.unvd_client = httpx.AsyncClient(**client_params, verify=False)
async def request(
self,