xiaohongshu-search-full
它能做什么
这项技能搜索 Xiaohongshu 笔记,并为结果中的每篇笔记提取完整详情。适合需要某个话题详细帖子的营销人员和研究人员。
适用场景
- ✓当你想查找某个关键词的 Xiaohongshu 笔记并获取完整详情时。
- ✓当你需要按排序方式、笔记类型或发布时间筛选结果的时候。
- ✓当你想一次获取许多笔记的图片、标签和互动数据时。
技能链接
https://github.com/browser-act/skills/blob/main/solutions/social-listening/xiaohongshu-search-full/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请在 Xiaohongshu 上搜索露营装备,只显示过去一周的笔记,按点赞数排序,并附上完整详情。”
每周 5 个新技能,1 分钟读完。
工作原理
这项技能会打开你关键词的 Xiaohongshu 搜索页面,并应用你选择的筛选条件。它读取结果和笔记页面,返回标题、正文、图片、视频链接、标签、时间戳和互动数据。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Xiaohongshu — Search Notes (Full Fields)
keyword + filters → note list with full metadata (title, body, images, video URL, tags, stats) + detail enrichment
Language
All process output to user (progress updates, process notifications) follows the user's language.
Objective
Search Xiaohongshu notes by keyword, apply page filter options, and extract the maximum available fields from both the search results list and individual note detail pages.
Prerequisites
- Browser opened to
https://www.xiaohongshu.com/search_result/?keyword={keyword} - User is logged in (avatar or username visible in the left sidebar)
Phase 0: Collect User Inputs
First action: check whether the search keyword is already present in the user's message.
Keyword is present (e.g., "搜索 BrowserAct", "search for AI tools", "/xiaohongshu-search-full blockchain") → use it directly, skip to Pre-execution Checks.
Keyword is NOT present → STOP. Do NOT output "ready" or proceed with any execution. Ask the user for the keyword:
- If the AskUserQuestion tool is available → call it immediately with:
- Question 1 (required): "请问您想在小红书上搜索什么关键词?"
- Question 2 (optional): pages needed (default: first page only)
- Question 3 (optional): filters — sort order, note type, publish time range
- If AskUserQuestion is NOT available → output the following text and wait for the user's reply before doing anything else:
"请问您想搜索什么关键词?(如需指定页数或筛选条件,也可一并告知)"
Do NOT guess, infer, or assume any keyword. Wait for the user's explicit reply.
Pre-execution Checks
1. Tool Readiness
If browser-act has been confirmed available in the current session → skip this step.
Invoke browser-act via Skill tool to load usage. If installation or configuration issues arise, follow its guidance to resolve then retry.
2. Login Verification
If login status for Xiaohongshu has been confirmed in the current session → skip this step.
Otherwise: open https://www.xiaohongshu.com and observe the left sidebar:
- User avatar or "Me" entry visible → logged in, continue execution
- "Login" button visible → not logged in, inform the user that login is required, use
remote-assistto let the user scan the QR code
User refuses or cannot log in → terminate execution.
Capability Components
This Skill's operational boundary = what the user can manually do in their browser. It only reads data already displayed to the user on the page, never bypassing authentication or access controls. Its role is equivalent to copy-pasting on the user's behalf — the data is already on screen, automation merely saves time. JS code is encapsulated in Python files under the
scripts/directory, invoked viapython scripts/xxx.py {params} | browser-act --session <name> eval --stdin.
Below are all atomic capabilities discovered and verified during the exploration phase, listed by command template with parameters. Simply invoke them as needed — no need to read scripts/*.py source code or re-verify. Only inspect scripts when execution fails for troubleshooting. Combine freely as needed during execution.
DOM: extract search feeds list (preferred method)
Navigate to the search page, then read the rendered note list directly from Vue state. This is the preferred method because it reflects exactly what the page renders — including exact-match notes that the search API omits due to semantic expansion.
navigate https://www.xiaohongshu.com/search_result/?keyword={keyword}wait stable- (optional) Apply filters — see AI Workflow: apply filters below
python scripts/extract-search-feeds.py | browser-act --session <name> eval --stdin— retrieves all page results. Do NOT pass--keywordfor a full keyword search (title + body); see AI Workflow: keyword search (title + body match) below. Pass--keyword {keyword}only when title-only pre-filtering is explicitly required.
Parameters:
--keyword {keyword}(optional): plain text keyword — when passed,itemscontains only title-matched notes andkeyword_countis populated. Omit to get all rendered notes (required for body-text matching).
Output example:
{
"total_count": 40,
"keyword_count": 3,
"has_more": true,
"items": [
{
"id": "6a422f88000000001603cdd3",
"xsec_token": "ABbCLyAhrP9qgixS_rCW...",
"note_url": "https://www.xiaohongshu.com/explore/6a422f88000000001603cdd3?xsec_token=ABbCLy...%3D&xsec_source=pc_search",
"type": "video",
常见问题
有哪些筛选条件?
你可以按综合、最新、最多点赞、最多评论或最多收藏排序,也可以按笔记类型和发布时间筛选。
我需要登录吗?
需要。这项技能会检查你是否已登录 Xiaohongshu。
必须提供关键词吗?
必须。搜索关键词是必填项,如果缺少,技能会向你索取。
详情
作者的原始描述
Search Xiaohongshu (XHS / RedNote) notes by keyword with full field extraction including body text, topics/tags, image list URLs, video stream URL, publish timestamp, and all engagement stats (likes, collects, comments, shares). Supports all page filter options: sort order (general, latest, most liked, most commented, most collected), note type (image-text, video), publish time range (within 1 day, 1 week, 6 months), search scope (seen, unseen, followed), and location distance (same city, nearby). Use when user mentions search xiaohongshu notes, xhs keyword search, rednote note search, search
repo: browser-act/skills
热度
- GitHub 星标
- 6.3k
- 排名
- #14325
- 许可证
- MIT
- 更新时间
- 2026/8/24
评论
- …
同一仓库的更多技能
browser-act-skill-forge
6.3k帮你的智能体探索一次网站,并保存一个带脚本的可复用技能,使之后从该网站提取数据更快。
browser-act
6.3k帮你的智能体运行浏览器自动化工具,打开页面、读取渲染后的内容、填写表单、截图,并管理已登录的会话。
1688-product-detail
6.3k帮你的智能体从 1688.com 批发页面提取商品详情,例如价格阶梯、规格变体、卖家统计数据和属性。
airbnb-listing-detail
6.3k帮你的智能体根据 ID 获取 Airbnb 房源的公开详情,例如照片、设施、评分和房屋规则。