# ding-report **Repository Path**: code_transfer_station/ding-report ## Basic Information - **Project Name**: ding-report - **Description**: 钉钉机器人播报——将excel数据源整理成文字和表格的形式推送到钉钉群 - **Primary Language**: Python - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2023-01-03 - **Last Updated**: 2023-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Ding-Report 钉钉机器人播报——将excel数据源整理成文字和表格的形式推送到钉钉群。 ![钉钉机器人通知截图](https://gitee.com/code_transfer_station/ding-report/raw/master/doc/images/Ding-Report.jpg) --- ## 如何使用 ### 1. 安装编程环境 - Windows操作系统 1. 安装Python >= 3.10 2. 安装Poetry >= 1.5.0,打开Power Shell运行以下命令 ```bash (Invoke-WebRequest -Uri https://install.python-poetry.org -UseBasicParsing).Content | py - ``` - Linux操作系统 1. 安装Poetry >= 1.5.0 ```bash curl -sSL https://install.python-poetry.org | python3 - ``` ### 2. 添加环境变量 - Windows操作系统 ```bash %APPDATA%\Roaming\Python\Scripts ``` - Linux操作系统 ```bash export PATH="/home/XXX/.local/bin:$PATH" ``` **运行poetry -V查看Poetry是否安装成功,若是,即可进行下一步。** ### 3. 安装项目依赖 进入文件夹 `/ding-report` 运行以下命令 ```bash poetry install ``` ### 4. 修改配置文件 进入文件夹 `/ding-report/数据源`修改access_tokens.txt和secrets.txt,将其替换为钉钉群里的机器人的Token和Secret. ### 5. 运行程序 在Power Shell或者Terminal下进入文件夹`/ding-report`,输入以下命令 ```bash poetry shell python text_message.py ```