| 1 | from subprocess import run |
| 2 | |
| 3 | commands = [ |
| 4 | ['sau', 'facebook', 'login', '--account', 'account_a'], |
| 5 | ['sau', 'facebook', 'check', '--account', 'account_a'], |
| 6 | [ |
| 7 | 'sau', 'facebook', 'upload-video', '--account', 'account_a', |
| 8 | '--file', 'videos/demo.mp4', '--title', 'Facebook 视频示例', |
| 9 | '--desc', '视频简介', '--tags', 'life,share', |
| 10 | ], |
| 11 | [ |
| 12 | 'sau', 'facebook', 'upload-note', '--account', 'account_a', |
| 13 | '--images', 'images/1.jpg', 'images/2.jpg', |
| 14 | '--title', 'Facebook 图文示例', '--note', '图文正文', |
| 15 | ], |
| 16 | ] |
| 17 | |
| 18 | for command in commands: |
| 19 | run(command, check=True) |
| 20 |