본문으로 건너뛰기
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 등 사용하는 코딩 에이전트에 붙여넣으세요.

링크