Security v0.1.1

weibo-cli

Query Weibo (微博) public data via CLI. Use when user asks about: - Weibo hot searches / trending topics (微博热搜) -...

marvae 更新于 2026-03-14 1 浏览
下载 SKILL

技能说明

Query Weibo (微博) public data via CLI. Use when user asks about: - Weibo hot searches / trending topics (微博热搜) - Searching Weibo posts, users, or topics - Getting user profiles, feeds, followers - Reading post details or comments No authentication required - uses public mobile web API. Chinese social media platform.

使用场景

Query Weibo public data via weibo command. No login or API key required.

查看英文原始说明

Query Weibo (微博) public data via CLI. Use when user asks about: - Weibo hot searches / trending topics (微博热搜) - Searching Weibo posts, users, or topics - Getting user profiles, feeds, followers - Reading post details or comments No authentication required - uses public mobile web API. Chinese social media platform.

直接复制以下提示词,发送给你的 AI 助手即可完成安装。

帮我下载并安装这个SKILL:https://skillhub.cstcloud.cn/download/weibo-cli
  1. 点击上方「下载 SKILL」按钮,获取技能压缩包。
  2. 将压缩包解压到你的 Agent 技能目录。
  3. 重启客户端后即可在技能列表中选择该技能。

技能文件内容

4 个文件 · 24 kB
SKILL.md text/markdown
---
name: weibo-cli
description: |
  Query Weibo (微博) public data via CLI. Use when user asks about:
  - Weibo hot searches / trending topics (微博热搜)
  - Searching Weibo posts, users, or topics
  - Getting user profiles, feeds, followers
  - Reading post details or comments
  No authentication required - uses public mobile web API.
  Chinese social media platform.
---

# Weibo CLI

Query Weibo public data via `weibo` command. No login or API key required.

## Installation

```bash
# Global install
npm install -g @marvae24/weibo-cli

# Or local install (safer)
npm install @marvae24/weibo-cli
npx @marvae24/weibo-cli hot
```

## Authentication

**No authentication required.** The CLI uses Weibo's public mobile web API with auto-generated visitor cookies. All data accessed is publicly available on weibo.com.

Optional: Set `WEIBO_COOKIE` environment variable for higher rate limits (your own login cookie).

## Commands

### Hot Searches

```bash
# Top 50 trending
weibo hot --json

# Limit results
weibo hot --limit 10 --json

# Topic detail (read count, discussion count)
weibo hot "AI" --json
```

### Search

```bash
# Search posts (default)
weibo search "咖啡" --json

# Search users
weibo search "咖啡" --type user --json

# Search topics with stats
weibo search "旅行" --type topic --stats --json

# Types: content, user, topic, realtime, hot, video, image, article
weibo search "猫" --type video --limit 5 --json
```

### User

```bash
# Profile (need UID)
weibo user 123456789 --json

# User feeds
weibo user 123456789 --feeds --json

# Hot feeds (sorted by engagement)
weibo user 123456789 --feeds --hot --json

# Following/followers
weibo user 123456789 --following --json
weibo user 123456789 --followers --json

# Pagination
weibo user 123456789 --feeds --limit 20 --page 2 --json
```

### Post

```bash
# Post detail
weibo post 5000000000000000 --json

# Comments
weibo post 5000000000000000 --comments --json
```

## Output

Always use `--json` for structured output. Parse with jq:

```bash
weibo hot --limit 10 --json | jq '.[] | {keyword: .description, heat: .trending}'
weibo user 123456789 --json | jq '{name: .screen_name, followers: .followers_count}'
weibo search "coffee" --json | jq '.[0] | {text: .text, reposts: .reposts_count}'
```

## Rate Limiting

If you see rate limit errors, wait 1-2 minutes. The CLI auto-retries with exponential backoff.

文件内容直接读取自技能仓库,仅供安装前审阅;以实际下载的压缩包为准。