跳到正文
Skillpedia
社交媒体6.3k · #14326

xiaohongshu-search

它能做什么

这项技能执行 Xiaohongshu 关键词搜索,并返回匹配笔记的基本详情列表。适合想了解人们在讨论什么话题的营销人员和研究人员。

适用场景

  • ✓当你想查找关于某个话题的 Xiaohongshu 笔记时。
  • ✓当你需要长期追踪 Xiaohongshu 上某个关键词的时候。
  • ✓当你想快速查看热门笔记及其互动数据时。

技能链接

https://github.com/browser-act/skills/blob/main/solutions/social-listening/xiaohongshu-search/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/browser-act/skills/blob/main/solutions/social-listening/xiaohongshu-search/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请帮我在 Xiaohongshu 上搜索素食午餐创意,列出热门笔记及其点赞数和评论数。”

每周 5 个新技能,1 分钟读完。

工作原理

这项技能在你已登录的浏览器中打开 Xiaohongshu 上关键词的搜索结果。它返回每篇笔记的标题、作者、点赞数、收藏数、评论数、封面图片链接,以及用于后续查询详情的令牌。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Xiaohongshu — Search Notes

keyword → list of notes with title, author, engagement stats, xsecToken

Language

All process output to user (progress updates, process notifications) follows the user's language.

Objective

Search Xiaohongshu notes by keyword and extract the result list including engagement metrics and tokens for downstream detail lookup.

Prerequisites

  • Browser opened to https://www.xiaohongshu.com/search_result/?keyword={keyword}
  • User is logged in (avatar or username visible in the left sidebar)

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-assist to 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 via eval "$(python scripts/xxx.py {params})". $(...) is bash syntax; it is recommended to use the bash tool for execution.

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 results

Navigate to the search page (business parameters injected via URL), wait for the Vue SSR state to populate, then extract from window.__INITIAL_STATE__.search.feeds:

  1. navigate https://www.xiaohongshu.com/search_result/?keyword={keyword}
  2. wait stable
  3. (optional) apply filters — see AI Workflow below
  4. eval "$(python scripts/extract-search.py --limit {limit})"

Parameters:

  • {keyword}: URL-encoded search keyword (e.g., travel, coffee)
  • --limit: max items to return from current feeds buffer, default 20

Output example:

{
  "total": 44,
  "hasMore": true,
  "page": 2,
  "items": [
    {
      "id": "69d8cd8c0000000022002295",
      "xsecToken": "ABpK6gG0Dmt6MoVt60wJf-J0VMaCw5Y1Hi766ap7uWrxE=",
      "type": "normal",
      "title": "Not Switzerland! This is a natural grassland in Fujian!!",
      "userId": "5bac4e3f7a4c7300016a6b88",
      "nickname": "half-goose",
      "likedCount": "5149",       // likes
      "collectedCount": "4170",   // collects/saves
      "commentCount": "390",      // comments
      "coverUrl": "https://sns-..."
    }
  ]
}

Error handling: if error: true is returned, verify the page URL is a search result page and wait stable has completed before retrying.

AI Workflow: apply sort and note-type filters (before extraction)

Run this workflow before the extraction step when the user specifies a sort order or note type. Uses the filter panel on the search result page:

  1. state — locate the "Filter" button in the top-right area of the search content area → click <index>

  2. Wait for filter panel to appear (visible on the right side of the page)

  3. For sort order — state locate the desired sort tag in the "Sort By" row → click <index>

    UI Label filterParams value
    General (default) general
    Latest time_descending
    Most Liked popularity_descending
    Most Commented comment_descending
    Most Collected collect_descending
  4. For note type — state locate the desired type tag in the "Note Type" row → click <index>

    UI Label filterParams value
    All (default) —
    Video video-note (site internal)
    Image-text image-text-note (site internal)
  5. state locate the "Collapse" button at th

常见问题

我需要登录吗?

需要。这项技能会检查你是否已登录 Xiaohongshu。

这个令牌有什么用?

令牌可以让你之后查询笔记的完整详情。

它能返回不止一页的结果吗?

可以。结果是分页的,因此你可以收集更多笔记。

详情

作者的原始描述

Search Xiaohongshu (RedNote / xhs) notes by keyword and return a paginated list with title, author, engagement stats (likes, collects, comments), cover image URL, and xsecToken for detail lookup. Use when user mentions find notes on xiaohongshu, search rednote, search xhs, scrape xiaohongshu search, xiaohongshu keyword search, rednote post search, xhs search results, monitor xiaohongshu topics, KOL content discovery via xiaohongshu, xiaohongshu note list, rednote scrape, xhs data collection, collect xiaohongshu posts, xiaohongshu topic search, xiaohongshu content monitoring, rednote post list,

repo: browser-act/skills

热度

GitHub 星标
6.3k
排名
#14326
许可证
MIT
更新时间
2026/8/24

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能