安全风险
OpenViking
基于OpenViking的RAG系统,支持文档查询、知识管理与向量检索。
下载 196
通过关键词搜索小红书帖子并自动截图预览,需手动登录一次。
openclaw skills install @besty0121/xiaohongshu-browser命令、参数、文件名以原文为准
用 Playwright 自动化浏览小红书,搜索关键词并截图帖子弹窗预览。
Automate Xiaohongshu browsing — search keywords and screenshot post modal previews.
Python 3.x + Playwright:
pip install playwright
playwright install chromiumpython <skill_dir>/scripts/xhs_open.py# Windows (PowerShell):
Set-Content "$env:USERPROFILE\.openclaw\.close_browser" "CLOSE"
# Windows (CMD):
echo CLOSE > %USERPROFILE%\.openclaw\.close_browser
# Linux / macOS:
echo CLOSE > ~/.openclaw/.close_browserAUTH_SAVED 就说明登录状态保存好了💡 登录状态保存在
~/.openclaw/xhs_data,以后搜索时会自动使用,不需要重复登录。
python <skill_dir>/scripts/xhs_search.py "关键词" 数量参数说明:
御姐)5)示例:
# 搜索"美食",截图前3个帖子
python <skill_dir>/scripts/xhs_search.py "美食" 3
# 搜索"穿搭",截图前10个
python <skill_dir>/scripts/xhs_search.py "穿搭" 10
# 不传参数,用默认值
python <skill_dir>/scripts/xhs_search.py截图保存在 <skill_dir>/output/ 目录,文件名格式:post_序号_时间戳.png
每张截图包含帖子弹窗预览(图文详情)。
小红书的登录会过期,如果搜索时遇到登录弹窗,需要重新登录:
# 1. 删除旧的登录数据
# Windows:
Remove-Item -Recurse -Force "$env:USERPROFILE\.openclaw\xhs_data"
# Linux / macOS:
rm -rf ~/.openclaw/xhs_data
# 2. 重新运行登录脚本
python <skill_dir>/scripts/xhs_open.py# 号,直接搜关键词xiaohongshu-browser/
├── SKILL.md # 本说明文件
├── scripts/
│ ├── xhs_open.py # 登录脚本(首次使用)
│ └── xhs_search.py # 搜索+截图脚本
└── output/ # 截图输出目录xsec_token 才能直接访问(搜索结果中已包含)已收录 1 个 Skill