mirror of
https://github.com/doms9/iptv.git
synced 2026-06-06 02:43:05 +02:00
e
- edit scraping for livetvsx.py
This commit is contained in:
parent
a3de6f3418
commit
00000d9700
2 changed files with 47 additions and 95 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue