Reading the repo
Reading the repo
Assembly instructions
自动化上传视频到社交媒体:抖音、小红书、视频号、tiktok、youtube、bilibili
Saved setup from 9 h ago
The maintainers included start-win.bat. Run it from the cloned folder after reading it.
.\start-win.bat
Will it work on my device?
docs/install.md这个文档分成两部分:
For Humans:给正常使用仓库的开发者、创作者、CLI 用户看For AI Agents:给 OpenClaw、Codex、Claude Code 一类 agent 看如果你是“正在使用 agent 客户端的人”,想先给 agent 一段启动提示词,而不是直接阅读下面的执行细节,先看:
git clone https://github.com/dreammis/social-auto-upload.git
cd social-auto-upload
推荐使用 uv:
Windows PowerShell:
uv venv
.venv\Scripts\activate
Linux / macOS:
uv venv
source .venv/bin/activate
当前主线依赖已经放到 pyproject.toml,推荐直接执行:
uv pip install -e .
安装完成后,会注册 sau 命令。
当前主线使用 patchright 驱动浏览器。
国内用户推荐先指定镜像,再安装 Chromium。
Windows PowerShell:
$env:PLAYWRIGHT_DOWNLOAD_HOST="https://npmmirror.com/mirrors/playwright"; patchright install chromium
Linux / macOS:
PLAYWRIGHT_DOWNLOAD_HOST="https://npmmirror.com/mirrors/playwright" patchright install chromium
复制一份配置:
cp conf.example.py conf.py
Windows 也可以直接手动复制并重命名。
当前通常还会用到这些配置项:
LOCAL_CHROME_PATHLOCAL_CHROME_HEADLESSDEBUG_MODEXHS_SERVER 目前只和小红书旧流程相关。
sau --help
sau douyin --help
sau kuaishou --help
sau xiaohongshu --help
sau bilibili --help
如果命令找不到,优先确认:
uv pip install -e .sau douyin login --account <account_name>
sau douyin check --account <account_name>
sau douyin upload-video --account <account_name> --file videos/demo.mp4 --title "示例标题" --desc "示例简介"
图文正文1:
$noteText = @"图文正文"@
sau douyin upload-note --account <account_name> --images videos/demo1.png videos/demo2.png --title "图文标题" --note $noteText --tags 'tag1,tag2'
图文正文2:
sau douyin upload-note --account <account_name> --images videos/demo1.png videos/demo2.png --title "图文标题" --notef '图文文件路径' --tags 'tag1,tag2'
添加 BGM(可选):
sau douyin upload-note --account <account_name> --images videos/demo1.png videos/demo2.png --title "图文标题" --note $noteText --tags 'tag1,tag2' --bgm '音乐名称'
抖音短信验证码补充说明:
verify_code.txtverify_code.txt 时,CLI 会直接提示你在终端输入验证码verify_code.txt 来提供验证码verify_code.txt抖音卡login手动获取cookie:
bash export_douyin_cookie.sh --account <account_name>sau douyin check --account <account_name>sau kuaishou login --account <account_name>
sau kuaishou check --account <account_name>
sau kuaishou upload-video --account <account_name> --file videos/demo.mp4 --title "示例标题" --desc "示例简介"
sau kuaishou upload-note --account <account_name> --images videos/demo1.png videos/demo2.png videos/demo.png --title "图文标题" --note "图文正文"
sau xiaohongshu login --account <account_name>
sau xiaohongshu check --account <account_name>
sau xiaohongshu upload-video --account <account_name> --file videos/demo.mp4 --title "示例标题" --desc "示例简介"
sau xiaohongshu upload-note --account <account_name> --images videos/demo1.png videos/demo2.png videos/demo.png --title "图文标题" --note "图文正文"
sau bilibili login --account <account_name>
sau bilibili check --account <account_name>
sau bilibili upload-video --account <account_name> --file videos/demo.mp4 --title "示例标题" --desc "示例简介" --tid 249
补充说明:
creator 之类的名字只是示例值,真正传的是用户自定义的 account_nameaccount_name 对应一个账号文件,可以准备多个账号并发使用title + desc + tagstitle + note + tagsbiliupbiliupqrcode.png 扫码https://gh-proxy.com/ 或 https://gh-proxy.org/ 辅助访问对应 release 地址排障https://gh-proxy.org/https://github.com/biliup/biliup/releases/download/v1.1.29/biliupR-v1.1.29-aarch64-linux.tar.xz如果你是一个可执行命令的 agent,请优先按下面顺序处理:
uv 管理环境,不要默认回退到旧的 requirements.txtuv pip install -e .
Windows PowerShell:
$env:PLAYWRIGHT_DOWNLOAD_HOST="https://npmmirror.com/mirrors/playwright"; patchright install chromium
Linux / macOS:
PLAYWRIGHT_DOWNLOAD_HOST="https://npmmirror.com/mirrors/playwright" patchright install chromium
sau --help
sau douyin --help
sau kuaishou --help
sau xiaohongshu --help
sau bilibili --help
sau douyin login
sau douyin check
sau douyin upload-video
sau douyin upload-note
sau kuaishou login
sau kuaishou check
sau kuaishou upload-video
sau kuaishou upload-note
sau xiaohongshu login
sau xiaohongshu check
sau xiaohongshu upload-video
sau xiaohongshu upload-note
sau bilibili login
sau bilibili check
sau bilibili upload-video
skills/douyin-upload/SKILL.mdskills/douyin-upload/references/cli-contract.mdskills/kuaishou-upload/SKILL.mdskills/kuaishou-upload/references/cli-contract.mdskills/xiaohongshu-upload/SKILL.mdskills/xiaohongshu-upload/references/cli-contract.mdskills/bilibili-upload/SKILL.mdskills/bilibili-upload/references/cli-contract.mdsau bilibili login --account <name>;如果二维码显示不完整,再提示用户打开 qrcode.pngrequirements.txt 目前是历史兼容文件,不是主安装入口uploader/ 是核心实现目录sau_cli.py 是当前 CLI 主入口docs/legacy-web.md 是历史 Web 版本说明,不保证当前可用biliupThen run bash setup.sh. It stops at the first error and is safe to run again. Servers and tests aren't started; it lists them at the end. Read it first.
Needs Git: xcode-select --install
git clone https://github.com/dreammis/social-auto-upload.git cd social-auto-upload
Python >=3.10,<3.13
brew install uv
uv sync
No reports for macOS yet.
Opens a chat with this manual already filled in, for macOS. It uses your own account; gitmanual sends nothing.