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

douyin-search-to-text

Skill5 starsChanged 57 days agoMITView on GitHub

抖音按关键词搜视频再转文字 / Search Douyin by topic, then turn the videos into text. 给一个话题(中文或英文,如 露营装备、AI 编程、camping gear),返回网页已收录的 douyin.com/video 链接和标题;再挑几条读成口播逐字稿、画面文字、要点和点赞评论数。用于找对标视频、选题调研、竞品内容整理。搜到视频每次 4 积分(搜不到不扣);读一条 1 分钟视频 2 积分。不登录抖音、不要 Cookie、不下载视频。需要 LinkDigest API Key(注册送 10 积分)。

  • Reads credentials
  • Sends data out

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 1 is distinctive, and 1 is 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.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Search: Run the script with the user's topic.

    line 28
  2. Distinctive:

    No account pages, no comment sections, no live streams, no private or deleted videos, no video download.

    line 51

≈ “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

Douyin search → text / 抖音搜索转文字

Two steps an agent usually needs together: find Douyin videos on a topic, then read the ones worth reading.

export LINKDIGEST_API_KEY=ld_live_...          # https://linkdigest.dev/signin?ref=skill-douyin-search-to-text&next=/app/keys — 10 free credits
python3 {baseDir}/scripts/douyin_search.py "露营装备"            # 1. list (4 credits when it finds videos)
python3 {baseDir}/scripts/douyin_search.py "露营装备" --read 2   # 2. list + read the first two

The key stays in the environment or the OpenClaw skill env; never paste it into chat or code.

Workflow for the agent

  1. Search. Run the script with the user's topic. English works: the topic is also searched as the words Douyin creators write (llm → 大模型, camping gear → 露营装备). Output: a numbered list of titles + https://www.douyin.com/video/… links. 4 credits when it finds videos, 0 when it finds none.
  2. Pick. Show the list. If the user named a number ("read the top 3"), use --read 3; otherwise ask which ones, or read single links with python3 {baseDir}/scripts/linkdigest.py "<link>".
  3. Read. Each read returns the spoken transcript (Qwen3-ASR when there are no platform captions), on-screen text with approximate times, caption, key points, and likes / comments / collects / shares as of today. Long videos queue (HTTP 202); the script polls until done.
  4. Report. Give the transcript as-is when the user wants 文案; list on-screen text separately; say how many credits were used (stderr, last line). ASR can misspell names, brands and numbers — tell the user to check those.

Cost

StepCredits
Search that finds videos4
Search that finds nothing0
Read a video under 1 min2
Read a 3-min / 10-min video4 / 11
A link anyone has read before (cache)0
A link that can't be read0

Cap a single read with --max-credits 5. When credits run out the read answers 402 and charges nothing; stderr carries the pay links. The smallest top-up is 50 credits for ¥9.9 (支付宝 Alipay) or $1.50 (card), one-time, no subscription, never expires; 250 credits are ¥36 / $5. Re-run the same command after paying — reads already done come from cache for free.

Limits — say these instead of guessing

  • It searches what the web has indexed of Douyin's public video pages, not Douyin's in-app search: not the whole platform, not ranked by popularity. Hot topics and specific Chinese wording find the most.
  • An empty list means nothing indexed matched; nothing unrelated is padded in. Try a more specific Chinese phrase.
  • Searches are metered by credits only; a high hourly brake (429 → wait) only stops runaway loops. A free account can run 10 searches a day of its own (it is not a pool shared with other accounts); bought credits have no daily limit.
  • No account pages, no comment sections, no live streams, no private or deleted videos, no video download. The user's own feed: the LinkDigest browser extension, on their own page.
  • Exit codes: 0 ok · 2 usage / no key · 3 bad key · 4 out of credits (402, not charged) · 5 unreadable link · 6 rate limited · 7 timed out (re-fetch with linkdigest.py --job-id <id>, no double charge).

JSON instead of Markdown

--format json prints the search response ({"query","platform":"douyin","results":[{"url","title"}],"credits":0}), and with --read each video's full JSON (transcript[], on_screen[], key_points[], stats, credits, cached).

HTTP, if Python isn't available:

curl -sS -X POST https://linkdigest.dev/api/v1/search \
  -H "Authorization: Bearer $LINKDIGEST_API_KEY" -H "Content-Type: application/json" \
  -d '{"query": "AI 编程", "platform": "douyin", "limit": 5}'
# "digest": true reads every result as one batch and adds a one-page comparison (billed per video)

Privacy

Sends only the topic and the chosen links to linkdigest.dev. Never asks for or reads a Douyin account, cookie or login. Media is held in a temp folder while it is read and deleted before the answer; text results are cached by link. Details: https://linkdigest.dev/privacy

Also as remote MCP (https://linkdigest.dev/mcp, tools search_links and digest_url). Docs: https://linkdigest.dev/zh/douyin-sousuo-api · Support: support@linkdigest.dev

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.