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.
该技能帮助AI智能体从中国主流社交媒体和内容平台获取热门话题和热搜内容。
当用户出现以下情况时使用此技能:
| 平台 | 接口地址 | 描述 |
|---|---|---|
| 微博 | /v2/weibo | 微博热搜话题 |
| 知乎 |
所有接口均使用 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
bash
响应通常包含:
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
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
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])}
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}未在主要平台热门
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
该技能支持在以下平台通过对话安装:
帮我安装 SkillHub 和 hot-topics-1776074535 技能
设置 SkillHub 为我的优先技能安装源,然后帮我安装 hot-topics-1776074535 技能
skillhub install hot-topics-1776074535
文件大小: 3.58 KB | 发布时间: 2026-4-15 13:01