From 75abbdf14c1b0cc462aa6b9993c3e5f4ef4d7ece Mon Sep 17 00:00:00 2001 From: Misaka Date: Tue, 14 Jul 2026 22:48:07 +0800 Subject: [PATCH] Add websocket-client to requirements; sync docs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit site_anneng 的 CDP 驱动用到 websocket-client,此前 requirements.txt 缺漏, 需额外手动安装。补进 requirements.txt,并把 README/CLAUDE 里"暂未列入"的 临时提示改为"已包含"。 Co-Authored-By: Claude --- CLAUDE.md | 3 +-- README.md | 7 ++----- requirements.txt | 1 + 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index c4514f3..9213739 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -13,9 +13,8 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co `.venv/Scripts/python.exe`,无需激活)。 ```bash -# 安装依赖(安能的 CDP 驱动还需 websocket-client,requirements.txt 暂未列入) +# 安装依赖(含安能 CDP 驱动所需的 websocket-client) pip install -r requirements.txt -pip install websocket-client playwright install chromium # 运行主程序(交互式菜单,详见 main_router 的 run_multi_site_daemon) diff --git a/README.md b/README.md index 99b26ae..e281b53 100644 --- a/README.md +++ b/README.md @@ -60,16 +60,13 @@ python -m venv .venv .venv\Scripts\activate # Windows # source .venv/bin/activate # macOS / Linux -# 2. 安装依赖 +# 2. 安装依赖(含安能 CDP 驱动所需的 websocket-client) pip install -r requirements.txt # 3. 安装 Playwright 浏览器内核(网页站点用) playwright install chromium -# 4. 安装 websocket-client(安能 CDP 驱动需要,requirements 暂未列入) -pip install websocket-client - -# 5. 由模板创建本地配置并填入真实凭据 +# 4. 由模板创建本地配置并填入真实凭据 cp config.example.yaml config.yaml ``` diff --git a/requirements.txt b/requirements.txt index 1e2f694..8a493c0 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,3 +2,4 @@ pandas>=2.0.0 playwright>=1.40.0 openpyxl>=3.1.0 PyYAML>=6.0 +websocket-client>=1.0.0