docs: clarify account name semantics
This commit is contained in:
@@ -15,6 +15,9 @@ sau bilibili login --account <account>
|
||||
- 作用:
|
||||
- 自动准备 `biliup`
|
||||
- 触发 Bilibili 登录流程
|
||||
- 账号说明:
|
||||
- `--account` 传的是用户自定义的 `account_name`,不是固定只能叫 `creator`
|
||||
- 一个 `account_name` 对应一个账号文件,可用于多账号隔离和并发任务
|
||||
- 登录方式说明:
|
||||
- 这个命令应该由用户自己在本地真实终端里运行
|
||||
- 如果终端二维码显示不完整,可直接打开当前目录下的 `qrcode.png` 扫码
|
||||
|
||||
@@ -9,6 +9,9 @@ from utils.constant import VideoZoneTypes
|
||||
|
||||
|
||||
def main() -> None:
|
||||
account = "account_a"
|
||||
# account_name is user-defined. One account_name maps to one account file.
|
||||
# You can prepare multiple account names and run them in parallel.
|
||||
cli_path = Path(BASE_DIR) / "sau_cli.py"
|
||||
command = [
|
||||
sys.executable,
|
||||
@@ -16,7 +19,7 @@ def main() -> None:
|
||||
"bilibili",
|
||||
"upload-video",
|
||||
"--account",
|
||||
"creator",
|
||||
account,
|
||||
"--file",
|
||||
str(Path(BASE_DIR) / "videos" / "demo.mp4"),
|
||||
"--title",
|
||||
|
||||
@@ -1,14 +1,18 @@
|
||||
# 登录
|
||||
# 建议由用户自己在本地真实终端里执行。
|
||||
# 如果终端二维码显示不完整,可以打开当前目录下的 qrcode.png 扫码。
|
||||
sau bilibili login --account creator
|
||||
$account = "account_a"
|
||||
# account_name is user-defined. One account_name maps to one account file.
|
||||
# You can prepare multiple account names and run them in parallel.
|
||||
|
||||
sau bilibili login --account $account
|
||||
|
||||
# 校验
|
||||
sau bilibili check --account creator
|
||||
sau bilibili check --account $account
|
||||
|
||||
# 上传视频
|
||||
sau bilibili upload-video `
|
||||
--account creator `
|
||||
--account $account `
|
||||
--file .\videos\demo.mp4 `
|
||||
--title "Bilibili CLI Demo" `
|
||||
--desc "Bilibili CLI Demo" `
|
||||
|
||||
@@ -1,14 +1,18 @@
|
||||
# login
|
||||
# Run this in a local interactive terminal.
|
||||
# If the terminal QR code is incomplete, open ./qrcode.png and scan that image.
|
||||
sau bilibili login --account creator
|
||||
account="account_a"
|
||||
# account_name is user-defined. One account_name maps to one account file.
|
||||
# You can prepare multiple account names and run them in parallel.
|
||||
|
||||
sau bilibili login --account "$account"
|
||||
|
||||
# check
|
||||
sau bilibili check --account creator
|
||||
sau bilibili check --account "$account"
|
||||
|
||||
# upload video
|
||||
sau bilibili upload-video \
|
||||
--account creator \
|
||||
--account "$account" \
|
||||
--file ./videos/demo.mp4 \
|
||||
--title "Bilibili CLI Demo" \
|
||||
--desc "Bilibili CLI Demo" \
|
||||
|
||||
@@ -15,6 +15,9 @@ sau douyin login --account <account>
|
||||
- 作用:
|
||||
- 启动抖音登录流程,为指定账号生成或刷新 cookie 文件
|
||||
- 如果登录过程中生成本地二维码图片,agent 应优先直接把图片展示/发送给用户扫码,而不是只回传路径
|
||||
- 账号说明:
|
||||
- `--account` 传的是用户自定义的 `account_name`,不是固定只能叫 `creator`
|
||||
- 一个 `account_name` 对应一个账号文件,可用于多账号隔离和并发任务
|
||||
|
||||
### 校验 cookie
|
||||
|
||||
|
||||
@@ -10,7 +10,9 @@ def run_command(command: list[str]) -> None:
|
||||
|
||||
|
||||
def main() -> None:
|
||||
account = "creator"
|
||||
account = "account_a"
|
||||
# account_name is user-defined. One account_name maps to one account file.
|
||||
# You can prepare multiple account names and run them in parallel.
|
||||
|
||||
commands = [
|
||||
["sau", "douyin", "login", "--account", account, "--headless"],
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
# PowerShell examples for the installed sau CLI.
|
||||
|
||||
$account = "creator"
|
||||
# account_name is user-defined. One account_name maps to one account file.
|
||||
# You can prepare multiple account names and run them in parallel.
|
||||
$account = "account_a"
|
||||
$video = "videos/demo.mp4"
|
||||
$thumbnail = "videos/demo.png"
|
||||
$noteImages = @("videos/1.png", "videos/2.png")
|
||||
|
||||
@@ -2,7 +2,9 @@
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
account="creator"
|
||||
# account_name is user-defined. One account_name maps to one account file.
|
||||
# You can prepare multiple account names and run them in parallel.
|
||||
account="account_a"
|
||||
video="videos/demo.mp4"
|
||||
thumbnail="videos/demo.png"
|
||||
|
||||
|
||||
@@ -15,6 +15,9 @@ sau kuaishou login --account <account>
|
||||
- 作用:
|
||||
- 启动快手登录流程,为指定账号生成或刷新 cookie 文件
|
||||
- 如果登录过程中生成本地二维码图片,agent 应优先直接把图片展示/发送给用户扫码,而不是只回传路径
|
||||
- 账号说明:
|
||||
- `--account` 传的是用户自定义的 `account_name`,不是固定只能叫 `creator`
|
||||
- 一个 `account_name` 对应一个账号文件,可用于多账号隔离和并发任务
|
||||
|
||||
### 校验 cookie
|
||||
|
||||
|
||||
@@ -10,7 +10,9 @@ def run_command(command: list[str]) -> None:
|
||||
|
||||
|
||||
def main() -> None:
|
||||
account = "creator"
|
||||
account = "account_a"
|
||||
# account_name is user-defined. One account_name maps to one account file.
|
||||
# You can prepare multiple account names and run them in parallel.
|
||||
|
||||
commands = [
|
||||
["sau", "kuaishou", "login", "--account", account],
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
# PowerShell examples for the installed sau CLI.
|
||||
|
||||
$account = "creator"
|
||||
# account_name is user-defined. One account_name maps to one account file.
|
||||
# You can prepare multiple account names and run them in parallel.
|
||||
$account = "account_a"
|
||||
$video = "videos/demo.mp4"
|
||||
$thumbnail = "videos/demo.png"
|
||||
$noteImages = @("videos/1.png", "videos/2.png", "videos/3.png")
|
||||
|
||||
@@ -2,7 +2,9 @@
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
account="creator"
|
||||
# account_name is user-defined. One account_name maps to one account file.
|
||||
# You can prepare multiple account names and run them in parallel.
|
||||
account="account_a"
|
||||
video="videos/demo.mp4"
|
||||
thumbnail="videos/demo.png"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user