小红书重构

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 douyin upload-video ...` | 上传并发布抖音视频 |
| 图文上传 | `sau douyin upload-note ...` | 上传并发布抖音图文 |
元数据约定:
- 视频使用 `title + desc + tags`
- 图文使用 `title + note + tags`
## 默认工作流
1. 先确认 `references/runtime-requirements.md` 里的运行前提。
@@ -38,6 +38,7 @@ sau douyin upload-video \
--account <account> \
--file <video-path> \
--title "<title>" \
[--desc "<description>"] \
[--tags tag1,tag2] \
[--schedule "YYYY-MM-DD HH:MM"] \
[--thumbnail <image-path>] \
@@ -52,6 +53,7 @@ sau douyin upload-video \
- `--file`
- `--title`
- 可选参数:
- `--desc`
- `--tags`
- `--schedule`
- `--thumbnail`
@@ -67,7 +69,8 @@ sau douyin upload-video \
sau douyin 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] \
@@ -77,8 +80,9 @@ sau douyin upload-note \
- 必填参数:
- `--account`
- `--images`
- `--note`
- `--title`
- 可选参数:
- `--note`
- `--tags`
- `--schedule`
- `--debug`
@@ -99,5 +103,7 @@ YYYY-MM-DD HH:MM
- `upload-video` 每次命令只支持一个视频文件
- `upload-note` 每次命令支持多张图片
- 视频描述字段统一使用 `--desc`
- 图文正文统一使用 `--note`
- `upload-note` 当前不支持 GIF
- `upload-note` 当前最多支持 35 张图片
@@ -63,7 +63,9 @@ sau douyin login --account <account>
- `--account`
- `--images`
- `--note`
- `--title`
`--note` 当前是可选图文正文。
## 图片限制
@@ -27,6 +27,8 @@ def main() -> None:
"videos/demo.mp4",
"--title",
"Douyin video from Python",
"--desc",
"Douyin video description from Python",
"--tags",
"cli,video",
"--thumbnail",
@@ -42,6 +44,8 @@ def main() -> None:
"--images",
"videos/1.png",
"videos/2.png",
"--title",
"Douyin note title from Python",
"--note",
"Douyin note from Python",
"--tags",
@@ -14,6 +14,7 @@ sau douyin upload-video `
--account $account `
--file $video `
--title "Douyin video from PowerShell" `
--desc "Douyin video description from PowerShell" `
--tags "cli,video" `
--thumbnail $thumbnail `
--headless
@@ -21,6 +22,7 @@ sau douyin upload-video `
sau douyin upload-note `
--account $account `
--images $noteImages `
--title "Douyin note title from PowerShell" `
--note "Douyin note from PowerShell" `
--tags "cli,note" `
--headless
@@ -15,6 +15,7 @@ sau douyin upload-video \
--account "$account" \
--file "$video" \
--title "Douyin video from bash" \
--desc "Douyin video description from bash" \
--tags "cli,video" \
--thumbnail "$thumbnail" \
--headless
@@ -22,6 +23,7 @@ sau douyin upload-video \
sau douyin upload-note \
--account "$account" \
--images "videos/1.png" "videos/2.png" \
--title "Douyin note title from bash" \
--note "Douyin note from bash" \
--tags "cli,note" \
--headless