返回 Social Auto Upload
instagram_cli_template.py
根目录 / skills / instagram-upload / scripts / examples / instagram_cli_template.py
1 from subprocess import run
2
3 commands = [
4 ['sau', 'instagram', 'login', '--account', 'account_a'],
5 ['sau', 'instagram', 'check', '--account', 'account_a'],
6 [
7 'sau', 'instagram', 'upload-video', '--account', 'account_a',
8 '--file', 'videos/demo.mp4', '--title', 'Instagram Reel 示例',
9 '--desc', '视频简介', '--tags', 'life,share',
10 ],
11 [
12 'sau', 'instagram', 'upload-note', '--account', 'account_a',
13 '--images', 'images/1.jpg', 'images/2.jpg',
14 '--title', 'Instagram 轮播示例', '--note', '图文正文',
15 ],
16 ]
17
18 for command in commands:
19 run(command, check=True)
20
20 lines PYTHON