douyin-favorites-archive

douyin-favorites-archive is a skill for Claude Code, Codex from liusencomic-cyber/douyin-agent-kit. It costs 35 tokens per session (9,361 once invoked), scanned A, original, MIT.

A batch workflow for archiving Douyin favorites or all posts from selected creators into Obsidian. It uses account cookies, rate limits, downloading, transcription, deduplication, and optional scheduled synchronization.

In plain words
What is it for?
Syncing a user's favorites, downloading every post from a creator, transcribing videos, extracting useful summaries, and sending the results to an Obsidian inbox.
Why use it?
It turns a large collection of saved or creator videos into organized archive notes while reducing duplicate downloads and stopping when account-safety checks appear.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for openclaw. Also seen: mentions subagents; mentions Claude Code; mentions Codex.

Good fit Syncing a user's favorites, downloading every post from a creator, transcribing videos, extracting useful summaries, and sending the results to an Obsidian inbox.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/liusencomic-cyber/douyin-agent-kit/favorites-archive
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add liusencomic-cyber/douyin-agent-kit --skill favorites-archive
Clone the repo
git clone --depth 1 https://github.com/liusencomic-cyber/douyin-agent-kit

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for douyin-favorites-archive

README.md
[![agentmods](https://agentmods.dev/badge/skills/liusencomic-cyber/douyin-agent-kit/favorites-archive/github.svg)](https://agentmods.dev/skills/liusencomic-cyber/douyin-agent-kit/favorites-archive)
Your own site
<a href="https://agentmods.dev/skills/liusencomic-cyber/douyin-agent-kit/favorites-archive"><img src="https://agentmods.dev/badge/skills/liusencomic-cyber/douyin-agent-kit/favorites-archive/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for douyin-favorites-archive

Your own site · 80×15
<a href="https://agentmods.dev/skills/liusencomic-cyber/douyin-agent-kit/favorites-archive"><img src="https://agentmods.dev/badge/skills/liusencomic-cyber/douyin-agent-kit/favorites-archive.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 35 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 9,361 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00035 $0.09361
Opus 5 $0.00017 $0.04680
Sonnet 5 $0.00007 $0.01872
Haiku 4.5 $0.00003 $0.00936

Measured 11d ago against content hash b7510849171e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

douyin-favorites-archive scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

The scan reads SKILL.md. This mod also ships 3 executable files (scripts/fetch_klines.py, scripts/rerun_visual_needs.py, scripts/resolve_creator.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

1. **解析博主**:抖音号无法免登录搜索(网页搜索强制登录+签名)。让 用户 在 APP 分享主页链接,`curl -sL` 解析 `v.douyin.com` 短链 → `iesdouyin.com/share/user/<sec_uid>` 即得主页 ID。**注意核对**:先用 Playwright 开主页确认昵称和抖音号与 用户 描述一致再抓(本次发现 用户 给的号码≠今早视频博主,核对避免了抓错人)。
skills/favorites-archive/SKILL.md · 182 lines

How it starts

The opening of the file, as written. The whole thing — 182 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Agent 无关声明:本技能与具体 Agent 解耦,可在 Hermes / OpenClaw / WorkBuddy / Claude Code / Codex / 任意本地 Agent 上运行。文中提到的 vision_analyze 等工具名 仅为示例:如你的 Agent 无此能力,请按 agents/adapter-contract.md 适配,视觉/OCR 走 douyin_agent_kit.config.yamlvision.ocr_provider / vision.fallback_ocr。 各 Agent 接入方式见 agents/<你的agent>.md(设置向导生成的 AGENT_SETUP.md 会指向对应文档)。

抖音收藏自动归档 / 博主蒸馏(已认证批量工作流)

单条链接的转录归档走 douyin-video-transcribe skill;本 skill 管需要本人 Cookie 的批量工作流:收藏列表同步、博主全量扒取、定时增量归档。

工具选型(2026-08 实测)

  • ❌ JoeanAmier/TikTokDownloader:X-Bogus/A-Bogus 签名算法已停止维护,README 明示"部分功能无法正常工作"。不要再用。
  • jiji262/douyin-downloader(9.1k Star,活跃维护):
    • 本人收藏:link: ["https://www.douyin.com/user/self?showTab=favorite_collection"] + mode: [collect]
    • 博主全量:link 用博主主页 URL + mode: [post]number.post: 0 = 全部
    • SQLite 去重、浏览器兜底(browser_fallback)、REST 模式(--serve
    • 收藏/喜欢是私密数据,必须本人 Cookie;collect 模式不支持增量停止(靠 SQLite 去重防重复下载)
  • 部署位置:仓库根(可用环境变量 DOUYIN_SYNC_DIR 覆盖工作目录;上游 douyin-downloader clone 到 douyin-downloader/ 子目录,独立 venv + config.yml + qr_login.py)。
  • 运行方式:PATH 加依赖 venv 的 bin + PYTHONPATH=<venv>/lib/python3.x/site-packages,裸 python3 run.py -c config.yml注意 ./venv/bin/python 这种相对路径调用解释器同样会被守卫拦截,不只绝对路径。

账号安全五条铁律(用户 明确要求"不能封号")

  1. 只读自己收藏列表(最低风险端点,≈ 手动刷收藏的同类请求)。不用本人账号批量扒别人主页——实证:连续下载 35+ 博主会触发 Cookie 风控(TikTokDownloader issue #478)。博主蒸馏需求单独评估,优先免登录/公开端点 + 更保守限速。
  2. 低频增量:每天最多同步一次;首次跑 number.collect 设小批量(如 30)验证后再放大。
  3. 拟人节奏:单线程(thread: 1),不并发轰炸。
  4. 同 IP:家里直连,不走代理乱跳(IP 跳变比频率更容易触发风控)。
  5. 遇风控立即停:返回滑块/验证/异常即停止并通知 用户,绝不自动重试硬闯。

诚实口径:任何工具都无法承诺绝对零封号风险,说"保证零风险"是吹牛。真实风险是限流/滑块/Cookie 失效;封号主要打击黑灰产画像(批量注册、矩阵号、刷量、营销导流),个人只读自己收藏不在画像内。对 用户 如实说明,不拍胸脯。

扫码登录流程(用户 不在 Mac 旁也能完成)

脚本:仓库根 qr_login.py(headless Playwright)

  1. 打开抖音首页——登录弹窗自动出现,无需点"登录"按钮(点选择器会超时,属正常)。
  2. 抓二维码:data-URI 的 <img>512×512(过滤条件要 naturalWidth <= 600<400 会漏掉)。
  3. 二维码图发给用户(MEDIA:),手机抖音扫码 + 确认;码 1–2 分钟过期,脚本自动刷新文件,用户说过期就重发。
  4. 轮询 sid_guard/sessionid cookie 出现即登录成功(15 分钟窗口)。
  5. 收集 msToken(从请求 query 抓)、ttwidodin_ttpassport_csrf_tokensid_guard,写 config/cookies.json 并回填 config.yml。

Read the full file on GitHub · 182 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 182 lines · 35 tokens per session scan A b7510849171e

Subscribe to this mod's changes

douyin-favorites-archive is a skill published in the GitHub repository liusencomic-cyber/douyin-agent-kit (2 stars, last pushed 11d ago), licensed MIT. It adds 35 tokens to every session and 9,361 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

extracting-lab-tables

Detects and extracts tabular laboratory panels from PDFs, scans, and images into structured rows ready for OpenMed and FHIR. Use when the user has a CBC, CMP, lipid panel, or other lab report as a scanned image / PDF / spreadsheet and needs the test name, value, unit, reference range, and abnormal flag as clean rows.…

maziyarpanahi/openmed · 210 tokens

ingesting-clinical-documents

Turn scanned faxes, images, and CSV/CDA exports into clean text ready for OpenMed de-identification and NER, fully on-device. Use when the user has clinical documents (image scans, photographed/faxed notes, tabular CSV/TSV exports, C-CDA XML) and needs OCR or structured intake before openmed.deidentify and…

maziyarpanahi/openmed · 151 tokens

parsing-ccda-documents

Parses C-CDA / CCD XML clinical documents to extract human-readable section narrative plus coded entries, keyed by section LOINC codes and templateIds. Use before OpenMed processing when ingesting C-CDA R2.1 documents (CCD, Discharge Summary, H&P, Consultation Note) exported from an EHR and you need the narrative…

maziyarpanahi/openmed · 152 tokens

structuring-radiology-reports

Converts free-text radiology narratives into structured findings and impression — with measurements, laterality, anatomy, and follow-up recommendations — after OpenMed NER. Use when the user has a CT/MRI/X-ray/ultrasound/mammography report and needs the sections split (technique, comparison, findings, impression)…

maziyarpanahi/openmed · 195 tokens

summarizing-clinical-notes

Produces structured, citation-anchored summaries of clinical notes — one-liner, hospital course, and problem-oriented views — where every claim cites a source span so nothing is hallucinated. Use after de-identifying notes when the user wants a discharge summary draft, handoff/SBAR, problem list, or chart-abstraction…

maziyarpanahi/openmed · 129 tokens

bank-statement-parsing

Guidelines for parsing bank statements using YOLO layout detection + OCR + LLM.

johnsonhk88/AI-Bank-Statement-Document-Automation-By-LLM-And-Personal-Finanical-Analysis-Prediction · 23 tokens