Files
wehub-resource-sync 9b395f5cc3
E2E Headed Chrome / e2e-headed (macos-15) (push) Has been cancelled
E2E Headed Chrome / e2e-headed (ubuntu-latest) (push) Has been cancelled
E2E Headed Chrome / e2e-headed (windows-latest) (push) Has been cancelled
CI / build (macos-latest) (push) Has been cancelled
CI / build (ubuntu-latest) (push) Has been cancelled
CI / build (windows-latest) (push) Has been cancelled
CI / unit-test (push) Has been cancelled
CI / bun-test (push) Has been cancelled
CI / adapter-test (push) Has been cancelled
CI / smoke-test (macos-latest) (push) Has been cancelled
CI / smoke-test (ubuntu-latest) (push) Has been cancelled
Security Audit / audit (push) Has been cancelled
Build Chrome Extension / build (push) Has been cancelled
Trigger Website Rebuild (Docs Updated) / dispatch (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 12:39:48 +08:00

71 lines
2.0 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Weibo (微博)
**Mode**: 🔐 Browser · **Domain**: `weibo.com`
## Commands
| Command | Description |
|---------|-------------|
| `opencli weibo hot` | 微博热搜 |
| `opencli weibo search` | Search Weibo posts by keyword |
| `opencli weibo feed` | 首页时间线(`for-you` / `following` |
| `opencli weibo user` | 用户信息 |
| `opencli weibo user-posts` | 按用户列出微博,可选日期范围 |
| `opencli weibo me` | 我的信息 |
| `opencli weibo post` | 读取单条微博 |
| `opencli weibo favorites` | 我的微博收藏列表 |
| `opencli weibo publish` | 通过网页 UI 直接发布微博,支持最多 9 张图片 |
| `opencli weibo delete` | 删除登录账号自己的单条微博 |
| `opencli weibo comments` | 微博评论 |
## Usage Examples
```bash
# Quick start
opencli weibo hot --limit 5
# JSON output
opencli weibo hot -f json
# Search
opencli weibo search "OpenAI" --limit 5
# Home timeline (default: for-you / 推荐流)
opencli weibo feed --limit 10
# Following-only timeline (strict chronological following feed)
opencli weibo feed --type following --limit 10
# Read a post from feed/search using the emitted id
opencli weibo post <id>
# List a user's posts by uid or screen name
opencli weibo user-posts 1670458304 --start 2025-06-01 --end 2025-06-02 --limit 20
# Verbose mode
opencli weibo hot -v
# Favorites
opencli weibo favorites --limit 20
# Publish text (executes immediately)
opencli weibo publish "Hello from OpenCLI"
# Publish text with images (executes immediately)
opencli weibo publish "Hello with images" --images /path/a.jpg,/path/b.png
# Delete one of your own posts (executes immediately)
opencli weibo delete <id>
```
## Listing Columns
`feed`, `search`, and `user-posts` expose `id` for post rows. Pass that value
directly to `opencli weibo post <id>`. `hot` rows are search topics, not post
rows.
## Prerequisites
- Chrome running and **logged into** weibo.com
- [Browser Bridge extension](/guide/browser-bridge) installed