weibo-cli knowledge
Browse Weibo hot topics, read timelines, and explore user profiles from your terminal
weibo is a CLI for Weibo (微博) via reverse-engineered API. Browse trending topics, read timelines, view user profiles, and explore posts — all from the terminal.
Features
- View real-time hot search topics and trending hashtags
- Browse home feed and user timelines
- Read individual posts with full text and engagement stats
- View comment threads on any post
- Explore user profiles with follower/following information
- Structured output (JSON/YAML) for AI agent integration
- Auto-extract cookies from 8+ browsers or QR code login
Install
uv: uv tool install kabi-weibo-clipipx: pipx install kabi-weibo-cli Commands
| Command | Syntax | Description |
|---|---|---|
login | weibo login | Authenticate via browser cookies or QR code |
hot | weibo hot | View real-time hot search topics |
feed | weibo feed | Browse your home feed timeline |
detail | weibo detail <mblogid> | Read a specific post with full details |
comments | weibo comments <mblogid> | View comment threads on a post |
profile | weibo profile <uid> | View a user's profile information |
weibos | weibo weibos <uid> | Browse a user's post history |
Links
Agent Usage Example
Use cases:
- Monitor trending topics and hot searches on Weibo
- Read and analyze user timelines and post engagement
- Extract Weibo discussions for sentiment analysis
Example workflow:
weibo hot --json | jq '.[].title'