fix:优化爬虫配置,单独使用docker容器运行

This commit is contained in:
Daniel
2026-03-05 20:19:24 +08:00
parent bbb9a5e1e1
commit 07454b73c2
9 changed files with 180 additions and 17 deletions

View File

@@ -39,11 +39,16 @@
## 依赖
- **Python 3.11+**(推荐 3.11 或 3.12
```bash
pip install -r requirements.txt
```
新增 `deep-translator`GDELT 与 RSS 新闻入库前自动翻译为中文
或使用 pyproject`pip install -e crawler/`(在项目根目录)
- `deep-translator`GDELT 与 RSS 新闻入库前自动翻译为中文。
- `dashscope`:可选,配置 `DASHSCOPE_API_KEY` 后启用通义提取/清洗。
## 运行(需同时启动 3 个服务)