小红书重构

1. 图文上传
2. 视频上传(封面,定时)
3. cli
4. skill
5. 无头模式
This commit is contained in:
home-dev-pookz
2026-03-25 15:19:40 +08:00
parent ce9a9f102e
commit 90d03dc15a
32 changed files with 1325 additions and 98 deletions
+5
View File
@@ -20,6 +20,11 @@ description: 当 agent 需要通过已安装的 `sau` CLI 完成快手登录、c
| 视频上传 | `sau kuaishou upload-video ...` | 上传并发布快手视频 |
| 图文上传 | `sau kuaishou upload-note ...` | 上传并发布快手图文 |
元数据约定:
- 视频使用 `title + desc + tags`
- 图文使用 `title + note + tags`
## 默认工作流
1. 先确认 `references/runtime-requirements.md` 里的运行前提。
@@ -38,6 +38,7 @@ sau kuaishou upload-video \
--account <account> \
--file <video-path> \
--title "<title>" \
[--desc "<description>"] \
[--tags tag1,tag2] \
[--schedule "YYYY-MM-DD HH:MM"] \
[--thumbnail <image-path>] \
@@ -50,6 +51,7 @@ sau kuaishou upload-video \
- `--file`
- `--title`
- 可选参数:
- `--desc`
- `--tags`
- `--schedule`
- `--thumbnail`
@@ -63,7 +65,8 @@ sau kuaishou upload-video \
sau kuaishou upload-note \
--account <account> \
--images <image-1> [image-2 ...] \
--note "<content>" \
--title "<title>" \
[--note "<content>"] \
[--tags tag1,tag2] \
[--schedule "YYYY-MM-DD HH:MM"] \
[--debug] \
@@ -73,8 +76,9 @@ sau kuaishou upload-note \
- 必填参数:
- `--account`
- `--images`
- `--note`
- `--title`
- 可选参数:
- `--note`
- `--tags`
- `--schedule`
- `--debug`
@@ -95,4 +99,6 @@ YYYY-MM-DD HH:MM
- `upload-video` 每次命令只支持一个视频文件
- `upload-note` 每次命令支持多张图片
- 视频描述字段统一使用 `--desc`
- 图文正文统一使用 `--note`
- `upload-note` 当前要求传入真实的多张图片文件,而不是同一路径重复多次
@@ -63,7 +63,9 @@ sau kuaishou login --account <account>
- `--account`
- `--images`
- `--note`
- `--title`
`--note` 当前是可选图文正文。
## 图文上传只有一张生效
@@ -27,6 +27,8 @@ def main() -> None:
"videos/demo.mp4",
"--title",
"Kuaishou video from Python",
"--desc",
"Kuaishou video description from Python",
"--tags",
"cli,video",
"--thumbnail",
@@ -43,6 +45,8 @@ def main() -> None:
"videos/1.png",
"videos/2.png",
"videos/3.png",
"--title",
"Kuaishou note title from Python",
"--note",
"Kuaishou note from Python",
"--tags",
@@ -14,6 +14,7 @@ sau kuaishou upload-video `
--account $account `
--file $video `
--title "Kuaishou video from PowerShell" `
--desc "Kuaishou video description from PowerShell" `
--tags "cli,video" `
--thumbnail $thumbnail `
--headless
@@ -21,6 +22,7 @@ sau kuaishou upload-video `
sau kuaishou upload-note `
--account $account `
--images $noteImages `
--title "Kuaishou note title from PowerShell" `
--note "Kuaishou note from PowerShell" `
--tags "cli,note" `
--headless
@@ -15,6 +15,7 @@ sau kuaishou upload-video \
--account "$account" \
--file "$video" \
--title "Kuaishou video from bash" \
--desc "Kuaishou video description from bash" \
--tags "cli,video" \
--thumbnail "$thumbnail" \
--headless
@@ -22,6 +23,7 @@ sau kuaishou upload-video \
sau kuaishou upload-note \
--account "$account" \
--images "videos/1.png" "videos/2.png" "videos/3.png" \
--title "Kuaishou note title from bash" \
--note "Kuaishou note from bash" \
--tags "cli,note" \
--headless