← 返回
开发者工具

Weibo CLI

Query Weibo (微博) public data via CLI. Use when user asks about: - Weibo hot searches / trending topics (微博热搜) - Searching Weibo posts, users, or topics - Get...
Query Weibo (微博) public data via CLI. Use when user asks about: - Weibo hot searches / trending topics (微博热搜) - Searching Weibo posts, users, or topics - Get...
marvae
开发者工具 clawhub v0.1.1 1 版本 99913.6 Key: 无需
★ 1
Stars
📥 1,137
下载
💾 24
安装
1
版本
#latest

概述

Weibo CLI

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

Installation

# 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

# Top 50 trending
weibo hot --json

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

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

Search

# 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

# 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

# Post detail
weibo post 5000000000000000 --json

# Comments
weibo post 5000000000000000 --comments --json

Output

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

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.

版本历史

共 1 个版本

  • v0.1.1 当前
    2026-03-29 10:40 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 672 📥 324,466
developer-tools

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 68 📥 180,422
ai-intelligence

Hk Ipo Research Assistant

marvae
港股 IPO 打新研究助手。抓取实时数据(孖展、基石、评级、暗盘、A+H折价、中签率),供 AI 分析判断。 触发词:港股打新、新股分析、IPO、孖展、保荐人、暗盘、中签率、基石投资者。 不适用:A 股打新、美股 IPO、基金申购。
★ 2 📥 1,286