返回 Social Auto Upload
xueqiu_cli_template.py
根目录 / skills / xueqiu-upload / scripts / examples / xueqiu_cli_template.py
1 from subprocess import run
2
3 commands = [
4 ['sau', 'xueqiu', 'login', '--account', 'account_a'],
5 ['sau', 'xueqiu', 'check', '--account', 'account_a'],
6 [
7 'sau', 'xueqiu', 'upload-article', '--account', 'account_a',
8 '--title', '雪球文章示例', '--content-file', 'articles/demo.md',
9 '--declaration', '不添加创作声明',
10 ],
11 ]
12
13 for command in commands:
14 run(command, check=True)
15
15 lines PYTHON