Files
EveryPublish/skills/douyin-upload/scripts/examples/douyin_commands.sh
T
home-dev-pookz 90d03dc15a 小红书重构
1. 图文上传
2. 视频上传(封面,定时)
3. cli
4. skill
5. 无头模式
2026-03-25 15:19:40 +08:00

30 lines
770 B
Bash

#!/usr/bin/env bash
set -euo pipefail
# account_name is user-defined. One account_name maps to one account file.
# You can prepare multiple account names and run them in parallel.
account="account_a"
video="videos/demo.mp4"
thumbnail="videos/demo.png"
sau douyin login --account "$account" --headless
sau douyin check --account "$account"
sau douyin upload-video \
--account "$account" \
--file "$video" \
--title "Douyin video from bash" \
--desc "Douyin video description from bash" \
--tags "cli,video" \
--thumbnail "$thumbnail" \
--headless
sau douyin upload-note \
--account "$account" \
--images "videos/1.png" "videos/2.png" \
--title "Douyin note title from bash" \
--note "Douyin note from bash" \
--tags "cli,note" \
--headless