From 733ff659fd728c7656a8e917ed3b65830129f8c9 Mon Sep 17 00:00:00 2001 From: HuangHai <10402852@qq.com> Date: Tue, 20 Jan 2026 14:21:50 +0800 Subject: [PATCH] 'commit' --- DouYin/apiproxy/douyin/auth/cookie_manager.py | 4 ++++ .../douyin/strategies/browser_strategy.py | 4 ++++ DouYin/downloader.py | 3 +++ DouYin/requirements.txt | 2 +- data.db | Bin 0 -> 36864 bytes static/index.html | 4 ++-- 6 files changed, 14 insertions(+), 3 deletions(-) create mode 100644 data.db 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 0000000000000000000000000000000000000000..280d9425b25054942cbf964d82bd04505c61afbc GIT binary patch literal 36864 zcmeI&J#W)M7{GD6P2)6G(k|d311Duk)Ph=2cLK_Q)Pa`@iOD+B1CAt4;}@E)DJ!3$ zD+6DG&%qbz$X)70ZPb(sRH-t5OOEeyKHK+up4hSMH?Q_|qQr+m)R&2P;%qps>pT_0 zah!sgSIs<~Y~9Y&$(Quk4|E#{Pc-04Mzsjd;Kd$LV69Nbz zfB*srAb`OCDKIX3o?olEC*4H8@2Mo{r?Kv2i_-Jg?bd!40PCuR9}V3*23PCJqKnRUu4wzB%{XT?d|5`)#Z`do?U&q z%QV!(R4wih$)f|ANbxxygjXI!^I@szw`#7V!vi&nhduMhJvcvjQxCH72Rm6|b=)j^ zzVEwVccylFWZLw|n|ITrTT_cwCrEFMW)AM}h5v`$9II{@Z%Cfnf zl 停止生成 -
+

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