Original:🇺🇸 English
Translated
1 scriptsChecked / no sensitive code detected
Read and post on 微博 / Weibo (weibo.com) with the user's own login cookies (BYOC) — list their recent posts with repost/comment/like counts and publish a new 微博. Use when the user mentions 微博 / Weibo, "我的微博", reading their post engagement, or 发微博 / posting to Weibo.
19installs
Sourceacedatacloud/skills
Added on
NPX Install
npx skill4agent add acedatacloud/skills weiboTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →weibo — read & post on 微博 via your own cookies
Drives the user's real 微博 account through the same web API
the site uses, authenticated by the login cookie they captured with the ACE
extension. No browser, no third-party deps — just .
weibo.com/ajaxurllib⚠️ Not yet E2E-verified. Unlike the other cookie skills (csdn / juejin / bilibili / medium), this one was built from the documented web API but could not be tested against a live account (no 微博 connection existed at build time). The first live run is the verification; if an endpoint shape drifted it will surface as a clear error rather than silent breakage.
The connector injects the cookie jar as an env var:
- — a JSON array of cookies. Secret — never echo or print it. Writes send the
WEIBO_COOKIEScookie as both theXSRF-TOKENheader and thex-xsrf-tokenform field (the CLI does this for you).st
CLI
The skill ships — self-contained, stdlib only.
scripts/weibo.pysh
WB=$SKILL_DIR/scripts/weibo.py
python3 $WB whoami # who is logged in (+ counts)
python3 $WB posts --limit 20 # my recent 微博 + engagementEngagement comes straight from 微博: (转发),
(评论), (赞).
reposts_countcomments_countattitudes_countVerify the connection first
sh
python3 $WB whoami
# → {"uid": "...", "name": "...", "statuses_count": ...}On an auth error the cookie is expired — have the user reconnect at
https://auth.acedata.cloud/user/connections. Do not loop-retry.
Posting — GATED (dry-run unless trailing --confirm
)
--confirm微博 are short-form, so there is no draft step — a confirmed post goes live.
Without a trailing it dry-runs. is honored only as the
last argument. Always show the dry-run, get an explicit "yes", then re-run.
--confirm--confirmsh
python3 $WB post --content "你好,这是一条微博" # dry-run
python3 $WB post --content "你好,这是一条微博" --confirm # PUBLIC 微博 (immediate)- There is no draft and no private mode on 微博 — a confirmed post is
immediately public. Always show the dry-run and get explicit approval of
the exact text before adding .
--confirm
Gotchas
- This is the user's real 微博 account. Confirm before any post — it is immediate and public by default.
- Not E2E-verified (see the warning above) — expect to validate the first run.
- Never print — it is full account access.
WEIBO_COOKIES - ToS: acts only on the user's own account with their own captured cookie.