diff --git a/DouYin/apiproxy/douyin/auth/cookie_manager.py b/DouYin/apiproxy/douyin/auth/cookie_manager.py index 79e8caa..b2ec90d 100644 --- a/DouYin/apiproxy/douyin/auth/cookie_manager.py +++ b/DouYin/apiproxy/douyin/auth/cookie_manager.py @@ -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 diff --git a/DouYin/apiproxy/douyin/strategies/browser_strategy.py b/DouYin/apiproxy/douyin/strategies/browser_strategy.py index 135b9b2..1eaddf0 100644 --- a/DouYin/apiproxy/douyin/strategies/browser_strategy.py +++ b/DouYin/apiproxy/douyin/strategies/browser_strategy.py @@ -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): diff --git a/DouYin/downloader.py b/DouYin/downloader.py index e62a727..556362c 100644 --- a/DouYin/downloader.py +++ b/DouYin/downloader.py @@ -2,8 +2,11 @@ # -*- coding: utf-8 -*- """ +pip install playwright 抖音下载器 - 统一增强版 支持视频、图文、用户主页、合集等多种内容的批量下载 + + """ import asyncio diff --git a/DouYin/requirements.txt b/DouYin/requirements.txt index 6f5e12f..e3de67e 100644 --- a/DouYin/requirements.txt +++ b/DouYin/requirements.txt @@ -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) diff --git a/data.db b/data.db new file mode 100644 index 0000000..280d942 Binary files /dev/null and b/data.db differ diff --git a/static/index.html b/static/index.html index e27e056..5775bf0 100644 --- a/static/index.html +++ b/static/index.html @@ -193,13 +193,13 @@ v-if="queryLoading" type="danger" link - @click="stopGeneration" + @click="stopDegreeGeneration" > 停止生成 -
+

正在分析数据,请稍候...