anilife update 2022.10.24(01.)
This commit is contained in:
@@ -112,7 +112,9 @@ class LogicAniLife(LogicModuleBase):
|
||||
default_route_socketio(P, self)
|
||||
|
||||
@staticmethod
|
||||
def get_html(url: str, referer: str = None, stream: bool = False, timeout: int = 5) -> str:
|
||||
def get_html(
|
||||
url: str, referer: str = None, stream: bool = False, timeout: int = 5
|
||||
) -> str:
|
||||
data = ""
|
||||
try:
|
||||
print("cloudflare protection bypass ==================")
|
||||
@@ -143,7 +145,9 @@ class LogicAniLife(LogicModuleBase):
|
||||
return data
|
||||
|
||||
@staticmethod
|
||||
def get_html_requests(url: str, referer: str = None, stream: str = False, timeout: int = 5) -> str:
|
||||
def get_html_requests(
|
||||
url: str, referer: str = None, stream: str = False, timeout: int = 5
|
||||
) -> str:
|
||||
data = ""
|
||||
try:
|
||||
print("get_html_requests ==================")
|
||||
@@ -173,7 +177,11 @@ class LogicAniLife(LogicModuleBase):
|
||||
|
||||
@staticmethod
|
||||
async def get_html_playwright(
|
||||
url: str, headless: bool = False, referer: str = None, engine: str = "chrome", stealth: bool = False
|
||||
url: str,
|
||||
headless: bool = False,
|
||||
referer: str = None,
|
||||
engine: str = "chrome",
|
||||
stealth: bool = False,
|
||||
) -> str:
|
||||
try:
|
||||
from playwright.sync_api import sync_playwright
|
||||
|
||||
Reference in New Issue
Block a user