This commit is contained in:
HuangHai
2026-01-20 14:21:50 +08:00
parent d89388ab51
commit 733ff659fd
6 changed files with 14 additions and 3 deletions

View File

@@ -25,6 +25,10 @@ try:
except ImportError:
PLAYWRIGHT_AVAILABLE = False
logger.warning("Playwright未安装,浏览器策略不可用。请运行: pip install playwright && playwright install chromium")
# Define dummy types for type hinting
Browser = Any
BrowserContext = Any
Page = Any
class BrowserDownloadStrategy(IDownloadStrategy):