自动抓取各大平台热榜,生成 AI 友好的热点日报,让 AI 知道今天发生了什么!
平台更新频率抓取数量优先级微博热搜10 分钟TOP50⭐⭐⭐⭐⭐知乎热榜5 分钟TOP50⭐⭐⭐⭐⭐抖音热榜分钟级TOP50⭐⭐⭐⭐百度热搜实时TOP50⭐⭐⭐⭐36 氪小时级TOP20⭐⭐⭐⭐虎嗅小时级TOP20⭐⭐⭐新华网小时级TOP10⭐⭐⭐⭐
bash
clawhub install hotspot-aggregator
bash
mkdir -p ~/.openclaw/hotspot
cat > ~/.openclaw/hotspot/config.json << 'EOF'
{
"sources": ["weibo", "zhihu", "douyin", "36kr"],
"topN": 20,
"notifyUser": "你的微信 ID@im.wechat"
}
EOF
bash
# 获取今日热点
hotspot-aggregator today
# 获取昨日热点
hotspot-aggregator yesterday
# 生成日报并发送
hotspot-aggregator daily-report
# 指定平台
hotspot-aggregator --source weibo,zhihu
markdown
# 🔥 每日热点 - 2026-03-23
## 微博热搜 TOP10
1. 某明星离婚 🔥 讨论 500 万
2. 某公司发布新产品 📱 讨论 300 万
...
## 知乎热榜 TOP10
1. 如何评价 XXX 事件?
2. XXX 是什么体验?
...
json
{
"date": "2026-03-23",
"sources": [
{
"name": "微博热搜",
"items": [
{
"rank": 1,
"title": "某明星离婚",
"hot_value": 5000000,
"keywords": ["离婚", "财产分割"],
"sentiment": "吃瓜",
"ai_suggestion": "保持中立,不站队"
}
]
}
]
}
text
1. 定时触发(每日 7:00)
↓
2. 并发抓取各平台热榜
↓
3. 数据清洗 + 去重
↓
4. 情绪分析 + 回应建议
↓
5. 生成 Markdown + JSON
↓
6. 发布到公众号 + 存入向量库
↓
7. AI 可以消费了!
typescript
// 微博热搜
async function fetchWeibo() {
const rss = await fetch('https://rsshub.app/weibo/search/hot');
const items = await parseRSS(rss);
return items.slice(0, 50).map(item => ({
rank: items.indexOf(item) + 1,
title: item.title,
hot_value: extractHotValue(item),
url: item.link
}));
}
// 知乎热榜
async function fetchZhihu() {
const rss = await fetch('https://rsshub.app/zhihu/hotlist');
const items = await parseRSS(rss);
return items.slice(0, 50).map(item => ({
rank: items.indexOf(item) + 1,
title: item.title,
answer_count: item.answer_count,
url: item.link
}));
}
bash
openclaw cron create \
--schedule "0 7 * * *" \
--command "hotspot-aggregator fetch"
bash
openclaw cron create \
--schedule "0 8 * * *" \
--command "hotspot-aggregator publish"
当用户提到热点事件时:
text
用户:"今天那个明星离婚的事你怎么看?"
AI 检索 → 匹配到"微博热搜#1"
AI 回复:
"看到了,今天微博热搜第一。目前已知信息:
- 双方已发布声明
- 涉及财产分割和孩子抚养
- 网友讨论约 500 万次
这件事比较复杂,建议等官方消息,
我们吃瓜就好,不要太站队~"
MIT-0 License