360 Secure SkillHub
360 安全技能中心

Weibo Trending Topics

通过微博公开热榜接口获取实时热搜前排条目,无需 API key 或登录;附带历史榜单对比函数,可输出新上榜与已掉榜条目。描述中提到的分类筛选未在代码中实现。

分类:搜索
dzxiatian-crypto
dzxiatian-crypto
热度 48.89
最近更新 2026-05-11 17:41:56

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add dzxiatian-crypto/weibo-trending-topics
兼容性
通用兼容
联网要求
需要联网
数据出网
数据不出本机
Metadata
name
weibo-trending-topics
description
Track Weibo hot search trends (微博热搜) in real-time. Fetches live trending topics, categories (娱乐/社会/科技/体育), and historical trend data. Zero config required. Triggers: "微博热搜", "weibo trending", "微博趋势", "热搜榜".
version
1.0.0
tags
["latest","chinese-platform","trending","social-media"]

Weibo Trending Topics

Track real-time trending topics on Weibo (微博热搜榜) with category filtering and historical comparison.

🔵 Zero Config — Works Immediately

No API keys, no login needed. Uses Weibo's public API endpoints.

Usage

import requests

# 微博热搜实时榜单 (Top 50)
url = "https://weibo.com/ajax/side/hotSearch"
resp = requests.get(url, headers={"User-Agent": "Mozilla/5.0"})
data = resp.json()

for item in data.get("realtime", []):
    print(f"{item.get('flag_desc','')} {item.get('word')} | 🔥 {item.get('num')}")

Historical Comparison

def compare_trends(old_file, new_file):
    with open(old_file) as f:
        old = {item["word"] for item in json.load(f).get("realtime", [])}
    with open(new_file) as f:
        new = {item["word"] for item in json.load(f).get("realtime", [])}
    print(f"🆕 新上榜: {new - old}")
    print(f"📉 已掉榜: {old - new}")

Tags

weibo 微博 热搜 trending social-media chinese-platform news hot-search