{"data":{"slug":"betastreetomnis-xhs-ai-publisher","name":"xhs_ai_publisher","tagline":"AI-powered content creation and publishing tool for Xiaohongshu/Rednote","github_url":"https://github.com/BetaStreetOmnis/xhs_ai_publisher","owner":"BetaStreetOmnis","repo":"xhs_ai_publisher","owner_avatar_url":"https://avatars.githubusercontent.com/u/156061924?v=4","primary_language":"Python","stars":2078,"forks":300,"topics":["ai","automation","fastapi","playwright","pyqt5","rednote","xiaohongshu"],"archived":false,"github_pushed_at":"2026-06-28T03:52:31+00:00","maintenance_label":"Steady","stars_delta_30d":21,"url":"https://www.graphcanon.com/tools/betastreetomnis-xhs-ai-publisher","markdown_url":"https://www.graphcanon.com/tools/betastreetomnis-xhs-ai-publisher.md","api_url":"https://www.graphcanon.com/api/graphcanon/tools/betastreetomnis-xhs-ai-publisher","graph_url":"https://www.graphcanon.com/api/graphcanon/graph?tool=betastreetomnis-xhs-ai-publisher","description":"AI-powered Xiaohongshu/Rednote content creation and publishing tool with PyQt desktop UI, FastAPI service, login-state reuse, preview publish, and automated browser workflows.","homepage_url":"https://xhsaipublisher.com/","license":"Apache-2.0","open_issues":7,"watchers":17,"ai_summary":"The BetaStreetOmnis/xhs_ai_publisher is an automation software that leverages AI to create and publish content on the Xiaohongshu platform. It features a PyQt desktop UI, FastAPI service, and uses Playwright for automated browser interaction.","readme_excerpt":"<div align=\"center\">\n\n<h1>🌟 小红书AI发布助手</h1>\n\n   \n\n<br/>\n\n  \n\n<br/><br/>\n\n### 🎨 智能内容创作 • 🤖 AI驱动 • 📱 一键发布\n\n[🇨🇳 简体中文](./readme.md) | [🇺🇸 English](./readme_en.md)\n\n<br/>\n\n\n\n</div>\n\n---\n\n## 🆕 1.6号更新\n\n- 📊 **热点数据**：内置微博/百度/头条/B站等热榜，支持一键带回首页生成内容\n- 🪧 **新增营销模板**：在「🖼️ 封面中心」可选 **营销海报🌟🌟🌟（本地生成 6 张图）/ 促销横幅 / 产品展示** 等\n- 🖼️ **预览/下载体验升级**：首页支持一键打开「封面模板库」，并一键下载 **封面 + 多页内容图**\n- 🎨 **UI 体验优化**：左侧编辑、右侧图片预览，生成流程更顺滑\n\n## 📖 项目简介\n\n> **小红书AI发布助手** 是一个功能强大的自动化内容创作与发布工具，专为小红书平台的内容创作者设计。\n\n🎯 **核心价值**\n- 🧠 **智能创作**: 基于先进AI技术自动生成高质量内容\n- ⚡ **效率提升**: 一键操作节省90%发布时间\n- 🎨 **专业品质**: 精美界面设计，用户体验极佳\n- 🔧 **功能完整**: 从内容生成到发布全流程自动化\n\n---\n\n## ✨ 核心功能\n\n<table>\n<tr>\n<td width=\"50%\">\n\n### 🤖 AI智能生成\n- 🎯 **智能标题**: AI生成吸引人的标题\n- 📝 **内容创作**: 基于主题自动生成文章\n- 🔧 **自定义模型**: 支持配置 OpenAI 兼容/Claude/Ollama 等接口用于内容生成（未配置则回退到内置方案）\n- 🧩 **文案模板**: 支持选择不同风格的提示词模板（`templates/prompts/*.json`），可自行扩展\n- 📊 **热点采集**: 内置微博/百度/头条/B站等热榜，一键带回首页生成内容\n- 🔗 **网页链接导入**: 粘贴网页链接导入标题/正文/图片（支持公众号/通用网页；效果视站点而定）\n- 🖼️ **图片处理**: 智能匹配和处理图片\n- 🖼️ **封面/内容图模板**: 支持在「🖼️ 封面中心」选择模板（含营销海报/促销横幅/产品展示等），生成时自动输出封面 + 多页内容图（可一键下载）\n- 🏷️ **标签推荐**: 自动推荐热门标签\n\n</td>\n<td width=\"50%\">\n\n### 🚀 自动化发布\n- 📱 **一键登录**: 支持手机号快速登录，支持国家区号选择；如遇风控可切换手动完成登录\n- 🧩 **导入登录态**: 支持从系统 Chrome 导入小红书登录态（适用于短信/扫码风控后的登录复用）\n- 📋 **内容预览**: 发布前完整预览效果\n- ⏰ **定时发布（无人值守）**: 支持任务管理与到点自动发布（需保持程序运行且账号已登录）\n- 💾 **状态保存**: 自动保存登录状态\n\n</td>\n</tr>\n<tr>\n<td width=\"50%\">\n\n### 👥 用户管理\n- 🔄 **多账户/用户管理**: 支持新增/切换/删除用户；登录态与数据按用户隔离\n- 🗂️ **本地数据**: 用户/环境/配置/日志均落地本地（`~/.xhs_system/`）\n\n</td>\n<td width=\"50%\">\n\n### 🛡️ 安全稳定\n- 🔐 **数据加密**: 模型 API Key 默认本地加密存储（`~/.xhs_system/keys.enc`）\n- 📝 **日志记录**: 完整的操作日志记录\n- 🔄 **错误恢复**: 智能错误处理和恢复\n\n</td>\n</tr>\n</table>\n\n---\n\n## 📁 项目架构\n\n```\n📦 xhs_ai_publisher/\n├── 📂 assets/                       # 🧩 内置系统模板预览（可选）\n├── 📂 templates/                    # 🧩 文案/封面模板（可自行扩展）\n├── 🧰 install.sh                    # 📦 一键安装（macOS/Linux）\n├── 🧰 install.bat                   # 📦 一键安装（Windows）\n├── 📂 src/                          # 🔧 源代码目录\n│   ├── 📂 core/                     # ⚡ 核心功能模块\n│   │   ├── 📂 models/               # 🗄️ 数据模型\n│   │   ├── 📂 services/             # 🔧 业务服务层\n│   │   ├── 📂 pages/                # 🎨 界面页面\n│   │   ├── 📂 processor/            # 🧩 内容/图片处理\n│   │   ├── 📂 scheduler/            # ⏰ 定时任务（到点自动发布）\n│   │   └── 📂 ai_integration/       # 🤖 AI适配（实验）\n│   ├── 📂 web/                      # 🌐 Web接口\n│   │   ├── 📂 templates/            # 📄 HTML模板\n│   │   └── 📂 static/               # 🎨 静态资源\n│   └── 📂 logger/                   # 📝 日志系统\n├── 📂 images/                       # 🖼️ 文档/界面截图资源\n├── 📂 docs/                         # 📚 文档\n├── 📂 tests/                        # 🧪 测试目录\n├── 📂 venv/                         # 🐍 本地虚拟环境（已在 .gitignore，不会上传 GitHub）\n├── 🐍 main.py                       # 🚀 主程序入口\n├── 🚀 启动程序.sh                   # ▶️ 启动脚本（macOS/Linux）\n├── 🚀 启动程序.bat                  # ▶️ 启动脚本（Windows）\n├── ⚙️ .env.example                  # 🔑 环境变量示例（不要提交真实 .env）\n├── 📋 requirements.txt              # 📦 依赖包列表\n└── 📖 readme.md                     # 📚 项目说明\n```\n\n---\n\n## 🛠️ 快速开始\n\n### 📋 系统要求\n\n<div align=\"center\">\n\n| 组件 | 版本要求 | 说明 |\n|:---:|:---:|:---:|\n| 🐍 **Python** | `3.8+` | 推荐使用最新版本 |\n| 🌐 **Chrome** | `最新版` | 用于浏览器自动化 |\n| 💾 **内存** | `4GB+` | 推荐8GB以上 |\n| 💿 **磁盘** | `2GB+` | 用于存储依赖和数据 |\n\n</div>\n\n> Windows 建议使用 **Python 3.11/3.12（64 位）**；Python 3.13 或 32 位 Python 常见会导致 **PyQt5 安装失败**。\n\n### 🚀 安装方式\n\n#### 🎯 一键安装（推荐）\n\n| 操作系统 | 安装脚本 | 启动脚本 |\n|:---:|:---:|:---:|\n| macOS / Linux | `./install.sh` | `./启动程序.sh` |\n| Windows | `install.bat` | `启动程序.bat` |\n\n```bash\n# macOS/Linux\nchmod +x install.sh 启动程序.sh\n./install.sh\n./启动程序.sh\n```\n\n> `./启动程序.sh` 会优先使用 `venv/bin/python`；若虚拟环境解释器缺失、软链失效或环境损坏，会自动回退到系统 `python3` / `python`，不会写死机器路径。\n\n```bat\n:: Windows\ninstall.bat\n启动程序.bat\n```\n\n> 默认会检测 Playwright 浏览器并在缺失时自动安装；可用参数：\n> - 强制安装：`./install.sh --with-browser` / `install.bat --with-browser`\n> - 跳过浏览器：`./install.sh --skip-browser` / `install.bat --skip-browser`\n> - Windows 双击 `启动程序.bat` / `install.bat` 失败时，现在会保留报错窗口，方便定位问题","github_created_at":"2024-11-10T08:48:20+00:00","created_at":"2026-07-15T10:54:57.922631+00:00","updated_at":"2026-09-20T04:50:59.88931+00:00","categories":[{"slug":"developer-tools","name":"Developer Tools","url":"https://www.graphcanon.com/categories/developer-tools","markdown_url":"https://www.graphcanon.com/categories/developer-tools.md","api_url":"https://www.graphcanon.com/api/graphcanon/categories/developer-tools"}],"tags":[{"slug":"ai","name":"ai"},{"slug":"automation","name":"automation"},{"slug":"fastapi","name":"fastapi"},{"slug":"playwright","name":"playwright"},{"slug":"pyqt5","name":"pyqt5"},{"slug":"rednote","name":"rednote"},{"slug":"xiaohongshu","name":"xiaohongshu"}],"trust":{"provenance":{"is_fork":false,"github_id":886118922,"owner_type":"User","methodology":"github_public_v1","parent_repo":null,"near_duplicate_slugs":[]},"computed_at":"2026-09-20T04:50:57.200Z","maintenance":{"label":"Steady","score":60,"methodology":"github_public_v1","releases_90d":1,"days_since_push":84,"last_release_at":"2026-06-28T03:37:01Z","stars_delta_30d":21,"open_issues_delta_30d":0},"security_summary":{"status":"no_lockfile","scanner":null,"low_count":0,"high_count":0,"last_scan_at":"2026-07-15T10:54:59.180Z","medium_count":0,"scan_profile":"none","critical_count":0}},"capability_facts":{"scan":{"source":"repo_scan","observed_at":"2026-09-20T04:50:58.241Z"},"deploy":{"source":"dockerfile:Dockerfile","self_host":true,"observed_at":"2026-09-20T04:50:58.241Z","managed_saas":false},"languages":{"value":["python"],"source":"github.language","observed_at":"2026-09-20T04:50:58.241Z"},"has_docker":{"value":true,"source":"dockerfile:Dockerfile","observed_at":"2026-09-20T04:50:58.241Z"},"license_spdx":{"value":"Apache-2.0","source":"github.license","observed_at":"2026-09-20T04:50:58.241Z"}},"decision_facts":{"hosting":null,"pricing":null,"requirements":{"min_ram_gb":4,"requires_docker":false},"constraints":{"min_ram_gb":4,"requires_docker":false},"when_to_use":["Use xhs_ai_publisher if you are specifically targeting the Xiaohongshu platform for your automated content creation and publication needs","You should choose this tool when aiming to reuse login states efficiently, as it is designed with functionality that supports maintaining active session states"],"when_not_to_use":["Do not use xhs_ai_publisher if your work or interest is not aligned with the Xiaohongshu platform, since its features are optimized for this specific service","Avoid selecting xhs_ai_publisher when an open-source tool that supports generalized automation across multiple platforms is needed rather than a specialized solution"],"source":"enrich:decision_facts","observed_at":"2026-07-17T08:10:27.047Z"},"constraint_facets":{"min_ram_gb":4,"requires_docker":false},"decision_summary":[{"label":"Requirements","value":"Min 4 GB RAM"},{"label":"Adopt for","value":", when evaluating xhs_ai_publisher, consider its specialty in Xiaohongshu/Rednote content creation and publishing through advanced integration of PyQt desktop UI, FastAPI service, and Playwright automation."}]}}