1.2 KiB
1.2 KiB
快速开始指南
本文档提供了ArticleReplaceBatch的快速开始指南。
安装
1. 克隆项目
git clone <repository-url>
cd ArticleReplaceBatch
2. 安装依赖
pip install -r requirements.txt
3. 配置环境
cp .env.example .env
# 编辑 .env 文件,填写必要的配置
基本使用
GUI模式
python ArticleReplace.py
命令行模式
# 处理Excel文件
python cli.py --excel 文章链接.xlsx --threads 3
# 处理单个链接
python cli.py --link https://www.toutiao.com/article/123
# 查看帮助
python cli.py --help
配置说明
主要配置文件:config.ini
Coze配置
[Coze]
workflow_id = your_workflow_id
access_token = your_access_token
is_async = true
常规配置
[General]
max_threads = 3
min_article_length = 100
articles_path = articles
images_path = picture
开发
运行测试
python dev.py test
代码格式化
python dev.py format
代码检查
python dev.py lint