
Weibo Hot Search
- 514 installs
- 47 repo stars
- Updated February 12, 2026
- agentbay-ai/agentbay-skills
weibo-hot-search is a Claude Code skill that fetches real-time Weibo hot search and entertainment trending rankings via browser automation for developers who monitor Chinese social trends and need structured Markdown out
About
weibo-hot-search is a browser-automation skill from agentbay-ai/agentbay-skills that queries Weibo hot search leaderboards—including entertainment category topics ranked by heat score—and returns top results as Markdown. It depends on `wuying-agentbay-sdk` (`python3 -m pip install wuying-agentbay-sdk`) and runs `python3 scripts/browser-use.py` with step-by-step navigation instructions to weibo.com. Developers reach for weibo-hot-search when building trend monitors, content calendars, or social listening agents focused on Chinese microblogging data. Output includes topic name, heat score, and rank for entries meeting configurable heat thresholds such as ≥50000.
- Queries the official Weibo hot search list via browser automation
- Supports filtered views including entertainment category (文娱热搜)
- Returns structured Markdown with ranking, topic name, and热度 values
- Always cites Weibo as the information source
- Reuses existing browser-use.py script without creating new files
Weibo Hot Search by the numbers
- 514 all-time installs (skills.sh)
- Ranked #1,739 of 16,546 AI & Agent Building skills by installs in the Skillselion catalog
- Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/agentbay-ai/agentbay-skills --skill weibo-hot-searchAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 514 |
|---|---|
| repo stars | ★ 47 |
| Last updated | February 12, 2026 |
| Repository | agentbay-ai/agentbay-skills ↗ |
How do you fetch Weibo hot search rankings programmatically?
Let their agent fetch real-time Weibo hot search rankings and entertainment trending topics directly from the web.
Who is it for?
Developers building Chinese social trend monitors or content research agents who need live Weibo hot-search data in Markdown format.
Skip if: Developers tracking Twitter/X or global English trends, or teams without Weibo access requirements, should skip weibo-hot-search.
When should I use this skill?
User asks for 微博热搜, Weibo hot search rankings, entertainment trending topics, or heat-filtered Chinese social trends.
What you get
Markdown hot-search list with topic names, heat scores, ranks, and aggregate statistics.
- Markdown Weibo hot-search ranking list
- Heat score and rank metadata per topic
Files
微博热搜查询
依赖
python3 -m pip install wuying-agentbay-sdk安装步骤
在使用此技能之前,请确保已安装必要的依赖包:
python3 -m pip install wuying-agentbay-sdk使用场景
- 用户想查询微博热搜榜单
- 用户想了解文娱类热搜话题
- 用户想筛选特定热度以上的热搜内容
使用方法
python3 scripts/browser-use.py "<任务执行步骤>"快速示例
python3 scripts/browser-use.py " \
1. 前往微博网站 https://weibo.com/ \
2. 点击左侧菜单中的微博热搜下的文娱分类 \
3. 你需要提取榜单中前十条热搜消息 \
4. 以markdown格式返回所有符合条件的热搜信息
"输出格式
## 微博热搜 - 文娱分类
### 热搜列表(热度 ≥ 50000)
1. **话题名称**
- 热度: xxx
- 排名: #xxx
2. **话题名称**
- 热度: xxx
- 排名: #xxx
### 统计信息
- 总计: xx条热搜
- 最高热度: xxxxx
- 最低热度: xxxxx注意事项
- 始终注明信息来源为微博
- 不需要创建新的脚本,用skill目录下的browser-use.py
- 如果页面加载较慢,请耐心等待
- 热度数值可能实时变化,以抓取时刻为准
- skill调用后,控制台会打印出asp流化链接(可视化的url),可告知用户查看
import os
os.environ["AGENTBAY_LOG_LEVEL"]="CRITICAL"
import logging
logging.disable(logging.CRITICAL)
from agentbay import AgentBay
from agentbay import CreateSessionParams
import asyncio
def get_api_key():
from pathlib import Path
file_path = Path.home() / ".config" / "agentbay" / "api_key"
file_path.parent.mkdir(parents=True, exist_ok=True)
if not file_path.exists():
file_path.touch()
if os.environ.get("AGENTBAY_API_KEY"):
with open(file_path, "w", encoding="utf-8") as f:
f.write(os.environ.get("AGENTBAY_API_KEY"))
try:
with open(file_path, "r", encoding="utf-8") as f:
api_key = f.read().strip()
if not api_key:
api_key = None
except Exception as e:
api_key = None
return api_key
async def main():
import argparse
# 创建解析器
parser = argparse.ArgumentParser(description='wuying-browser-use')
# 添加参数
parser.add_argument('task', help='任务描述') # 位置参数(必需)
args = parser.parse_args()
api_key = get_api_key()
if not api_key:
raise RuntimeError(
"AGENTBAY_API_KEY environment variable is not set. "
"Please visit https://agentbay.console.aliyun.com/service-management to obtain your API key."
)
agent_bay = AgentBay(api_key=api_key)
# Create a session (use an image with browser preinstalled)
params = CreateSessionParams(image_id="browser_latest")
session_result = agent_bay.create(params)
if not session_result.success:
raise RuntimeError(f"Failed to create session: {session_result.error_message}")
session = session_result.session
print(f"asp流化链接: {session.resource_url}")
agent = session.agent
max_try_times = int(os.environ.get("AGENT_TASK_TIMEOUT", 200))
print(f"🚀 Executing task: {args.task}")
result = agent.browser.execute_task(args.task, use_vision=True)
if not result.success:
raise RuntimeError(f"Task execution failed: {result.error_message}")
# 轮询任务状态直到完成
retry_times = 0
query_result = None
while retry_times < max_try_times:
query_result = agent.browser.get_task_status(result.task_id)
if not query_result.success:
raise RuntimeError(f"Task status check failed: {query_result.error_message}")
print(
f"⏳ Task {query_result.task_id} status: {query_result.task_status}, "
f"action: {query_result.task_action}"
)
if query_result.task_status == "finished" or query_result.task_status == "failed":
break
retry_times += 1
await asyncio.sleep(3)
# 检查是否超时
if retry_times >= max_try_times:
raise TimeoutError("Task did not finish within the allowed time")
# 输出最终结果
logging.info(f"✅ Task completed successfully!")
logging.info(f"📊 Task result: {query_result.task_product}")
session.delete()
return query_result.task_product
result = asyncio.run(main())
print(f"Final result: {result}")
Related skills
How it compares
Use weibo-hot-search instead of generic web-scraping skills when the data source is specifically Weibo hot-search entertainment rankings with heat scores.
FAQ
What dependency does weibo-hot-search require?
weibo-hot-search requires the wuying-agentbay-sdk Python package, installed via `python3 -m pip install wuying-agentbay-sdk`, and executes browser tasks through `python3 scripts/browser-use.py`.
What format does weibo-hot-search return?
weibo-hot-search returns a Markdown hot-search list with topic names, heat scores, ranks, and summary statistics for entries meeting the requested heat threshold.