Loading...
Loading...
获取微博、知乎、百度、抖音、今日头条、B站等主流中文平台的实时热搜榜单和热门话题。Use when users want to know trending topics, hot searches, or popular content on Chinese social media platforms.
npx skill4agent add vikiboss/60s-skills hot-topics| Platform | Endpoint | Description |
|---|---|---|
| Weibo hot search topics | |
| Zhihu | | Zhihu trending questions |
| Baidu | | Baidu hot searches |
| Douyin | | Douyin trending videos |
| Toutiao | | Toutiao hot news |
| Bilibili | | Bilibili trending videos |
https://60s.viki.moe/v2import requests
def get_weibo_hot():
response = requests.get('https://60s.viki.moe/v2/weibo')
return response.json()
hot_topics = get_weibo_hot()
print("🔥 微博热搜:")
for i, topic in enumerate(hot_topics['data'][:10], 1):
print(f"{i}. {topic['title']} - 热度: {topic['热度']}")def get_zhihu_hot():
response = requests.get('https://60s.viki.moe/v2/zhihu')
return response.json()
topics = get_zhihu_hot()
print("💡 知乎热榜:")
for topic in topics['data'][:10]:
print(f"· {topic['title']}")def get_all_hot_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
# Usage
all_topics = get_all_hot_topics()# Weibo hot search
curl "https://60s.viki.moe/v2/weibo"
# Zhihu trending
curl "https://60s.viki.moe/v2/zhihu"
# Baidu hot search
curl "https://60s.viki.moe/v2/baidu/hot"
# Douyin trending
curl "https://60s.viki.moe/v2/douyin"
# Bilibili trending
curl "https://60s.viki.moe/v2/bili"{
"data": [
{
"title": "话题标题",
"url": "https://...",
"热度": "1234567",
"rank": 1
},
...
],
"update_time": "2024-01-15 14:00:00"
}hot = get_weibo_hot()
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('热度', 'N/A')}\n\n"zhihu = get_zhihu_hot()
response = "💡 知乎当前热门话题:\n\n"
for topic in zhihu['data'][:8]:
response += f"· {topic['title']}\n"def compare_platform_trends():
all_topics = get_all_hot_topics()
summary = "📊 各平台热点概览\n\n"
platforms = {
'weibo': '微博',
'zhihu': '知乎',
'baidu': '百度',
'douyin': '抖音',
'bili': 'B站'
}
for key, name in platforms.items():
if all_topics.get(key):
top_topic = all_topics[key]['data'][0]
summary += f"{name}:{top_topic['title']}\n"
return summarydef get_daily_trending_summary():
weibo = get_weibo_hot()
zhihu = get_zhihu_hot()
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 summarydef find_common_topics():
all_topics = get_all_hot_topics()
# Extract titles from all platforms
all_titles = []
for platform_data in all_topics.values():
if platform_data and 'data' in platform_data:
all_titles.extend([t['title'] for t in platform_data['data']])
# Simple keyword matching (can be improved)
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])}"def check_trending_topic(keyword):
platforms = ['weibo', 'zhihu', 'baidu']
found_in = []
for platform in platforms:
url = f'https://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}' 正在以下平台trending: {', '.join(found_in)}"
return f"❌ 话题 '{keyword}' 未在主流平台trending"def recommend_content_by_interest(interest):
"""Recommend trending content based on user interest"""
all_topics = get_all_hot_topics()
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