xiaohongshu-search
What it does
This skill runs a Xiaohongshu keyword search and returns a list of matching notes with their basic details. It is for marketers and researchers who want to see what is posted about a topic.
When to use it
- βWhen you want to find Xiaohongshu notes about a topic.
- βWhen you need to track a keyword on Xiaohongshu over time.
- βWhen you want a quick list of popular notes with their engagement stats.
Skill link
https://github.com/browser-act/skills/blob/main/solutions/social-listening/xiaohongshu-search/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βSearch Xiaohongshu for vegan lunch ideas and list the top notes with their likes and comment counts.β
5 new skills a week. 1 minute to read.
How it works
The skill opens the Xiaohongshu search results for your keyword in your logged-in browser. It returns each note with its title, author, likes, collects, comments, cover image link and the token needed for detail lookups.
Technical content (original SKILL.md)
Original text by the author, straight from 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-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 viaeval "$(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:
navigate https://www.xiaohongshu.com/search_result/?keyword={keyword}wait stable- (optional) apply filters β see AI Workflow below
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, default20
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:
stateβ locate the "Filter" button in the top-right area of the search content area βclick <index>Wait for filter panel to appear (visible on the right side of the page)
For sort order β
statelocate the desired sort tag in the "Sort By" row βclick <index>UI Label filterParams value General (default) generalLatest time_descendingMost Liked popularity_descendingMost Commented comment_descendingMost Collected collect_descendingFor note type β
statelocate 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)statelocate the "Collapse" button at th
FAQ
Do I need to be logged in?
Yes, the skill checks for a logged-in Xiaohongshu session.
What is the token for?
The token lets you look up the full details of a note later.
Can it return more than one page?
Yes, the results are paginated, so you can collect more notes.
Details
Original description by the author
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
Popularity
- GitHub stars
- 6.3k
- Ranking position
- #14326
- License
- MIT
- Updated
- 8/24/2026
Comments
- β¦
More skills from this repository
browser-act-skill-forge
6.3kHelps your agent explore a website once and save a reusable skill with scripts, so later data pulls from that site are faster.
browser-act
6.3kHelps your agent run a browser automation tool to open pages, read rendered content, fill forms, take screenshots and manage logged-in sessions.
1688-product-detail
6.3kHelps your agent pull product details from a 1688.com wholesale page, such as price tiers, variants, seller stats and attributes.
airbnb-listing-detail
6.3kHelps your agent fetch the public details of an Airbnb listing by its ID, such as photos, amenities, ratings and house rules.
Similar skills
xurl
394kHelps your agent post, reply, search, and read on X, send direct messages, and upload media, using the authenticated xurl tool.
connections-optimizer
280kImproves your social network connections. It suggests who to follow or unfollow and helps create personalized messages to expand your network.
content-engine
280kCreates content for different platforms. It helps produce posts, scripts, and content calendars that work well on networks like X, LinkedIn, and YouTube.