v0.1.1
Rebuilt on any-cli/kit: status, comments, and suggest join hot; output formats unified across all commands.
v0.1.1 rebuilds weibo on the any-cli/kit
framework and adds three new commands. The kit migration replaces the old
cobra/fang scaffold with a uniform output layer shared across the whole
tamnd/*-cli fleet.
What changed
Three new commands. weibo status, weibo comments, and weibo suggest
join weibo hot. Between them they cover the four main open surfaces of
Weibo's public JSON API.
Unified output. All commands render through the kit formatter: table (with
auto-column-width), JSON, JSONL, CSV, TSV, and URL. -o, --fields,
--template, --no-header, and -n/--limit work the same way on every
command.
HTML stripping. Post text from status and comments arrives with <a>,
<span>, and <br /> tags. v0.1.1 strips all HTML and normalizes whitespace
so the text field is plain readable text.
Timestamp normalization. Weibo timestamps in the format
"Mon Jun 15 09:05:12 +0800 2026" are converted to "2006-01-02 15:04:05" UTC.
Mobile browser headers. m.weibo.cn endpoints require MWeibo-Pwa: 1 and
X-Requested-With: XMLHttpRequest. The client now sets these automatically for
the right endpoints, routing between weibo.com (desktop Chrome UA) and
m.weibo.cn (iPhone Safari UA) per command.
Exit code model. Commands exit 0 on success, 2 on usage errors, 3 when no results are found, 4 when the surface is gated, 5 on rate limiting, 6 on not-found, and 8 on network errors.
Install
go install github.com/tamnd/weibo-cli/cmd/weibo@latest
Prebuilt archives for Linux, macOS, and Windows, plus Linux packages (deb, rpm, apk) and checksums, are on the release page. The container image is on GHCR:
docker run --rm ghcr.io/tamnd/weibo:0.1.1 hot -n 10
The binary is pure Go with no runtime dependencies.