'commit'
This commit is contained in:
@@ -24,6 +24,10 @@ try:
|
||||
except ImportError:
|
||||
PLAYWRIGHT_AVAILABLE = False
|
||||
logger.warning("Playwright未安装,自动Cookie管理不可用")
|
||||
# Define dummy types for type hinting to avoid NameError
|
||||
Browser = Any
|
||||
BrowserContext = Any
|
||||
Page = Any
|
||||
|
||||
|
||||
@dataclass
|
||||
|
||||
@@ -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):
|
||||
|
||||
@@ -2,8 +2,11 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
"""
|
||||
pip install playwright
|
||||
抖音下载器 - 统一增强版
|
||||
支持视频、图文、用户主页、合集等多种内容的批量下载
|
||||
|
||||
|
||||
"""
|
||||
|
||||
import asyncio
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# Core dependencies
|
||||
requests==2.31.0 # HTTP 请求库
|
||||
pyyaml==6.0.1 # YAML 配置支持
|
||||
pyyaml # YAML 配置支持
|
||||
rich==13.7.0 # 终端美化
|
||||
|
||||
# Async support (optional)
|
||||
|
||||
Reference in New Issue
Block a user