mirror of
https://github.com/doms9/iptv.git
synced 2026-06-06 02:43:05 +02:00
e
- edit scraping for roxie.py - misc edits.
This commit is contained in:
parent
97d0ca9ed1
commit
00000d9818
3 changed files with 74 additions and 83 deletions
|
|
@ -2,11 +2,11 @@ import asyncio
|
|||
import logging
|
||||
import random
|
||||
import re
|
||||
from collections.abc import Awaitable, Callable
|
||||
from collections.abc import AsyncGenerator, Awaitable, Callable
|
||||
from contextlib import asynccontextmanager
|
||||
from functools import cache, partial
|
||||
from pathlib import Path
|
||||
from typing import AsyncGenerator, TypeVar
|
||||
from typing import TypeVar
|
||||
from urllib.parse import urlparse
|
||||
|
||||
import httpx
|
||||
|
|
@ -158,7 +158,7 @@ class Network:
|
|||
browser: Browser,
|
||||
stealth: bool = True,
|
||||
ignore_https: bool = False,
|
||||
) -> AsyncGenerator[BrowserContext, None]:
|
||||
) -> AsyncGenerator[BrowserContext]:
|
||||
|
||||
context: BrowserContext | None = None
|
||||
|
||||
|
|
@ -195,7 +195,7 @@ class Network:
|
|||
|
||||
@staticmethod
|
||||
@asynccontextmanager
|
||||
async def event_page(context: BrowserContext) -> AsyncGenerator[Page, None]:
|
||||
async def event_page(context: BrowserContext) -> AsyncGenerator[Page]:
|
||||
page = await context.new_page()
|
||||
|
||||
try:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue