Langsung ke konten
Skillpedia
Media sosial6.3k Β· #14326

xiaohongshu-search

Fungsinya

Skill ini menjalankan pencarian kata kunci di Xiaohongshu dan mengembalikan daftar catatan yang cocok beserta detail dasarnya. Skill ini ditujukan untuk pemasar dan peneliti yang ingin melihat apa yang diposting tentang sebuah topik.

Kapan dipakai

  • βœ“Saat Anda ingin menemukan catatan Xiaohongshu tentang sebuah topik.
  • βœ“Ketika Anda perlu melacak sebuah kata kunci di Xiaohongshu dari waktu ke waktu.
  • βœ“Saat Anda menginginkan daftar cepat catatan populer beserta statistik interaksinya.

Link skill

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

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/browser-act/skills/blob/main/solutions/social-listening/xiaohongshu-search/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit β†’

Contoh permintaan ke AI

β€œCari ide makan siang vegan di Xiaohongshu dan daftarkan catatan teratas beserta jumlah suka dan komentarnya.”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Skill ini membuka hasil pencarian Xiaohongshu untuk kata kunci Anda di browser yang sudah masuk. Ia mengembalikan setiap catatan dengan judul, penulis, suka, koleksi, komentar, tautan gambar sampul, dan token untuk pencarian detail.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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

Pertanyaan umum

Apakah saya perlu masuk?

Ya, skill ini memeriksa sesi Xiaohongshu yang sudah masuk.

Untuk apa token itu?

Token memungkinkan Anda mencari detail lengkap sebuah catatan nanti.

Bisakah ia mengembalikan lebih dari satu halaman?

Bisa, hasilnya dibagi per halaman sehingga Anda bisa mengumpulkan lebih banyak catatan.

Detail

Deskripsi asli dari pembuat

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

Popularitas

Bintang GitHub
6.3k
Peringkat
#14326
Lisensi
MIT
Diperbarui
24/8/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa