一个用于 WorkBuddy 的热点监控 Skill,支持从多个平台抓取实时热点,根据自定义关键词筛选后,自动存入飞书多维表格并推送到移动端。
# 克隆仓库
git clone https://github.com/YOUR_USERNAME/hotspot-monitor-skill.git
cd hotspot-monitor-skill
# 安装依赖
pip install -r requirements.txt
复制示例配置文件并修改:
cp config.example.yaml config.yaml
编辑 config.yaml,配置你的监控主题和飞书信息:
monitor:
themes:
- name: "AI人工智能"
keywords: ["AI", "人工智能", "大模型", "ChatGPT", "Claude"]
exclude_keywords: ["游戏"]
- name: "科技数码"
keywords: ["科技", "手机", "芯片", "华为", "苹果"]
platforms:
- zhihu
- weibo
- bilibili
feishu:
app_id: "your_feishu_app_id"
app_secret: "your_feishu_app_secret"
base:
app_token: "your_base_token"
table_id: "your_table_id"
webhook:
url: "your_webhook_url"
python3 hotspot_monitor.py
| 平台ID | 平台名称 | 状态 |
|---|---|---|
zhihu | 知乎热榜 | ✅ |
weibo | 微博热搜 | ✅ |
bilibili | B站热门 | ✅ |
toutiao | 今日头条 | ✅ |
baidu | 百度热搜 | ✅ |
douyin | 抖音热榜 | ✅ |
thepaper | 澎湃新闻 | ✅ |
cls | 财联社 | ✅ |
wallstreetcn | 华尔街见闻 | ✅ |
tieba | 贴吧热榜 | ✅ |
themes:
- name: "主题名称"
keywords: ["关键词1", "关键词2"] # 匹配任意一个
must_keywords: ["必须包含"] # 必须全部包含
exclude_keywords: ["排除词1", "排除词2"] # 不能包含
获取飞书应用凭证:
App ID 和 App Secretbitable:app、bitable:app:readonly获取多维表格 Token:
app_token 和 table_idhttps://my.feishu.cn/base/APP_TOKEN?table=TABLE_ID获取飞书机器人 Webhook:
在 WorkBuddy 中直接运行:
cd /path/to/hotspot-monitor-skill
python3 hotspot_monitor.py
创建 WorkBuddy 自动化任务,设置定时执行:
# automation.yaml
name: 热点监控
prompt: |
执行热点监控脚本:
1. cd /path/to/hotspot-monitor-skill
2. python3 hotspot_monitor.py
schedule: "0 */2 * * *" # 每2小时执行一次
hotspot-monitor-skill/ ├── README.md # 项目说明 ├── LICENSE # 开源协议 ├── requirements.txt # Python依赖 ├── config.example.yaml # 配置示例 ├── config.yaml # 实际配置(gitignore) ├── hotspot_monitor.py # 主程序入口 ├── fetcher.py # 热点抓取模块 ├── feishu_integration.py # 飞书集成模块 └── docs/ # 文档目录 ├── CONFIG.md # 配置指南 └── API.md # API文档
# 创建虚拟环境
python3 -m venv venv
source venv/bin/activate
# 安装开发依赖
pip install -r requirements-dev.txt
# 运行测试
python3 -m pytest tests/
欢迎提交 Issue 和 Pull Request!
git checkout -b feature/AmazingFeature)git commit -m 'Add some AmazingFeature')git push origin feature/AmazingFeature)本项目基于 MIT 协议开源。
如有问题或建议,欢迎通过以下方式联系:
如果这个项目对你有帮助,请给个 ⭐ Star 支持!