douyin-extractor: Transcribing Douyin Video Audio into Editable Text Within an Agent

Introduction

When conducting content breakdown, competitive research, or reuse by directors, common practices involve manually opening Douyin to transcribe one by one, or writing your own crawler and integrating ASR. The process is lengthy, and account search and batching are difficult to accomplish in a single sentence within a chat. Below is an introduction to the SkillHub community Skill douyin-extractor (located at @user_9a649d94/douyin-writing, current version 2.0.1): it puts “Link / Video ID / Account Name → Speech to Text” into the Agent skill pack, triggering the complete pipeline with natural language.

What is it

douyin-extractor is a copywriting extraction Skill for Douyin. It supports parsing video metadata from inputs like video links, IDs, and account names, and performs speech recognition using Alibaba Cloud paraformer-v2. The publisher is SkillHub user user_9a649d94 (the Skill metadata author is Yang Fei), source is community, categorized as data-analysis on SkillHub, and the page is marked as requires_api_key=true.

Official Entry Points:

  • API / Install coordinate: https://api.skillhub.cn/user_9a649d94/douyin-writing
  • SkillHub showcase page: https://www.skillhub.cn/skills/user_9a649d94/douyin-writing

Core Features

The following capabilities are derived from the Skill’s built-in SKILL.md and implementation notes, verified against the local package structure.

  1. Multiple Inputs: Standard video links, short links v.douyin.com, pure video IDs, comma-separated multiple IDs/links, Douyin account names, and text file paths with one link per line.
  2. Page Metadata: Parses the page via HTTP SSR (documentation states no browser needed), completed by modules like core/extractor.py.
  3. Speech to Text: core/asr.py calls Alibaba Cloud Speech Recognition paraformer-v2; documentation mentions it can transcribe remote audio URLs, and by default, it does not need to write MP4 to disk first under the default path.
  4. Batching and Parallelism: Supports parallel processing of multiple links, parameter workers defaults to 3.
  5. Optional Download: When download is true, the video MP4 can be downloaded locally; README also provides a --only-download mode for pure downloading.
  6. Output Destinations: Terminal, directory files like /tmp/dy_pipeline (format supports txt / json), optional Feishu (Lark) multidimensional tables, optional Obsidian vault.
  7. Copywriting Rewriting: Passing product allows rewriting based on the target product name after one extraction round (module rewrite/).
  8. Account Dimension: Pulls recent videos by account name (requires optional dependency opencli, see Note below).

Typical trigger phrases in conversations include: “Extract copy for this link”, “Extract Douyin copy”, “Douyin video to text”, “What is this Douyin about”, “douyin extract”, etc.

Installation and Enablement

1. Install SkillHub CLI

If not yet installed, check or install the CLI according to the official installation documentation:

command -v skillhub && skillhub --version

Execute the following if not installed (complete installation example, sourced from https://skillhub.cn/install/skillhub.md):

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash

2. Install this Skill

SkillHub page requirement: Refer to https://skillhub.cn/install/skillhub.md to install @user_9a649d94/douyin-writing. When installing, you must use --dir to point to the current Agent’s skills directory; otherwise, the default ./skills/ may not be recognized.

Taking Cursor as an example:

skillhub install @user_9a649d94/douyin-writing --dir ~/.cursor/skills/

Other common directories (same installation document): Claude Code is ~/.claude/skills/, Codex is ~/.codex/skills/ or .agents/skills/ under the project. After installation, restart or refresh the skill list according to the conventions of the Agent you are using.

3. Configure API Key and Runtime Environment

The Skill depends on Python 3.7+ and requests:

pip3 install requests

Speech recognition requires Alibaba Cloud DashScope DASHSCOPE_API_KEY. The lookup order in script/core/config.py is:

  1. Environment variable DASHSCOPE_API_KEY
  2. File /tmp/_apikey.txt
  3. Configuration item DASHSCO= in ~/.hermes/.env

Example:

export DASHSCOPE_API_KEY="your DashScope API Key"

Optional capabilities:

  • Feishu output: Requires lark-cli to be installed and authenticated.
  • Obsidian: Default vault path is ~/Documents/Obsidian Vault/, note subdirectory dy_link.
  • Account search: Requires opencli (marked as optional in Skill documentation).

Typical Usage

In Agent Conversations

Single link (example from SKILL.md):

帮我提取这个抖音的文案 https://www.douyin.com/video/7650147182746931057

Account batching (can be combined with count semantics, e.g., the first 5):

提取「素观天下」账号的前5条视频

Download and write to Obsidian:

提取这个抖音,下载视频并存到 Obsidian

Rewriting with product name:

提取这个抖音的文案,改写成「芝麻糊」的带货文案

Command Line Entry (Skill package main.py)

Reproducible examples from README:

# Extract copy for a single short link, and do not push to Feishu
python3 main.py "https://v.douyin.com/xxx" --no-feishu

# Get 5 items by account name and download videos
python3 main.py "素观天下" --count 5 --download

# Pure download (skip ASR/Feishu)
python3 main.py "cuppro饮具旗舰店" --count 3 --only-download

Main parameters (excerpted from SKILL.md):

Parameter Default Value Description
count 10 Number of items to extract from account
download false Whether to download MP4
feishu / no-feishu false Feishu output toggle
obsidian false Whether to write to Obsidian
product - Target product name to trigger rewriting
format txt txt or json
output /tmp/dy_pipeline File output directory
workers 3 Number of workers for parallelism

Use Cases and Notes

Who is it for: Content operations, directors, and competitive analysis professionals who need to quickly get broadcast scripts in an IDE or CLI Agent; workflows that need to output results to Feishu tables or Obsidian note libraries.

Limitations and Dependencies:

  • You must provide a valid DASHSCOPE_API_KEY yourself; otherwise, ASR cannot execute. The SkillHub tag has already marked the need for an API Key.
  • Douyin pages and interfaces may change; if HTTP parsing fails, refer to future version updates in the Skill repository.
  • Branches like account search, Feishu, Obsidian, and pure download depend on optional tools or local paths. When not configured, you should turn off the corresponding parameters (e.g., --no-feishu).
  • Community Skill; downloads and ratings are based on the SkillHub page (showing about 803 downloads and a rating of 100000 at the time of scraping; these will change over time).

Conclusion

douyin-extractor strings together the pipeline from Douyin links, IDs, and accounts to speech transcription, optional downloads, and multi-platform output, making it suitable for turning “what this video is about” into searchable, editable text. Installation and coordinates are based on SkillHub:

  • https://www.skillhub.cn/skills/user_9a649d94/douyin-writing
  • https://api.skillhub.cn/user_9a649d94/douyin-writing
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye