How agentchengfeng/wechat-data-tools works
微信 monitor 自动采集公众号文章及互动指标,再将数据用于查询、趋势分析和 HTML 报表。README 说明了 RSS 服务、定时采集、互动数据 API、报表与趋势能力;源码索引也确认了主要采集、存储和报表模块。部分调度和 RSS 接入实现未展示,因此相关连接不作确定的调用关系。
Main entry points: database.py SQLite 数据库 · daily_fetch.py 每日采集 · jizhile_api.py 互动数据 API 客户端 · query_db.py 数据库查询
Components 20
互动数据
- 互动数据 API 客户端
wechat-monitor/scripts/utils/jizhile_api.py - 批量统计采集
wechat-monitor/scripts/archived/fetch_article_stats.py - 策略统计采集
wechat-monitor/scripts/archived/smart_fetch_stats.py - 近期统计采集
wechat-monitor/scripts/fetch_recent_days_stats.py
数据管理
- SQLite 数据库
wechat-monitor/scripts/utils/database.py - 数据库初始化
wechat-monitor/scripts/init_db.py - JSON 数据迁移
wechat-monitor/scripts/migrate_to_db.py
分析与展示
- 数据库查询
wechat-monitor/scripts/query_db.py - HTML 报表
wechat-monitor/scripts/generate_report.py - 互动分析
wechat-monitor/scripts/archived/analyze_engagement.py - 时间趋势分析
wechat-monitor/scripts/archived/analyze_timeline.py - 选题分析
wechat-monitor/scripts/archived/analyze_topics.py - 编程话题分析
wechat-monitor/scripts/archived/analyze_coding_topics.py - 选题建议
wechat-monitor/scripts/archived/recommend_best_topic.py - 爆文提醒
wechat-monitor/scripts/viral_alert.py - AI 内容处理
wechat-monitor/scripts/utils/ai_processor.py
Other components
- 运营人员
- Wechat2RSS
Connections 19
- 运营人员 → 每日采集: 启动采集
- 自动工作流 → 每日采集: 调度采集
- Wechat2RSS → 每日采集: 提供文章源
README.md - 批量统计采集 → 互动数据 API 客户端: 请求统计
wechat-monitor/scripts/archived/fetch_article_stats.py - 策略统计采集 → 互动数据 API 客户端: 请求统计
wechat-monitor/scripts/archived/smart_fetch_stats.py - 近期统计采集 → 互动数据 API 客户端: 请求统计
wechat-monitor/scripts/fetch_recent_days_stats.py - 数据库初始化 → SQLite 数据库: 初始化
wechat-monitor/scripts/init_db.py - JSON 数据迁移 → SQLite 数据库: 导入数据
wechat-monitor/scripts/migrate_to_db.py - 数据库查询 → SQLite 数据库: 查询数据
wechat-monitor/scripts/query_db.py - HTML 报表 → SQLite 数据库: 读取数据
wechat-monitor/scripts/generate_report.py - 运营人员 → 数据库查询: 查询文章
- 运营人员 → HTML 报表: 查看报表
- 运营人员 → 互动分析: 分析互动
- 运营人员 → 时间趋势分析: 分析趋势
- 运营人员 → 选题分析: 分析选题
- 运营人员 → 编程话题分析: 分析话题
- 运营人员 → 选题建议: 获取建议
- 运营人员 → 爆文提醒: 接收提醒
- 运营人员 → AI 内容处理: 处理内容