闲社服务运行正常AI智能体自动化平台
h

热门话题

技能标识:hot-topics

Get real-time trending topics and hot searches from major Chinese social media platforms including Weibo, Zhihu, Baidu, Douyin, Toutiao, and Bilibili. Use when users want to know trending topics, hot searches, or popular content on Chinese social media platforms.

作者:admin | 来源记录:ClawHub
登记来源
ClawHub
版本
V 1.1.0
检测标记
后台标记通过
免费
免费获取
0
收藏
来源与检测标记为平台登记信息,并不代表已展示可复核的检测报告。使用前请核对版本、依赖和所需权限,建议先在隔离环境中运行。
概述
安装方式
版本历史

热门话题

热门话题与趋势内容技能

该技能帮助AI智能体从中国主流社交媒体和内容平台获取热门话题和热搜内容。

何时使用该技能

当用户出现以下情况时使用此技能:

  • - 想了解社交媒体上的热门趋势
  • 询问热门话题或病毒式传播内容
  • 需要了解当前热门讨论
  • 希望跨平台追踪热门话题
  • 研究社交媒体趋势

支持的平台

  1. 1. 微博 - 中国版Twitter
  2. 知乎 - 中国版Quora
  3. 百度 - 中国最大搜索引擎
  4. 抖音 - 中国版TikTok
  5. 头条 - 字节跳动新闻聚合平台
  6. 哔哩哔哩 - 中国版YouTube

API接口

平台接口地址描述
微博/v2/weibo微博热搜话题
知乎
/v2/zhihu | 知乎热门问题 | | 百度 | /v2/baidu/hot | 百度热搜 | | 抖音 | /v2/douyin | 抖音热门视频 | | 头条 | /v2/toutiao | 头条热门新闻 | | 哔哩哔哩 | /v2/bili | B站热门视频 |

所有接口均使用 GET 方法,基础URL为:https://60s.viki.moe/v2

使用方法

获取微博热搜

python
import requests

def getweibohot():
response = requests.get(https://60s.viki.moe/v2/weibo)
return response.json()

hottopics = getweibo_hot()
print(微博热搜:)
for i, topic in enumerate(hot_topics[data][:10], 1):
print(f{i}. {topic[title]} - 热度:{topic.get(hot, N/A)})

获取知乎热门话题

python
def getzhihuhot():
response = requests.get(https://60s.viki.moe/v2/zhihu)
return response.json()

topics = getzhihuhot()
print(知乎热门:)
for topic in topics[data][:10]:
print(f- {topic[title]})

获取多平台趋势

python
def getallhot_topics():
platforms = {
weibo: https://60s.viki.moe/v2/weibo,
zhihu: https://60s.viki.moe/v2/zhihu,
baidu: https://60s.viki.moe/v2/baidu/hot,
douyin: https://60s.viki.moe/v2/douyin,
bili: https://60s.viki.moe/v2/bili
}

results = {}
for name, url in platforms.items():
try:
response = requests.get(url)
results[name] = response.json()
except:
results[name] = None

return results

使用示例

alltopics = getallhottopics()

简单的bash示例

bash

微博热搜


curl https://60s.viki.moe/v2/weibo

知乎热门

curl https://60s.viki.moe/v2/zhihu

百度热搜

curl https://60s.viki.moe/v2/baidu/hot

抖音热门

curl https://60s.viki.moe/v2/douyin

B站热门

curl https://60s.viki.moe/v2/bili

响应格式

响应通常包含:

json
{
data: [
{
title: 话题标题,
url: https://...,
hot: 1234567,
rank: 1
},
...
],
update_time: 2024-01-15 14:00:00
}

交互示例

用户:微博现在什么最火?

python
hot = getweibohot()
top_5 = hot[data][:5]

response = 微博热搜TOP 5:\n\n
for i, topic in enumerate(top_5, 1):
response += f{i}. {topic[title]}\n
response += f 热度:{topic.get(hot, N/A)}\n\n

用户:知乎上大家在讨论什么?

python
zhihu = getzhihuhot()
response = 知乎当前热门话题:\n\n
for topic in zhihu[data][:8]:
response += f- {topic[title]}\n

用户:对比各平台趋势

python
def compareplatformtrends():
alltopics = getallhottopics()

summary = 各平台趋势概览\n\n

platforms = {
weibo: 微博,
zhihu: 知乎,
baidu: 百度,
douyin: 抖音,
bili: 哔哩哔哩
}

for key, name in platforms.items():
if all_topics.get(key):
toptopic = alltopics[key][data][0]
summary += f{name}:{top_topic[title]}\n

return summary

最佳实践

  1. 1. 频率限制:不要过于频繁调用API,数据每隔几分钟更新一次
  2. 错误处理:始终处理网络错误和无效响应
  3. 缓存机制:将结果缓存5-10分钟以减少API调用
  4. 数量控制:通常显示前5-10条即可
  5. 上下文说明:展示热门话题时提供平台背景信息

常见用例

1. 每日趋势摘要

python
def getdailytrending_summary():
weibo = getweibohot()
zhihu = getzhihuhot()

summary = 今日热门话题\n\n
summary += [微博热搜]\n
summary += \n.join([f{i}. {t[title]}
for i, t in enumerate(weibo[data][:3], 1)])
summary += \n\n[知乎热门]\n
summary += \n.join([f{i}. {t[title]}
for i, t in enumerate(zhihu[data][:3], 1)])

return summary

2. 跨平台共同话题发现

python
def findcommontopics():
alltopics = getallhottopics()

# 提取所有平台的话题标题
all_titles = []
for platformdata in alltopics.values():
if platformdata and data in platformdata:
alltitles.extend([t[title] for t in platformdata[data]])

# 简单关键词匹配(可优化)
from collections import Counter
keywords = []
for title in all_titles:
keywords.extend(title.split())

common = Counter(keywords).most_common(10)
return f热门关键词:{, .join([k for k, _ in common])}

3. 平台特定话题预警

python
def checktrendingtopic(keyword):
platforms = [weibo, zhihu, baidu]
found_in = []

for platform in platforms:
url = fhttps://60s.viki.moe/v2/{platform} if platform != baidu else https://60s.viki.moe/v2/baidu/hot
data = requests.get(url).json()

for topic in data[data]:
if keyword.lower() in topic[title].lower():
found_in.append(platform)
break

if found_in:
return f话题{keyword}正在以下平台热门:{, .join(found_in)}
return f话题{keyword}未在主要平台热门

4. 热门内容推荐

python
def recommendcontentby_interest(interest):
根据用户兴趣推荐热门内容
alltopics = getallhottopics()

recommendations = []
for platform, data in all_topics.items():
if data and data in data:
for topic in data[data]:
if interest.lower() in topic[title].lower():
recommendations.append({
platform: platform,
title: topic[title],
url: topic.get(url, )
})

return recommendations

平台特定说明

微博

  • - 更新频繁(每隔几分钟)
  • 包含热度分数
  • 部分话题可能带有热或新标签

知乎

  • - 聚焦于问题和讨论
  • 通常话题更有深度
  • 适合了解人们的好奇心

百度

  • - 反映搜索趋势
  • 主流兴趣的良好指标

标签

skill ai

通过对话安装

以下为平台配置的接入选项,并非逐项实测通过。能否安装取决于客户端支持、技能来源和运行环境:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 hot-topics-1776074535 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 hot-topics-1776074535 技能

通过命令行安装

skillhub install hot-topics-1776074535

下载

⬇ 下载 hot-topics v1.1.0(免费)

文件大小: 3.58 KB | 发布时间: 2026-4-15 13:01

v1.1.0 最新 2026-4-15 13:01
Translated to English
返回顶部