返回 Social Auto Upload
douyin_commands.sh
根目录 / skills / douyin-upload / scripts / examples / douyin_commands.sh
1 #!/usr/bin/env bash
2
3 set -euo pipefail
4
5 # account_name is user-defined. One account_name maps to one account file.
6 # You can prepare multiple account names and run them in parallel.
7 account="account_a"
8 video="videos/demo.mp4"
9 thumbnail="videos/demo.png"
10
11 sau douyin login --account "$account" --headless
12 sau douyin check --account "$account"
13
14 sau douyin upload-video \
15 --account "$account" \
16 --file "$video" \
17 --title "Douyin video from bash" \
18 --desc "Douyin video description from bash" \
19 --tags "cli,video" \
20 --thumbnail "$thumbnail" \
21 --headless
22
23 sau douyin upload-note \
24 --account "$account" \
25 --images "videos/1.png" "videos/2.png" \
26 --title "Douyin note title from bash" \
27 --note "Douyin note from bash" \
28 --tags "cli,note" \
29 --headless
30
30 lines BASH