自动化多平台运营数据采集 → 清洗分析 → 日报生成 → 飞书推送。
询问用户:
references/platform-api-guide.md)使用 scripts/fetch-platform-data.sh 采集数据:
# 采集单平台
./scripts/fetch-platform-data.sh fetch douyin <account_id>
# 采集所有平台(并行)
./scripts/fetch-platform-data.sh fetch all
数据输出为 JSON 格式,存储在 data/raw/。
使用 scripts/generate-report.py 生成报告:
# 生成昨日日报
python3 scripts/generate-report.py --date yesterday
# 生成指定日期
python3 scripts/generate-report.py --date 2026-03-31
# 生成周报
python3 scripts/generate-report.py --type weekly --date 2026-03-31
feishu_create_doc 创建飞书云文档(Markdown 格式)message 工具将文档链接发送到目标群聊或个人若用户需要每天自动执行,提供 cron 配置示例:
# 每天早上 8:00 自动生成日报
0 8 * * * cd /path/to/workspace && ./scripts/fetch-platform-data.sh fetch all && python3 scripts/generate-report.py --date yesterday
所有平台数据统一标准化为:
| 字段 | 说明 |
|---|---|
| ------ | ------ |
| platform | 平台名称 |
| date | 数据日期 |
| views | 播放量/阅读量 |
| likes | 点赞数 |
| comments | 评论数 |
| shares | 转发/分享数 |
| favorites | 收藏数 |
| new_followers | 当日涨粉数 |
| total_followers | 粉丝总数 |
| engagement_rate | 互动率((likes+comments+shares)/views) |
| completion_rate | 完播率(视频平台) |
采集完成后自动检查异常,规则详见 references/anomaly-rules.md。
发现异常时在日报中标注 ⚠️,并单独发送预警消息。
日报格式详见 references/report-templates.md,支持:
各平台 API 鉴权和调用方式详见 references/platform-api-guide.md。
共 1 个版本