# 抖音抖音视频采集下载器 — 配置文件
# 复制本文件为 config.toml 后填写你自己的账号即可。
# 所有路径支持相对路径（相对本文件所在目录）或绝对路径。

[crawler]
# Playwright 持久化登录态目录（内含 cookies.json）。首次用 `python run.py login` 生成。
cookie_profile = "./dy_profile"
# 视频保存根目录
download_dir   = "./downloads"
# 列表 JSON / 状态 / 索引的输出目录
output_dir     = "./output"
# 下载并发数（线程池，默认 4；调大提速但更易被风控，建议 2~8）
concurrency    = 4
# User-Agent（保持默认即可）
user_agent     = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36"

# 账号列表：按需增删。不内置任何示例个人数据。
# declared_count = 主页声明的视频总数；填 0 表示不校验 web 封顶。
# 建议填上，用于自动检测「已采集数 < 主页数」的 web 封顶缺口。
[[accounts]]
name = "你的账号昵称"
url  = "https://www.douyin.com/user/MS4wLjABAAAAxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
declared_count = 0

[[accounts]]
name = "你的账号B"
url  = "https://v.douyin.com/xxxxxx/"
declared_count = 0
