Add websocket-client to requirements; sync docs
site_anneng 的 CDP 驱动用到 websocket-client,此前 requirements.txt 缺漏, 需额外手动安装。补进 requirements.txt,并把 README/CLAUDE 里"暂未列入"的 临时提示改为"已包含"。 Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -13,9 +13,8 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co
|
|||||||
`.venv/Scripts/python.exe`,无需激活)。
|
`.venv/Scripts/python.exe`,无需激活)。
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# 安装依赖(安能的 CDP 驱动还需 websocket-client,requirements.txt 暂未列入)
|
# 安装依赖(含安能 CDP 驱动所需的 websocket-client)
|
||||||
pip install -r requirements.txt
|
pip install -r requirements.txt
|
||||||
pip install websocket-client
|
|
||||||
playwright install chromium
|
playwright install chromium
|
||||||
|
|
||||||
# 运行主程序(交互式菜单,详见 main_router 的 run_multi_site_daemon)
|
# 运行主程序(交互式菜单,详见 main_router 的 run_multi_site_daemon)
|
||||||
|
|||||||
@@ -60,16 +60,13 @@ python -m venv .venv
|
|||||||
.venv\Scripts\activate # Windows
|
.venv\Scripts\activate # Windows
|
||||||
# source .venv/bin/activate # macOS / Linux
|
# source .venv/bin/activate # macOS / Linux
|
||||||
|
|
||||||
# 2. 安装依赖
|
# 2. 安装依赖(含安能 CDP 驱动所需的 websocket-client)
|
||||||
pip install -r requirements.txt
|
pip install -r requirements.txt
|
||||||
|
|
||||||
# 3. 安装 Playwright 浏览器内核(网页站点用)
|
# 3. 安装 Playwright 浏览器内核(网页站点用)
|
||||||
playwright install chromium
|
playwright install chromium
|
||||||
|
|
||||||
# 4. 安装 websocket-client(安能 CDP 驱动需要,requirements 暂未列入)
|
# 4. 由模板创建本地配置并填入真实凭据
|
||||||
pip install websocket-client
|
|
||||||
|
|
||||||
# 5. 由模板创建本地配置并填入真实凭据
|
|
||||||
cp config.example.yaml config.yaml
|
cp config.example.yaml config.yaml
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -2,3 +2,4 @@ pandas>=2.0.0
|
|||||||
playwright>=1.40.0
|
playwright>=1.40.0
|
||||||
openpyxl>=3.1.0
|
openpyxl>=3.1.0
|
||||||
PyYAML>=6.0
|
PyYAML>=6.0
|
||||||
|
websocket-client>=1.0.0
|
||||||
|
|||||||
Reference in New Issue
Block a user