xiaohongshu-skills
Verified小红书(RedNote / Xiaohongshu / XHS / RED / Little Red Book)浏览器自动化技能集合。 支持认证登录、内容发布、搜索发现、账号与评论分析、社交互动和复合运营。 当用户提到小红书、红书、RedNote、Xiaohongshu、XHS、RED、Little Red Book, 或要求发笔记、搜笔记、分析博主、评论、登录、点赞、收藏时触发。
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 7.0 KB |
| scripts/bridge_server.py | script | 5.7 KB |
| scripts/cli.py | script | 49.7 KB |
| scripts/image_downloader.py | script | 4.6 KB |
| scripts/run_lock.py | script | 2.7 KB |
| scripts/title_utils.py | script | 1.7 KB |
| scripts/video_processor.py | script | 7.5 KB |
| scripts/xhs/__init__.py | script | 42 B |
| scripts/xhs/bridge.py | script | 14.0 KB |
| scripts/xhs/cdp.py | script | 27.4 KB |
| scripts/xhs/comment.py | script | 5.8 KB |
| scripts/xhs/cookies.py | script | 1.5 KB |
| scripts/xhs/errors.py | script | 2.3 KB |
| scripts/xhs/feed_detail.py | script | 23.2 KB |
| scripts/xhs/feeds.py | script | 1.1 KB |
| scripts/xhs/human.py | script | 2.1 KB |
| scripts/xhs/like_favorite.py | script | 6.4 KB |
| scripts/xhs/local_discovery.py | script | 2.9 KB |
| scripts/xhs/login.py | script | 11.1 KB |
| scripts/xhs/publish.py | script | 31.9 KB |
| scripts/xhs/publish_long_article.py | script | 8.2 KB |
| scripts/xhs/publish_video.py | script | 4.4 KB |
| scripts/xhs/risk_analyzer.py | script | 11.0 KB |
| scripts/xhs/search.py | script | 6.2 KB |
| scripts/xhs/selectors.py | script | 3.4 KB |
| scripts/xhs/types.py | script | 14.6 KB |
| scripts/xhs/urls.py | script | 958 B |
| scripts/xhs/user_profile.py | script | 9.9 KB |
scripts/xhs/errors.py
View on GitHub"""小红书自动化异常体系。"""
class XHSError(Exception):
"""小红书自动化基础异常。"""
class NoFeedsError(XHSError):
"""没有捕获到 feeds 数据。"""
def __init__(self) -> None:
super().__init__("没有捕获到 feeds 数据")
class NoFeedDetailError(XHSError):
"""没有捕获到 feed 详情数据。"""
def __init__(self) -> None:
super().__init__("没有捕获到 feed 详情数据")
class NotLoggedInError(XHSError):
"""未登录。"""
def __init__(self) -> None:
super().__init__("未登录,请先扫码登录")
class PageNotAccessibleError(XHSError):
"""页面不可访问。"""
def __init__(self, reason: str) -> None:
self.reason = reason
super().__init__(f"笔记不可访问: {reason}")
class UploadTimeoutError(XHSError):
"""上传超时。"""
class PublishError(XHSError):
"""发布失败。"""
class AccountRiskControlError(PublishError):
"""账号被风控,无法发布。
XHS 后端业务错误码(HTTP 200 + code≠0):
- -9136: 因违反社区规范禁止发笔记
"""
def __init__(self, code: int, msg: str) -> None:
self.code = code
self.msg = msg
super().__init__(f"账号被风控(code={code}):{msg}")
class TitleTooLongError(PublishError):
"""标题超过长度限制。"""
def __init__(self, current: str, maximum: str) -> None:
self.current = current
self.maximum = maximum
super().__init__(f"当前输入长度为{current},最大长度为{maximum}")
class ContentTooLongError(PublishError):
"""正文超过长度限制。"""
def __init__(self, current: str, maximum: str) -> None:
self.current = current
self.maximum = maximum
super().__init__(f"当前输入长度为{current},最大长度为{maximum}")
class RateLimitError(XHSError):
"""请求频率过高,验证码获取失败。"""
def __init__(self) -> None:
super().__init__("请求太频繁,验证码获取失败,请重启浏览器后重试")
class CDPError(XHSError):
"""CDP 通信异常。"""
class ElementNotFoundError(XHSError):
"""页面元素未找到。"""
def __init__(self, selector: str) -> None:
self.selector = selector
super().__init__(f"未找到元素: {selector}")
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness. | Stars: 323k | Updated | Claude CodeCodex | Verified | Install |
| dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies | Stars: 323k | Updated | Claude CodeCodex | Verified | Install |
| executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available | Stars: 323k | Updated | Claude CodeCodex | Verified | Install |