xhs-web-note-capture
CommunityConvert logged-in Xiaohongshu posts into markdown
Content & Communication#ocr#markdown#web-scraping#xiaohongshu#image-extraction#browser-session#xsec_token
Authoreatbreads
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Capture complete Xiaohongshu (小红书) note content that is only available from a real logged-in browser session, including hidden or image-heavy posts, and convert them into local markdown files with metadata and OCRed text so the full post can be archived, searched, or edited offline.
Core Features & Use Cases
- Logged-in capture: Navigate from an authenticated author or search page to obtain durable pc_user URLs containing xsec_token and save the full HTML with cookies.
- State parsing: Extract structured note data by parsing window.INITIAL_STATE to reliably read title, body, tags, imageList, and interactInfo.
- Image handling and OCR: Download images from imageList, run OCR (supports a bundled macOS Vision OCR binary), and include raw OCR output alongside original image links.
- Output: Produce one markdown file per post containing metadata, full正文, image links, and OCR text; useful for archiving private notes, research, and content migration.
Quick Start
Save the logged-in note page HTML with cookies, then run the extractor to convert the saved HTML into a markdown file in your chosen output directory.
Dependency Matrix
Required Modules
None requiredComponents
scriptsreferences
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: xhs-web-note-capture Download link: https://github.com/eatbreads/.agents/archive/main.zip#xhs-web-note-capture Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.