| 1 | from subprocess import run |
| 2 | |
| 3 | commands = [ |
| 4 | ['sau', 'zhihu', 'login', '--account', 'account_a'], |
| 5 | ['sau', 'zhihu', 'check', '--account', 'account_a'], |
| 6 | [ |
| 7 | 'sau', 'zhihu', 'upload-article', '--account', 'account_a', |
| 8 | '--title', '知乎文章示例', '--content-file', 'articles/demo.md', '--prepare-only', |
| 9 | ], |
| 10 | [ |
| 11 | 'sau', 'zhihu', 'upload-video', '--account', 'account_a', |
| 12 | '--file', 'videos/demo.mp4', '--title', '知乎视频示例', |
| 13 | '--originality', 'original', '--show-options', |
| 14 | ], |
| 15 | ] |
| 16 | |
| 17 | for command in commands: |
| 18 | run(command, check=True) |
| 19 |