Files
RPA-ROBOT/README.md
2026-08-26 16:46:18 +08:00

56 lines
1.5 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# RPA-robot
打工人的保命数据备份工具,应对不时之需。
## 项目结构
```
RPA-robot/
├── tasks/ # Robot 任务文件
│ ├── main.robot # 主任务入口
│ └── example_task.robot # 示例任务
├── resources/ # 可复用的资源文件
│ ├── common.resource # 通用关键字
│ └── variables.py # 变量定义
├── libraries/ # 自定义 Python 库
│ └── __init__.py
├── data/ # 测试/业务数据
├── output/ # 运行输出(日志、报告)
├── requirements.txt # Python 依赖
└── README.md
└── main.py #运行主文件
└──config.py # 配置主文件
```
## 环境准备
```bash
# 创建虚拟环境
conda env create -f environment.yaml
conda activate rpa-robot
rfbrowser init
## 运行任务
```bash
python .\main.py feishu-chat
```
```bash
bat脚本双击执行
register_task.bat 注册任务脚本 每天6点3分执行任务执行完成自动关机
run_feishu_chat.bat 运行任务脚本
```
## 输出说明
运行后会在 `output/` 目录生成:
- `report.html` - 测试报告
- `log.html` - 详细日志
- `output.xml` - 结构化输出
## 配置说明
```bash
config.py 配置文件中有 FEISHU_GROUPS = [] #配置飞书群名
FEISHU_DESKTOP_PATH = r"C:\Users\songy\AppData\Local\Feishu\app\Feishu.exe" #配置飞书安装位置
```