कंटेंट पर जाएँ
TakoAPI
स्किल्स पर वापस

xiaohongshu-extract

jovijovi द्वारा

Coding Agents & IDEs
1.3kclawskills.sh द्वारा बताए गए डाउनलोड
1स्टार
0व्यूज़
0 लाइकइस स्किल को लाइक करने के लिए साइन इन करें
—अभी तक कोई रेटिंग नहीं
आपकी रेटिंग

संक्षिप्त

Extract metadata from Xiaohongshu (XHS) share or discovery URLs by parsing window.__INITIAL_STATE__ and returning.

विवरण

यह स्किल क्या करती है

Extracts note metadata from Xiaohongshu (XHS) share or discovery URLs by parsing the page's embedded state object. Returns structured JSON with title, description, engagement stats, user info, tags, and video stream details.

Parses the embedded window.__INITIAL_STATE__ directly, avoiding the need for a formal API key or authenticated session.

इसे कब इस्तेमाल करें

  • Pulling engagement stats from a viral XHS post
  • Archiving note metadata before a post is deleted
  • Feeding XHS content data into a downstream analysis pipeline
  • Extracting video stream URLs from XHS discovery links
  • Batch collecting note details from a list of XHS share URLs

उदाहरण वर्कफ़्लो

इनपुट

User asks: extract metadata from this XHS share link: https://www.xiaohongshu.com/explore/abc123

एजेंट
  1. 1

    Run scripts/xiaohongshu_extract.py with the provided URL and --pretty flag

  2. 2

    Check if window.__INITIAL_STATE__ was found in the page response

  3. 3

    If not found, ask the user for a direct discovery URL instead

  4. 4

    Parse the returned JSON for title, engagement counts, tags, and video info

  5. 5

    Return the structured note metadata to the user

आउटपुट

JSON object with note_id, title, desc, interact counts, tags, and video stream details

इंस्टॉलेशन

clawhub install jovijovi/xiaohongshu-extract

CLI कमांड चलाएँ, या प्रॉम्प्ट को Claude Code, Cursor, Codex या जो भी कोडिंग एजेंट आप इस्तेमाल करते हैं उसमें पेस्ट करें।

लिंक