agentleFS
jcaiagent7143-uijcaiagent7143-ui/linkdigest-mcp/skills/weibo-to-text/SKILL.md

weibo-to-text

Skill5 starsChanged 56 days agoMITView on GitHub

微博转文字 / 微博视频文案提取 / 微博 API:一条微博链接读成文字——正文、作者和时间、转发评论点赞数、每张图的描述和图上的字、视频口播逐字稿和画面文字、话题、前几条热评、逐字核对的要点。用户发来 weibo.com、m.weibo.cn 链接,要提取微博内容、扒视频文案、整理热评、做舆情或竞品资料时使用。不用申请微博开放平台,不用微博账号或 Cookie。图文 1 积分起,1 分钟视频 2 积分;注册送 10 积分。

  • Reads credentials
  • Sends data out

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Never invent a link or an id to test with.

    line 66

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

微博转文字 · Weibo to text

一条微博,读成 AI 能直接用的文字。不用申请微博开放平台、不用写爬虫、不用登录微博:服务端通过微博自己的访客页读公开微博。

能拿到什么

内容字段
正文、作者、发布时间、话题caption / title、author、posted_at、tags[]
转发、评论、点赞数(读取当时)stats
每张图的描述和图上的字images[]、ocr_text[]
视频口播逐字稿(有声音时)和画面文字,带时间transcript[]、on_screen[]
分享页显示的前几条热评,带点赞和回复数comments[]
要点,每条附原文引用并逐字核对key_points[]、key_point_support[]
读到了什么、没读到什么coverage、degraded[]

实测(2026-11-01,m.weibo.cn/detail/5351369302084798):61 秒视频,4,761 赞 · 547 评论 · 218 转发,29 段带时间的画面文字,5 条核对过的要点,前 8 条热评;回执写明「视频没有音轨」。3 积分。

准备

  1. 在 https://linkdigest.dev/signin?ref=skill-weibo-to-text&next=/app/keys 登录(邮件里有 6 位验证码,也可以点链接),创建 API Key。新账户送 10 积分,不用绑卡。
  2. export LINKDIGEST_API_KEY=ld_live_...(只放在环境变量或技能配置里,不要贴进对话)。

没有 Key 也能先跑:脚本会用网站的免费看一条(每个地址每天 2 条,只给摘要)。

用法

python3 {baseDir}/scripts/linkdigest.py "https://m.weibo.cn/detail/5351369302084798"
python3 {baseDir}/scripts/linkdigest.py "$WEIBO_LINK" --format json
python3 {baseDir}/scripts/linkdigest.py "<微博链接>" --depth script      # 只要视频口播:每开始 2 分钟 1 积分
python3 {baseDir}/scripts/linkdigest.py "<微博链接>" --translate-to en   # 另附英文译文,+1 积分

视频要读几十秒,脚本会自动等待并轮询;本次扣了几个积分、是否命中缓存打印在 stderr 最后一行。同一条微博的不同链接写法(weibo.com/<用户>/<ID>、m.weibo.cn/detail/<数字ID>、m.weibo.cn/status/<ID>)认成同一条,读过再读 0 积分。

直接调 HTTP:

curl -sS -X POST https://linkdigest.dev/api/v1/digest \
  -H "Authorization: Bearer $LINKDIGEST_API_KEY" -H "Content-Type: application/json" \
  -d '{"url": "https://m.weibo.cn/detail/5351369302084798", "format": "json"}'

返回 202 时用响应里的 poll_url 约 15 秒后 GET(或把同样的 POST 再发一次,只扣一次费)。

不要自己编链接或编号来测试。 上面尖括号里的是占位符:带尖括号的链接会得到 400 placeholder_link,编出来的编号会得到 422,都不扣费,也读不到东西。用户还没给链接就先向用户要。只想确认 Key 能用,读这条真实的示例笔记(已读过,0 积分):

python3 {baseDir}/scripts/linkdigest.py "https://www.xiaohongshu.com/discovery/item/6a6bf662000000002402de7e?xsec_token=CBCe01s1uyd2C8uMx6ycYcnEwPV5_31OX1u_I19FCSd54=&xsec_source=app_share"

Never invent a link or an id to test with; ask the user for one, or read the sample above (already read, 0 credits) to check the key.

读不了的情况(都不扣费)

  • 只有关注者能看的微博(关注可见、好友圈):如实返回读不了,不会猜内容。带视频的这种微博可以用浏览器扩展在自己登录的浏览器里读。
  • t.cn 短链:先在浏览器里打开,复制展开后的 weibo.com / m.weibo.cn 地址。
  • 已删除的微博、微博主页(不是单条微博)。
  • 评论只读分享页显示的前几条热评,不是全部评论。

交给用户时

  • 用户要「文案」:给 transcript 全文;没有口播时(transcript_source 为 none),文字在 on_screen / ocr_text 里,告诉用户视频没有人声。
  • 引用要点时带上 key_point_support 里的原文,便于用户核对。
  • 告诉用户这次用了几个积分(credits;缓存命中为 0)。

价格:图文 1 积分起,视频每开始 1 分钟 2 积分,只要口播(--depth script)每开始 2 分钟 1 积分。积分用完后支付宝 ¥9.9 买 50 积分,一次性、不订阅、不过期。

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.