Loading...

文章背景图

Douyin_TikTok_Download_API 保姆级部署教程:开源项目快速上手指南

2026-11-09
1
- 字
- 分钟
|

Douyin_TikTok_Download_API

Douyin_TikTok_Download_API 开源项目介绍

Douyin_TikTok_Download_API

项目简介

Douyin_TikTok_Download_API 是一个开源项目,🚀 自托管的抖音、TikTok、B 站数据采集与无水印视频下载 API,支持 AI agent 通过 MCP 调用与离线语音转文字,Docker 一键部署。| Self-hosted TikTok, Douyin & Bilibili scraper and no-watermark video downloader — async REST API, MCP server for AI agents, CLI and web console, plus offline speech-to-text for downloaded videos. Self-healing identity pool, PostgreSQL archive, one docker compose up.

  • 项目地址:Evil0ctal/Douyin_TikTok_Download_API
  • Star 数:21301 ⭐
  • 开发语言:Python
  • 项目作者:Evil0ctal
  • 主题标签:#bilibili #crawler #data-collection #douyin #douyin-api #downloader #fastapi #mcp-server

功能特点

  • 开源免费,可自由使用和修改
  • 社区活跃,持续更新维护
  • 文档完善,易于上手
  • 支持二次开发和定制

相关链接

注意事项

  1. 请前往 GitHub 主页查看最新版本和更新日志
  2. 部分项目需要配合 API Key 或配置文件才能使用
  3. 建议在开发环境测试无误后再部署到生产环境
  4. 喜欢的话可以给项目点个 Star ⭐ 支持作者

本文由自动化整理发布,项目信息来自 GitHub。如有疑问请参考项目官方文档。

安装部署(实操步骤)

1. 前置准备

  • 项目仓库:Evil0ctal/Douyin_TikTok_Download_API(https://github.com/Evil0ctal/Douyin_TikTok_Download_API)
  • 需要本机具备 Git;按项目语言准备对应运行时(Python / Node.js / Go / Java 等)
  • 建议先在本机或测试服务器上跑通,再部署到生产环境
  • 遇到依赖版本问题时,以仓库 README 与 Releases 说明为准

2. 官方安装 / 启动命令(摘自项目 README,可直接复制执行)

docker run -d --name dtk-v4 --restart unless-stopped \
  -p 8080:80 evil0ctal/douyin_tiktok_download_api:V4.1.2
docker cp dtk-v4:/app/crawlers/douyin/web/config.yaml ./douyin-web.yaml
# replace the Cookie line with one from your browser, then save
docker rm -f dtk-v4
docker run -d --name dtk-v4 --restart unless-stopped -p 8080:80 \
  -v "$PWD/douyin-web.yaml:/app/crawlers/douyin/web/config.yaml" \
  evil0ctal/douyin_tiktok_download_api:V4.1.2
Open <http://127.0.0.1:8000> and use the token from the log to create the first
administrator.

That starts no browser container, and without it (`--profile browser`, see
[the optional profiles](./documents/en/02-installation.md#the-optional-profiles)) Douyin and
TikTok identities can only be imported, not minted: both hand a visitor its cookies from inside
their page scripts. Bilibili guests are minted over plain HTTP either way.

### Where the image comes from

By default it is built locally: the first `up` compiles the application image from the
Dockerfile in this repository, which takes a few minutes. To skip that, point compose at
the published image instead, in the same `.env`:
It moves the checkout to the release's tag, pulls the new images (or rebuilds them, on an
install built from source), rebuilds the browser image, takes a backup, migrates, and only
then writes the version it moved to into `.env` and restarts. Anything that fails before the
restart puts the checkout and `.env` back, and the old version keeps running. There is
nothing to edit by hand. An install from before
5.1.6 does not have `upgrade` yet; there, once, run `git pull && bash install/install.sh
--upgrade` in the same directory, and from then on it is `./dtkctl upgrade`. Running
`bash install.sh --manage` and picking 2 does the same from the menu.

By hand it is:

3. 部署流程

  1. 克隆仓库:git clone https://github.com/Evil0ctal/Douyin_TikTok_Download_API
  2. 进入目录后按上面的官方命令安装依赖
  3. 参考 README 的配置说明填写配置文件或环境变量
  4. 按官方说明启动服务,确认监听端口与访问地址
  5. 浏览器访问验证功能,确认无报错后再开放外网

4. 常见问题排查

  • 依赖安装失败:先升级包管理器,再确认运行时版本符合 README 要求
  • 启动报端口占用:修改配置中的端口或释放被占用端口
  • 页面打不开:检查防火墙 / 安全组是否放行对应端口
  • 功能异常:查看运行日志,对照 Issues 中同类问题处理

5. 官方链接

评论交流

文章目录