linkdigest-xiaohongshu-douyin-reader
Skill5 starsChanged 56 days agoMITView on GitHub
Read a Xiaohongshu (RedNote) or Douyin link in English. Use when the user shares a xiaohongshu.com, xhslink.com, rednote.com, douyin.com or v.douyin.com link and wants to know what the post says: the caption, the text inside the images (OCR), the spoken transcript of the video, on-screen captions, likes and saves, hashtags, or an English translation. No Chinese phone number, app, login or cookie needed. Reads through the LinkDigest API; needs LINKDIGEST_API_KEY. Pay as you go: an image note is 1 credit (about $0.02), 10 free credits on sign-up.
- Reads credentials
In this repository40 other files it gives its agents.
- bilibili-course-notesSkill
- bilibili-subtitle-textSkill
- bilibili-video-summarySkill
- bilibili-video-to-textSkill
- douyin-batch-to-textSkill
- douyin-creator-cardSkill
- douyin-search-to-textSkill
- douyin-subtitle-textSkill
- douyin-video-summarySkill
- douyin-video-to-textSkill
- hongguo-drama-researchSkill
- instagram-to-textSkill
- linkdigest-script-rewriteSkill
- linkdigestSkill
- linkdigest-video-transcriptSkill
- linkdigest-viral-breakdownSkill
- linkdigest-wechat-article-readerSkill
- linkdigest-xhs-note-ocrSkill
- linkdigest-youtube-summarySkill
- long-video-transcriptSkill
- overseas-pain-pointsSkill
- podcast-to-textSkill
- tiktok-transcriptSkill
- toutiao-to-textSkill
- twitter-to-textSkill
- video-to-articleSkill
- video-to-mindmapSkill
- video-to-notesSkill
- video-transcript-translateSkill
- viral-video-remakeSkill
- weibo-to-textSkill
- xiaohongshu-batch-exportSkill
- xiaohongshu-consumer-insightSkill
- xiaohongshu-daily-draftSkill
- xiaohongshu-douyin-compareSkill
- xiaohongshu-douyin-last-30-daysSkill
- xiaohongshu-note-summarySkill
- xiaohongshu-note-to-textSkill
- xiaohongshu-pain-point-radarSkill
- xiaohongshu-search-to-textSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 3 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
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
- Distinctive: line 44
every image in order: a description and the text written on it.
- Distinctive: line 60
Use it when the user gives one post link and asks what it says, wants it summarised or translated, or wants the text for research on a …
- Distinctive: line 62
Do not use it to search Xiaohongshu or Douyin, read comments, list a creator's posts, download media, post or like.
≈ “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.
Files
Xiaohongshu (RedNote) & Douyin Reader
scripts/linkdigest.pyis relative to this skill's folder.
Chinese social posts are hard to read from outside China. Xiaohongshu shows a login wall or an "open in app" page to a plain fetch, and most of an image note's content is written inside the pictures. Douyin videos carry their content in speech and burned-in captions. This skill hands the link to LinkDigest and gets back text an agent can work with, and translates it to English when asked.
Quick start
export LINKDIGEST_API_KEY=ld_live_... # create at https://linkdigest.dev/signin?ref=skill-linkdigest-xiaohongshu-douyin-reader&next=/app/keys (10 free credits, no card)
python3 scripts/linkdigest.py "https://www.xiaohongshu.com/discovery/item/6a6bf662000000002402de7e?xsec_token=CBCe01s1uyd2C8uMx6ycYcnEwPV5_31OX1u_I19FCSd54=&xsec_source=app_share"The script uses only the Python standard library. It prints Markdown by default; add --format json for structured fields. The whole share text copied from the app works as input: the link is picked out on the server.
Check the key first (0 credits, never invent a link)
Do not make up a link or a note id to test with: a link with <...> left in it answers 400 placeholder_link, and an invented id (all zeros, for example) answers 422 not_a_post — neither is charged, and neither reads anything. Until the user gives you a real post, read this sample note: it has been read before, costs 0 credits and returns in about a second.
python3 scripts/linkdigest.py "https://www.xiaohongshu.com/discovery/item/6a6bf662000000002402de7e?xsec_token=CBCe01s1uyd2C8uMx6ycYcnEwPV5_31OX1u_I19FCSd54=&xsec_source=app_share"Once that works, ask the user for the post they actually want (App: Share → 复制链接 / Copy link) and read that.
What comes back
For a Xiaohongshu image note:
- title, author, post date, caption, hashtags;
- likes, saves, comments and shares as the platform reported them that day;
- every image in order: a description and the text written on it;
- key points, each with a short quote checked word for word against the post.
For a Douyin or Xiaohongshu video:
- the spoken transcript with timecodes;
- on-screen text with approximate times;
- the post's own chapters and category when Douyin provides them;
- key points with checked quotes.
For both:
translation(with--translate-to en): title, caption, key points, transcript and image text in English. The Chinese original stays beside it, so quotes can be checked.coverage: a receipt of how much was read (seconds transcribed, images read) and a plain list of what was not.links: links and QR codes the post points to. They are listed, never opened.
When to use it, and when not
Use it when the user gives one post link and asks what it says, wants it summarised or translated, or wants the text for research on a product, a trend or a competitor.
Do not use it to search Xiaohongshu or Douyin, read comments, list a creator's posts, download media, post or like. It reads one public post per call. Private, deleted or login-only posts cannot be read (HTTP 422, no charge).
Options
--translate-to en(orja,ko,es, ...): adds the translation, +1 credit.--breakdown: adds a structure analysis of the post (hook, beats with timestamps, title formula, reusable template), +1 credit.--depth transcript: for long videos. Full transcript with a few frames, 1 credit per 2 minutes instead of 1 per minute.--max-credits N: never spend more than N credits on this link.--partial-ok: when a video is longer than the budget allows, read the opening part instead of refusing.--job-id <id>: collect a job that was still running.
Exit codes: 0 done; 3 bad key; 4 not enough credits (nothing charged; a payment link is printed); 5 link cannot be read (nothing charged); 6 rate limited; 7 still running, collect with --job-id.
Cost
One credit is about $0.02 on the $5 pack (250 credits; cards, or Alipay in CNY).
| Read | Credits |
| Image note, up to 6 images | 1 |
| Each further 6 images | +1 |
| Video, per started minute | +1 on top of the base 1 |
Long video with --depth transcript, per started 2 minutes | +1 on top of the base 1 |
| Translation, breakdown | +1 each |
| A link anyone has read before (cached) | 0 |
| A link that cannot be read | 0 |
Ten free credits on sign-up, once. Current prices: https://linkdigest.dev/pricing
Tips for links
- Keep the parameters when you have them (the app's Share → Copy link carries them), but a bare
/explore/<id>is not a bad link: in LinkDigest's logs about 90% of note links without a share token read, and app share links are refused at about the same rate. A refusal is the platform's answer about the note, not about the link shape. rednote.comlinks are the same notes asxiaohongshu.comand work the same way.- A Douyin short link (
v.douyin.com/...) and the full address of the same video cost one read, not two.
Telling the user
Give the translated text when they asked in English, and say which parts are the post's own words (caption, transcript, image text, counts) and which were written by a model (image descriptions, key points, translation). Mention anything in coverage.not_captured, and how many credits the call used.
Privacy
The link is the only thing sent, and only to linkdigest.dev. No Xiaohongshu or Douyin account is used. Media is fetched to a temporary folder for the read and deleted. Text results are cached per link, so the same public post is free to read again and may be served to others who ask for the same link; do not submit private links. scripts/linkdigest.py reads one environment variable, LINKDIGEST_API_KEY, talks to one host, and writes no files. Details: https://linkdigest.dev/privacy
Other ways in: remote MCP at https://linkdigest.dev/mcp (tool digest_url), OpenAPI at https://linkdigest.dev/openapi.json, source and examples at https://github.com/jcaiagent7143-ui/linkdigest-mcp. Questions: support@linkdigest.dev
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
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.

