This is a straightforward Douyin (Chinese TikTok) video downloader that strips watermarks and extracts speech to text. You paste a share link and get back the clean video file plus a markdown transcript using SenseVoice API from SiliconFlow. The video download part works without any API key, but you'll need one if you want the speech transcription. It uses FFmpeg under the hood to rip the audio before sending it off for recognition. Outputs are organized by video ID in separate folders. The documentation is entirely in Chinese but the code structure is clear. Honestly most useful if you're doing content research or need to archive Douyin videos with their spoken content indexed as searchable text.
npx -y skills add yzfly/douyin-mcp-server --skill douyin-video --agent claude-codeInstalls into .claude/skills of the current project.
从抖音分享链接获取无水印视频下载链接, 下载视频, 并使用语音识别提取视频中的文案, 自动保存到文件.
pip install requests ffmpeg-python
brew install ffmpegapt install ffmpeg文案提取功能使用硅基流动 API, 需要设置环境变量:
export API_KEY="your-siliconflow-api-key"
获取 API 密钥: https://cloud.siliconflow.cn/
# 获取视频信息和下载链接 (无需 API 密钥)
python douyin_downloader.py --link "抖音分享链接" --action info
# 下载视频到指定目录
python douyin_downloader.py --link "抖音分享链接" --action download --output ./videos
# 提取视频文案并保存到文件 (需要 API_KEY 环境变量)
python douyin_downloader.py --link "抖音分享链接" --action extract --output ./output
# 提取文案并同时保存视频
python douyin_downloader.py --link "抖音分享链接" --action extract --output ./output --save-video
# 安静模式 (减少输出)
python douyin_downloader.py --link "抖音分享链接" --action extract --output ./output --quiet
提取文案后, 每个视频会保存到独立文件夹:
output/
├── 7600361826030865707/ # 视频ID为文件夹名
│ └── transcript.md # Markdown 格式文案文件
├── 7581044356631612699/
│ ├── transcript.md
│ └── 7581044356631612699.mp4 # 使用 --save-video 时保存
└── ...
# 视频标题
| 属性 | 值 |
|------|-----|
| 视频ID | `7600361826030865707` |
| 提取时间 | 2026-01-30 14:19:00 |
| 下载链接 | [点击下载](url) |
---
## 文案内容
(语音识别的文字内容)
from douyin_downloader import get_video_info, download_video, extract_text
# 获取视频信息
info = get_video_info("抖音分享链接")
print(f"视频ID: {info['video_id']}")
print(f"标题: {info['title']}")
print(f"下载链接: {info['url']}")
# 下载视频
video_path = download_video("抖音分享链接", output_dir="./videos")
# 提取文案并保存到文件
result = extract_text("抖音分享链接", output_dir="./output")
print(f"文案已保存到: {result['output_path']}")
print(result['text'])
https://v.douyin.com/xxxxx/ 或完整的抖音视频 URLAPI_KEY 环境变量是否已设置prisma/skills
firebase/agent-skills
Dexploarer/hyper-forge
itsmostafa/aws-agent-skills
prisma/skills