xhs-publisher
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinese小红书发布技能 (Xiaohongshu Publishing Skill)
Xiaohongshu Publishing Skill
本技能文档包含小红书创作者平台的详细发布流程、DOM选择器和操作步骤。
This skill document contains the detailed publishing process, DOM selectors, and operation steps for the Xiaohongshu Creator Platform.
平台概述
Platform Overview
平台: 小红书创作者平台 (Xiaohongshu Creator Platform)
域名:
creator.xiaohongshu.comPlatform: Xiaohongshu Creator Platform
Domain:
creator.xiaohongshu.com发布形式选择
Publishing Format Selection
根据内容长度选择不同的发布入口:
| 内容长度 | 发布形式 | 入口 URL |
|---|---|---|
| < 140字 | 文字配图 | |
| ≥ 140字 | 图文笔记 | |
Choose different publishing entries based on content length:
| Content Length | Publishing Format | Entry URL |
|---|---|---|
| < 140 characters | Text with Images | |
| ≥ 140 characters | Graphic Notes | |
一、文字配图流程 (< 140字)
I. Text with Images Process (< 140 characters)
流程概览
Process Overview
1. 导航到文字配图入口
2. 点击"文字配图"按钮
3. 输入第一张图片内容(标题)
4. 添加第二张图片并输入正文内容
5. 一次性生成全部图片
6. 选择模板样式并下一步
7. 填写发布信息(标题、正文、标签)
8. 用户确认后发布[!IMPORTANT] 核心流程: 先输入所有内容(标题 + 正文),再一次性生成全部图片。不要每张图片单独生成!
1. Navigate to the Text with Images entry
2. Click the "Text with Images" button
3. Enter content for the first image (title)
4. Add a second image and enter body text
5. Generate all images at once
6. Select a template style and click Next
7. Fill in publishing information (title, body text, hashtags)
8. Publish after user confirmation[!IMPORTANT] Core Process: Enter all content (title + body text) first, then generate all images at once. Do not generate each image separately!
步骤 1: 导航到文字配图入口
Step 1: Navigate to the Text with Images Entry
URL:
https://creator.xiaohongshu.com/publish/publish?target=image页面加载后会显示"上传图文"选项,包含两个按钮:
- "上传图片"(红色按钮)
- "文字配图"(灰色按钮,带图标)
URL:
https://creator.xiaohongshu.com/publish/publish?target=imageAfter the page loads, it will display the "Upload Graphics and Text" option, including two buttons:
- "Upload Images" (red button)
- "Text with Images" (gray button with icon)
步骤 2: 点击"文字配图"按钮
Step 2: Click the "Text with Images" Button
查找方法:
javascript
find: "文字配图 button"元素特征:
- 类型:
button - 文本: "文字配图"
- 功能: 进入文字生成图片编辑器
操作:
javascript
find("文字配图 button")
click()
wait(2)Finding Method:
javascript
find: "文字配图 button"Element Features:
- Type:
button - Text: "文字配图"
- Function: Enter the text-to-image editor
Operations:
javascript
find("文字配图 button")
click()
wait(2)步骤 3: 输入第一张图片内容(标题)
Step 3: Enter Content for the First Image (Title)
输入框:
javascript
find("真诚分享经验或资讯 textbox")操作:
javascript
find("真诚分享经验或资讯 textbox")
click()
type(title)
wait(1)Input Box:
javascript
find("真诚分享经验或资讯 textbox")Operations:
javascript
find("真诚分享经验或资讯 textbox")
click()
type(title)
wait(1)步骤 4: 添加第二张图片并输入正文内容
Step 4: Add a Second Image and Enter Body Text
添加第二张图片:
javascript
find("再写一张")
click()
wait(1)正文输入框:
javascript
find("在这里输入正文 textbox")操作:
javascript
find("在这里输入正文 textbox")
click()
type(content)
wait(1)[!NOTE] 此时已输入所有内容(标题 + 正文),准备一次性生成全部图片。
Add Second Image:
javascript
find("再写一张")
click()
wait(1)Body Text Input Box:
javascript
find("在这里输入正文 textbox")Operations:
javascript
find("在这里输入正文 textbox")
click()
type(content)
wait(1)[!NOTE] All content (title + body text) has been entered at this point, ready to generate all images at once.
步骤 5: 一次性生成全部图片
Step 5: Generate All Images at Once
生成图片按钮:
javascript
find("生成图片 button")操作:
javascript
find("生成图片 button")
click()
wait(5) // 等待所有图片生成,时间稍长[!NOTE] 点击"生成图片"会同时生成标题和正文两张图片。不需要分别点击生成。
Generate Images Button:
javascript
find("生成图片 button")Operations:
javascript
find("生成图片 button")
click()
wait(5) // 等待所有图片生成,时间稍长[!NOTE] Clicking "Generate Images" will generate both the title and body text images simultaneously. No need to click generate separately for each image.
步骤 6: 选择模板样式并下一步
Step 6: Select Template Style and Click Next
页面特征:
- 标题: "预览图片"
- 左侧大预览区域显示生成的图片
- 右侧多种模板选项(基础、边框、备忘、涂鸦、手写、光影、简约、便签、印刷、科技等)
- 底部有"下一步"按钮
模板选择:
- 默认选中"边框"模板(蓝色边框高亮)
- 可点击其他模板切换样式
- 自动化流程建议使用默认选中的模板
操作:
javascript
// 使用默认选中的模板
find("下一步 button")
click()
wait(2)Page Features:
- Title: "Preview Images"
- Large preview area on the left displays generated images
- Multiple template options on the right (Basic, Border, Memo, Doodle, Handwritten, Light & Shadow, Minimalist, Sticky Note, Print, Tech, etc.)
- "Next" button at the bottom
Template Selection:
- "Border" template is selected by default (highlighted with blue border)
- Can click other templates to switch styles
- It is recommended to use the default selected template for automated processes
Operations:
javascript
// Use the default selected template
find("下一步 button")
click()
wait(2)步骤 7: 填写发布信息
Step 7: Fill in Publishing Information
页面标题: "发布图文"
Page Title: "Publish Graphics and Text"
7.1 图片编辑区
7.1 Image Editing Area
特征:
- 显示 "图片编辑 (2/18)" - 表示已添加2张图片,最多18张
- 左侧有"添加"按钮可继续添加图片
- 显示已生成的图片缩略图
Features:
- Displays "Image Editing (2/18)" - indicates 2 images have been added, maximum 18
- "Add" button on the left to continue adding images
- Displays thumbnails of generated images
7.2 填写标题
7.2 Fill in Title
标题输入框:
javascript
find("填写标题会有更多赞哦 input")操作:
javascript
find("填写标题会有更多赞哦 input")
form_input(title)Title Input Box:
javascript
find("填写标题会有更多赞哦 input")Operations:
javascript
find("填写标题会有更多赞哦 input")
form_input(title)7.3 填充完整正文内容和标签
7.3 Fill in Complete Body Text and Hashtags
正文文本框:
javascript
find(包含标题的 textbox) // 正文文本框重要说明:
- 正文文本框会自动填充第一张图片的内容(标题)
- 必须替换为完整的正文内容(不是摘要或部分内容)
- 正文内容包括:完整正文 + 两个换行 + 标签
操作:
javascript
find(包含标题的 textbox) // 正文文本框
click()
key("cmd+a") // 全选现有内容
type(content + "\n\n" + tags) // 填充完整正文 + 两个换行 + 标签[!WARNING] 标签格式要求: 正文内容和标签之间必须有两个换行(),否则标签会紧贴正文显示不美观。\n\n
标签格式:
- 使用 开头
# - 多个标签用空格分隔
- 建议不超过3个标签
- 标签前必须有两个换行符与正文分隔
Body Text Box:
javascript
find(包含标题的 textbox) // 正文文本框Important Notes:
- The body text box will automatically fill with the content of the first image (title)
- Must replace it with the complete body text (not a summary or partial content)
- Body text includes: complete body content + two line breaks + hashtags
Operations:
javascript
find(包含标题的 textbox) // 正文文本框
click()
key("cmd+a") // Select all existing content
type(content + "\n\n" + tags) // Fill in complete body text + two line breaks + hashtags[!WARNING] Hashtag Format Requirement: There must be two line breaks () between the body text and hashtags, otherwise the hashtags will be displayed closely to the body text and look unappealing.\n\n
Hashtag Format:
- Start with
# - Separate multiple hashtags with spaces
- It is recommended to use no more than 3 hashtags
- Must have two line breaks separating hashtags from the body text
7.4 其他发布选项
7.4 Other Publishing Options
话题按钮:
javascript
find: "话题"用户按钮:
javascript
find: "用户"表情按钮:
javascript
find: "表情"活动话题:
- 页面会显示当前平台的活动话题
- 格式: "# 第五人格五周年春"
- 可选择参与
添加地点:
javascript
find: "添加地点"添加合集:
javascript
find: "添加合集"关联群聊:
javascript
find: "选择群聊"Topic Button:
javascript
find: "话题"User Button:
javascript
find: "用户"Emoji Button:
javascript
find: "表情"Activity Topics:
- The page will display current platform activity topics
- Format: "# 第五人格五周年春"
- Can choose to participate
Add Location:
javascript
find: "添加地点"Add Collection:
javascript
find: "添加合集"Associate Group Chat:
javascript
find: "选择群聊"步骤 8: 发布
Step 8: Publish
发布按钮:
javascript
find: "发布 button"
element_type: button
color: 红色(主要行动按钮)暂存草稿按钮:
javascript
find: "暂存草稿 button"
element_type: button
color: 灰色(次要行动按钮)自动保存:
- 页面会自动保存草稿
- 底部显示"自动保存于 HH:MM"
⚠️ 重要提示:
根据安全策略,自动化脚本应该:
- 填充所有内容后停止
- 显示消息提示用户审核
- 不要自动点击"发布"按钮
- 由用户自己在浏览器中点击"发布"
Publish Button:
javascript
find: "发布 button"
element_type: button
color: Red (primary action button)Save Draft Button:
javascript
find: "暂存草稿 button"
element_type: button
color: Gray (secondary action button)Auto-Save:
- The page will automatically save drafts
- Displays "Auto-saved at HH:MM" at the bottom
⚠️ Important Reminder:
According to security policies, automated scripts should:
- Stop after filling in all content
- Display a message prompting the user to review
- Do not automatically click the "Publish" button
- Let the user manually click "Publish" in the browser
二、图文笔记流程 (≥ 140字)
II. Graphic Notes Process (≥ 140 characters)
流程概览
Process Overview
1. 导航到图文笔记入口
2. 点击"新的创作"按钮
3. 填写标题
4. 填写正文内容
5. 点击"一键排版"选择模板
6. 填写正文摘录和标签
7. 填写其他发布信息
8. 用户确认后发布1. Navigate to the Graphic Notes entry
2. Click the "New Creation" button
3. Fill in the title
4. Fill in the body text
5. Click "One-Click Formatting" to select a template
6. Fill in body text excerpt and hashtags
7. Fill in other publishing information
8. Publish after user confirmation步骤 1: 导航到图文笔记入口
Step 1: Navigate to the Graphic Notes Entry
URL:
https://creator.xiaohongshu.com/publish/publish?target=article页面加载后会显示"写长文"页面,特征:
- 主标题:"支持千字长文,全屏阅读体验"
- 两个按钮:"新的创作"(红色)和"导入链接"
- 底部有"长文合集"区域
URL:
https://creator.xiaohongshu.com/publish/publish?target=articleAfter the page loads, it will display the "Write Long Article" page with the following features:
- Main Title: "Supports 1000-character long articles, full-screen reading experience"
- Two buttons: "New Creation" (red) and "Import Link"
- "Long Article Collections" section at the bottom
步骤 2: 点击"新的创作"按钮
Step 2: Click the "New Creation" Button
查找方法:
javascript
find: "新的创作 button"元素特征:
- 类型:
button - 文本: "新的创作"
- 颜色: 红色(主要行动按钮)
Finding Method:
javascript
find: "新的创作 button"Element Features:
- Type:
button - Text: "新的创作"
- Color: Red (primary action button)
步骤 3: 填写标题
Step 3: Fill in the Title
点击"新的创作"后,进入长文编辑器。
页面特征:
- 顶部标题: "新的创作"
- 工具栏: H₁、H₂、列表、引用、图片、表情等格式化工具
- 两个输入区域: 标题区和正文区
标题输入框:
javascript
find: "输入标题"
element_type: textbox输入方法:
javascript
click(ref_51) // 点击标题输入框
type("小红书自动发布工具使用指南") // 输入标题After clicking "New Creation", enter the long article editor.
Page Features:
- Top Title: "New Creation"
- Toolbar: Formatting tools like H₁, H₂, Lists, Quotes, Images, Emojis, etc.
- Two input areas: Title area and body text area
Title Input Box:
javascript
find: "输入标题"
element_type: textboxInput Method:
javascript
click(ref_51) // 点击标题输入框
type("小红书自动发布工具使用指南") // 输入标题步骤 4: 填写正文内容
Step 4: Fill in the Body Text
正文编辑器:
javascript
// 正文编辑器是一个 generic 元素(ref_55)
// 不是标准的 textarea输入方法:
javascript
click(ref_55) // 点击正文编辑区域
type("正文内容...") // 输入正文正文特性:
- 支持富文本编辑
- 字数统计显示在底部:"字数:194"
- 自动保存功能:"自动保存于 HH:MM"
- 最大支持 10000 字
Body Text Editor:
javascript
// 正文编辑器是一个 generic 元素(ref_55)
// 不是标准的 textareaInput Method:
javascript
click(ref_55) // 点击正文编辑区域
type("正文内容...") // 输入正文Body Text Features:
- Supports rich text editing
- Word count displayed at the bottom: "Word count: 194"
- Auto-save feature: "Auto-saved at HH:MM"
- Maximum support for 10,000 characters
步骤 5: 点击"一键排版"选择模板
Step 5: Click "One-Click Formatting" to Select a Template
一键排版按钮:
javascript
find: "一键排版 button"点击后进入排版预览页面。
排版预览页面特征:
- 左侧: 内容预览(文章卡片形式)
- 右侧: 多种模板选项
- "简约基础"(默认选中 ✓)
- "清新明朗"
- "黑白极简"
- 底部: "拖动滑块快速定位"控件
下一步按钮:
javascript
find: "下一步 button"点击"下一步"进入最终发布页面。
One-Click Formatting Button:
javascript
find: "一键排版 button"After clicking, enter the formatting preview page.
Formatting Preview Page Features:
- Left: Content preview (in article card format)
- Right: Multiple template options
- "Minimalist Basic" (selected by default ✓)
- "Fresh and Bright"
- "Black and White Minimalist"
- Bottom: "Drag slider to quickly locate" control
Next Button:
javascript
find: "下一步 button"Click "Next" to enter the final publishing page.
步骤 6: 填写正文内容和标签
Step 6: Fill in Body Text and Hashtags
页面标题: "发布图文"
重要说明:
- 图文笔记有"正文摘录"输入框,名称虽然是"摘录",但必须填充完整的正文内容
- 不是填写摘要,而是填写全部正文内容 + 标签
正文内容输入框:
javascript
find: "输入正文摘录 textarea"
element_type: textbox输入方法:
javascript
click(ref_194) // 点击正文内容输入框
type(完整正文内容 + "\n\n" + 标签) // 输入完整正文 + 标签内容格式:
- 填充完整的正文内容(不是摘要)
- 在正文结束后换两行
- 然后添加标签(开头)
# - 多个标签用空格分隔
- 建议不超过3个标签
示例:
在这个信息爆炸的时代,内容创作者面临着越来越多的平台和渠道选择。小红书作为一个重要的社交电商平台,已经成为许多创作者分享生活方式和产品推荐的首选平台。
为了提高发布效率,我们开发了这款自动化发布工具。它可以帮助你快速将内容发布到小红书平台,节省大量的重复性工作时间。
本文将详细介绍如何使用这个工具,让你的内容发布工作变得更加轻松高效。无论你是个人创作者还是团队运营,这个工具都能为你带来显著的效率提升。
#小红书发布 #自动化工具 #效率提升Page Title: "Publish Graphics and Text"
Important Notes:
- Graphic Notes has a "Body Text Excerpt" input box. Although it's called "excerpt", must fill in the complete body text
- Do not fill in a summary, but the full body content + hashtags
Body Text Input Box:
javascript
find: "输入正文摘录 textarea"
element_type: textboxInput Method:
javascript
click(ref_194) // 点击正文内容输入框
type(完整正文内容 + "\n\n" + 标签) // 输入完整正文 + 标签Content Format:
- Fill in the complete body text (not a summary)
- Add two line breaks after the body text
- Then add hashtags (starting with )
# - Separate multiple hashtags with spaces
- It is recommended to use no more than 3 hashtags
Example:
在这个信息爆炸的时代,内容创作者面临着越来越多的平台和渠道选择。小红书作为一个重要的社交电商平台,已经成为许多创作者分享生活方式和产品推荐的首选平台。
为了提高发布效率,我们开发了这款自动化发布工具。它可以帮助你快速将内容发布到小红书平台,节省大量的重复性工作时间。
本文将详细介绍如何使用这个工具,让你的内容发布工作变得更加轻松高效。无论你是个人创作者还是团队运营,这个工具都能为你带来显著的效率提升。
#小红书发布 #自动化工具 #效率提升步骤 7: 填写其他发布信息
Step 7: Fill in Other Publishing Information
标题输入框 (可选,通常自动填充):
javascript
find: 包含标题文本的 textbox
max_length: 20字符封面图:
- 系统会自动将长文内容转换为封面图
- 显示在"图片编辑"区域
- 左侧有"添加"按钮可添加更多封面图
其他选项:
- 添加地点
- 添加合集
- 关联群聊
- 活动话题(与文字配图相同)
Title Input Box (optional, usually auto-filled):
javascript
find: 包含标题文本的 textbox
max_length: 20 charactersCover Image:
- The system will automatically convert the long article content into a cover image
- Displayed in the "Image Editing" area
- "Add" button on the left to add more cover images
Other Options:
- Add Location
- Add Collection
- Associate Group Chat
- Activity Topics (same as Text with Images)
步骤 8: 发布
Step 8: Publish
发布按钮:
javascript
find: "发布 button"
element_type: button
color: 红色暂存草稿按钮:
javascript
find: "暂存草稿 button"⚠️ 重要提示:
根据安全策略,自动化脚本应该:
- 填充所有内容后停止
- 显示消息提示用户审核
- 不要自动点击"发布"按钮
- 由用户自己在浏览器中点击"发布"
Publish Button:
javascript
find: "发布 button"
element_type: button
color: RedSave Draft Button:
javascript
find: "暂存草稿 button"⚠️ Important Reminder:
According to security policies, automated scripts should:
- Stop after filling in all content
- Display a message prompting the user to review
- Do not automatically click the "Publish" button
- Let the user manually click "Publish" in the browser
图文笔记 vs 文字配图对比
Comparison: Graphic Notes vs Text with Images
| 特性 | 文字配图 (< 140字) | 图文笔记 (≥ 140字) |
|---|---|---|
| 入口 URL | | |
| 编辑方式 | 文字生成图片 | 富文本编辑器 |
| 标题输入 | 第一张图片内容 | 独立标题输入框 |
| 正文输入 | 第二张图片开始 | 正文编辑器 |
| 封面图 | 手动生成多张 | 自动生成封面 |
| 发布页正文区 | 正文文本框 | "正文摘录"输入框 |
| 正文填充方式 | 完整正文 + 标签 | 完整正文 + 标签 |
| 格式化 | 无 | 支持 H1/H2/列表等 |
| 字数限制 | 建议 < 140 | 140-10000字 |
关键提示: 两种模式在发布页面都必须填充完整的正文内容而非摘要或部分内容。
| Feature | Text with Images (< 140 characters) | Graphic Notes (≥ 140 characters) |
|---|---|---|
| Entry URL | | |
| Editing Method | Text-to-image generation | Rich text editor |
| Title Input | Content of first image | Independent title input box |
| Body Text Input | Starts from second image | Body text editor |
| Cover Image | Manually generate multiple images | Automatically generate cover image |
| Body Text Area on Publish Page | Body text box | "Body Text Excerpt" input box |
| Body Text Filling Method | Complete body text + hashtags | Complete body text + hashtags |
| Formatting | None | Supports H1/H2/lists, etc. |
| Word Limit | Recommended < 140 | 140-10,000 characters |
Key Reminder: Both modes require filling in complete body text instead of a summary or partial content on the publishing page.
三、通用元素和选择器
III. Common Elements and Selectors
登录状态检测
Login Status Detection
方法 1: 检查用户头像
javascript
find: "用户头像"如果找不到用户头像或显示"登录"按钮,说明未登录。
方法 2: 检查 URL 重定向
如果导航到发布页面后 URL 重定向到登录页面,说明未登录。
Method 1: Check User Avatar
javascript
find: "用户头像"If the user avatar cannot be found or a "Login" button is displayed, it means the user is not logged in.
Method 2: Check URL Redirection
If the URL redirects to the login page after navigating to the publishing page, it means the user is not logged in.
错误处理
Error Handling
常见错误提示:
- "请先登录" - 需要用户手动登录
- "内容不能为空" - 未填写必填字段
- "标题不能超过20字" - 标题过长
- "图片数量不足" - 至少需要1张图片
Common Error Prompts:
- "Please log in first" - Requires manual login by the user
- "Content cannot be empty" - Required fields are not filled in
- "Title cannot exceed 20 characters" - Title is too long
- "Insufficient number of images" - At least 1 image is required
四、最佳实践
IV. Best Practices
1. 内容准备
1. Content Preparation
- 标题: 简洁明了,不超过20字
- 正文: 分段清晰,使用换行增强可读性
- 标签: 选择相关度高的标签,建议2-3个
- Title: Concise and clear, no more than 20 characters
- Body Text: Clearly segmented, use line breaks to enhance readability
- Hashtags: Select highly relevant hashtags, 2-3 are recommended
2. 图片建议
2. Image Recommendations
- 文字配图: 至少2张(标题+正文)
- 内容分布:
- 第一张:核心标题或问题
- 后续图片:详细说明、步骤、总结
- Text with Images: At least 2 images (title + body text)
- Content Distribution:
- First image: Core title or question
- Subsequent images: Detailed explanations, steps, summary
3. 标签选择
3. Hashtag Selection
好的标签示例:
#小红书发布#自动化工具#效率提升#生活美学
避免:
- 过于宽泛的标签(如 )
#生活 - 无关标签
- 超过5个标签
Good Hashtag Examples:
#小红书发布#自动化工具#效率提升#生活美学
Avoid:
- Overly broad hashtags (e.g., )
#生活 - Irrelevant hashtags
- More than 5 hashtags
4. 发布时机
4. Publishing Timing
- 避免频繁发布(建议间隔至少1小时)
- 考虑用户活跃时间(早8点、午12点、晚8点)
- Avoid frequent publishing (recommended interval of at least 1 hour)
- Consider user active times (8 AM, 12 PM, 8 PM)
五、故障排除
V. Troubleshooting
问题 1: 文本输入失败
Issue 1: Text Input Failure
原因: 小红书使用自定义 DIV 编辑器,不是标准 input/textarea
解决方案:
- 先点击文本框激活
- 使用 动作输入文本
type - 不要使用 (仅适用于标准表单元素)
form_input
Cause: Xiaohongshu uses a custom DIV editor instead of a standard input/textarea
Solution:
- Click the text box first to activate it
- Use the action to enter text
type - Do not use (only applicable to standard form elements)
form_input
问题 2: 生成图片按钮不可点击
Issue 2: Generate Images Button is Unclickable
原因: 文本内容为空或过短
解决方案:
- 确保输入了足够的文本内容
- 等待自动保存完成(查看底部"自动保存于"提示)
Cause: Text content is empty or too short
Solution:
- Ensure sufficient text content has been entered
- Wait for auto-save to complete (check the "Auto-saved at" prompt at the bottom)
问题 3: 标签未正确添加
Issue 3: Hashtags are Not Added Correctly
原因: 标签格式错误或未使用 开头
#解决方案:
- 确保标签以 开头
# - 多个标签之间用空格分隔
- 标签后应有空格或换行
Cause: Incorrect hashtag format or not starting with
#Solution:
- Ensure hashtags start with
# - Separate multiple hashtags with spaces
- There should be a space or line break after hashtags
问题 4: 页面加载缓慢
Issue 4: Page Loading is Slow
原因: 网络延迟或服务器响应慢
解决方案:
- 在关键操作后增加 时间(2-3秒)
wait - 使用 验证页面状态
screenshot - 检查页面标题确认导航成功
Cause: Network delay or slow server response
Solution:
- Increase time (2-3 seconds) after key operations
wait - Use to verify page status
screenshot - Check the page title to confirm successful navigation
六、字数限制和规范
VI. Word Limits and Specifications
| 字段 | 最小值 | 最大值 | 备注 |
|---|---|---|---|
| 标题 | 1字 | 20字 | 必填 |
| 正文 | 1字 | 10000字 | 必填 |
| 标签 | 0个 | 建议3个 | 可选 |
| 图片数量 | 1张 | 18张 | 文字配图至少1张 |
| Field | Minimum | Maximum | Notes |
|---|---|---|---|
| Title | 1 character | 20 characters | Required |
| Body Text | 1 character | 10,000 characters | Required |
| Hashtags | 0 | 3 recommended | Optional |
| Number of Images | 1 | 18 | At least 1 image for Text with Images |
七、自动化注意事项
VII. Automation Notes
反自动化检测
Anti-Automation Detection
小红书可能有反自动化机制,建议:
- 操作间隔: 在每个步骤之间添加1-3秒延迟
- 随机化: 适当随机化延迟时间
- 频率限制: 避免短时间内频繁发布
- 人工审核: 始终让用户最终确认发布
Xiaohongshu may have anti-automation mechanisms, it is recommended to:
- Operation Intervals: Add 1-3 second delays between each step
- Randomization: Randomize delay times appropriately
- Frequency Limits: Avoid frequent publishing in a short period
- Manual Review: Always let the user confirm the final publish
安全性
Security
- 不自动点击发布: 仅填充内容,由用户手动发布
- 内容审核: 建议用户预览内容
- 敏感信息: 避免在自动化过程中处理敏感信息
- Do Not Automatically Click Publish: Only fill in content, let the user manually publish
- Content Review: It is recommended that the user preview the content
- Sensitive Information: Avoid processing sensitive information during automation
八、总结
VIII. Summary
本技能文档提供了小红书文字配图发布的完整流程和详细的DOM选择器信息。图文笔记流程需要进一步测试完善。
核心原则:
- 文字配图流程: 先输入所有内容(标题 + 正文),再一次性生成全部图片
- 使用正确的入口 URL
- 按顺序执行每个步骤
- 使用 确保页面加载
wait - 通过 验证状态
screenshot - 让用户最终确认发布
This skill document provides the complete process and detailed DOM selector information for Xiaohongshu's Text with Images publishing. The Graphic Notes process requires further testing and improvement.
Core Principles:
- Text with Images Process: Enter all content (title + body text) first, then generate all images at once
- Use the correct entry URL
- Execute each step in order
- Use to ensure page loading
wait - Verify status via
screenshot - Let the user confirm the final publish