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

@@ -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

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):

View File

@@ -2,8 +2,11 @@
# -*- coding: utf-8 -*-
"""
pip install playwright
抖音下载器 - 统一增强版
支持视频、图文、用户主页、合集等多种内容的批量下载
"""
import asyncio

View File

@@ -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)