Files
TrueGrowth/vendor/social-auto-upload/examples/get_bilibili_cookie.py
Jammy 52636c91ae
Some checks failed
CI / main (push) Has been cancelled
CI / release-e2e (push) Has been cancelled
Track bundled vendor runtime sources
2026-07-07 10:05:50 +08:00

25 lines
573 B
Python

from __future__ import annotations
import subprocess
import sys
from pathlib import Path
from conf import BASE_DIR
if __name__ == "__main__":
# 建议直接在本地真实终端里运行这个脚本。
# 如果终端里的二维码显示不完整,可以打开当前目录下的 qrcode.png 扫码。
cli_path = Path(BASE_DIR) / "sau_cli.py"
subprocess.run(
[
sys.executable,
str(cli_path),
"bilibili",
"login",
"--account",
"creator",
],
check=True,
)