'commit'
This commit is contained in:
@@ -24,6 +24,10 @@ try:
|
|||||||
except ImportError:
|
except ImportError:
|
||||||
PLAYWRIGHT_AVAILABLE = False
|
PLAYWRIGHT_AVAILABLE = False
|
||||||
logger.warning("Playwright未安装,自动Cookie管理不可用")
|
logger.warning("Playwright未安装,自动Cookie管理不可用")
|
||||||
|
# Define dummy types for type hinting to avoid NameError
|
||||||
|
Browser = Any
|
||||||
|
BrowserContext = Any
|
||||||
|
Page = Any
|
||||||
|
|
||||||
|
|
||||||
@dataclass
|
@dataclass
|
||||||
|
|||||||
@@ -25,6 +25,10 @@ try:
|
|||||||
except ImportError:
|
except ImportError:
|
||||||
PLAYWRIGHT_AVAILABLE = False
|
PLAYWRIGHT_AVAILABLE = False
|
||||||
logger.warning("Playwright未安装,浏览器策略不可用。请运行: pip install playwright && playwright install chromium")
|
logger.warning("Playwright未安装,浏览器策略不可用。请运行: pip install playwright && playwright install chromium")
|
||||||
|
# Define dummy types for type hinting
|
||||||
|
Browser = Any
|
||||||
|
BrowserContext = Any
|
||||||
|
Page = Any
|
||||||
|
|
||||||
|
|
||||||
class BrowserDownloadStrategy(IDownloadStrategy):
|
class BrowserDownloadStrategy(IDownloadStrategy):
|
||||||
|
|||||||
@@ -2,8 +2,11 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
pip install playwright
|
||||||
抖音下载器 - 统一增强版
|
抖音下载器 - 统一增强版
|
||||||
支持视频、图文、用户主页、合集等多种内容的批量下载
|
支持视频、图文、用户主页、合集等多种内容的批量下载
|
||||||
|
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import asyncio
|
import asyncio
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# Core dependencies
|
# Core dependencies
|
||||||
requests==2.31.0 # HTTP 请求库
|
requests==2.31.0 # HTTP 请求库
|
||||||
pyyaml==6.0.1 # YAML 配置支持
|
pyyaml # YAML 配置支持
|
||||||
rich==13.7.0 # 终端美化
|
rich==13.7.0 # 终端美化
|
||||||
|
|
||||||
# Async support (optional)
|
# Async support (optional)
|
||||||
|
|||||||
@@ -193,13 +193,13 @@
|
|||||||
v-if="queryLoading"
|
v-if="queryLoading"
|
||||||
type="danger"
|
type="danger"
|
||||||
link
|
link
|
||||||
@click="stopGeneration"
|
@click="stopDegreeGeneration"
|
||||||
>
|
>
|
||||||
停止生成
|
停止生成
|
||||||
</el-button>
|
</el-button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="markdown-body" v-html="renderedQueryResult"></div>
|
<div class="markdown-body" v-html="renderedResult"></div>
|
||||||
<div v-if="queryLoading && !queryResult" class="loading-container">
|
<div v-if="queryLoading && !queryResult" class="loading-container">
|
||||||
<p>正在分析数据,请稍候...</p>
|
<p>正在分析数据,请稍候...</p>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user