自动化多平台运营数据采集 → 清洗分析 → 日报生成 → 飞书推送。
询问用户:
references/platform-api-guide.md)使用 scripts/fetch-platform-data.sh 采集数据:
bash
# 采集单平台
./scripts/fetch-platform-data.sh fetch douyin <account_id>
# 采集所有平台(并行)
./scripts/fetch-platform-data.sh fetch all
数据输出为 JSON 格式,存储在 data/raw/<platform>_<date>.json。
使用 scripts/generate-report.py 生成报告:
bash
# 生成昨日日报
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 配置示例:
text
# 每天早上 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。