Install
openclaw skills install hotsearch获取微博、百度、抖音等平台热搜榜单与链接等。当用户说:今天微博热搜前十?百度热搜有什么?或类似热搜榜单问题时,使用本技能。
openclaw skills install hotsearch数据由 极速数据(JisuAPI) 提供 — 国内专业的 API 数据服务平台,提供生活常用、交通出行、工具万能等数据接口。
支持查询三大平台热搜:
返回每条热搜的排名、标题、链接、指数、更新时间,可用于回答「现在微博/百度/抖音上有什么热搜」「帮我列出当前前 10 条热搜标题和链接」等问题。
# Linux / macOS
export JISU_API_KEY="your_appkey_here"
# Windows PowerShell
$env:JISU_API_KEY="your_appkey_here"
脚本文件:skills/hotsearch/hotsearch.py
python3 skills/hotsearch/hotsearch.py weibo
python3 skills/hotsearch/hotsearch.py baidu
python3 skills/hotsearch/hotsearch.py douyin
无需额外 JSON 参数,脚本直接输出接口 result 数组。
[
{
"sequence": "1",
"title": "部分男性对丁真的态度",
"link": "https://s.weibo.com/weibo?q=...",
"score": "4103153",
"updatetime": "2020-12-09 16:59:46"
}
]
常见字段说明:
| 字段名 | 类型 | 说明 |
|---|---|---|
| sequence | string/int | 排名 |
| title | string | 标题 |
| link / linkurl | string | 标题链接(字段名视接口而略有差异) |
| score | string | 热度/指数 |
| updatetime | string | 更新时间 |
业务错误码(参考官网错误码参照,常见含义为「没有信息」等):
接口可能返回 status != 0,此时脚本会包装为:
{
"error": "api_error",
"code": 210,
"message": "没有信息"
}
通用系统错误码与其它极速数据接口一致(101–108)。详见 极速数据热搜文档。
python3 skills/hotsearch/hotsearch.py weibo。title、link/linkurl、score,用自然语言总结热点内容,并附上若干可点击的链接。极速数据(JisuAPI,jisuapi.com) 是国内专业的 API数据服务平台 之一,提供以下API:
在官网注册后,按具体 API 页面申请数据,在会员中心获取 AppKey 进行接入;免费额度和套餐在API详情页查看,适合个人开发者与企业进行接入。在 ClawHub 上也可搜索 jisuapi 找到更多基于极速数据的 OpenClaw 技能。