Limited Time — Lifetime Access for just $99. Lock in before prices rise.

UScraper
Tutorials

How to Scrape Xiaohongshu Post Details to CSV

Scrape Xiaohongshu post details to CSV. Export RedNote titles, images, authors, likes, comments and replies with UScraper local desktop app. No code.

UScraper
July 1, 2026
8 min read
#how to scrape xiaohongshu#xiaohongshu post scraper#rednote post details scraper#scrape xiaohongshu comments#xiaohongshu scraper tutorial#rednote xiaohongshu#xiaohongshu to csv#octoparse xiaohongshu alternative#apify xiaohongshu scraper#xiaohongshu proxy
How to Scrape Xiaohongshu Post Details to CSV

This tutorial shows how to scrape Xiaohongshu post details from RedNote detail URLs into CSV with the Xiaohongshu Post Details Scraper template for UScraper. You will prepare valid post URLs, import the JSON workflow, set the export path, run one page, and validate comments before scaling.

Before you start

Prerequisites and Xiaohongshu policy checks

You need UScraper installed as a local desktop app, current Xiaohongshu or RedNote post detail URLs, and a CSV folder. Start with one URL that opens manually in the same browser session. If it redirects to the explore feed, asks for login, or shows verification, the detail view is not available.

This guide covers public or permissioned post detail pages you can already view. It does not cover private account data, CAPTCHA bypassing, credential capture, or high-volume crawling. Review the current Xiaohongshu terms.

Use the browser as your source of truth. If the current session cannot open the post detail page, the workflow cannot reliably extract comments.


Workflow anatomy

What the Xiaohongshu post scraper template does

The companion JSON is the authoritative workflow definition. Its core path is Set Window Size -> Navigate -> Wait for Page Load -> Sleep -> Wait for Element -> Inject JavaScript -> Sleep -> Wait for Element -> Structured Export -> Loop Continue. Navigate owns the URL list, JavaScript normalizes the live page into .uscraper-xhs-row elements, and Structured Export writes the CSV in append mode.

The template is intentionally best-effort. If the detail page loads, it exports post metadata and comment rows. If it does not, it writes a diagnostic row instead of scraping unrelated /explore feed content.

Export areaCSV fieldsWhy it matters
Post identitypage_url, title, imageKeeps each row tied to the exact detail URL and media set.
Author contextuser_name, personal_file_linkHelps researchers connect post engagement to the creator profile.
Engagementlikes_amount, favorite_amounts, comment_amountCaptures visible counts for lightweight post scoring.
Commentscomment_author, comment_author_location, datetime, commentTurns the visible comment stream into reviewable rows.
Repliescomments_replies, comment_like_count, comment_reply_count, repliesPreserves nested discussion where Xiaohongshu exposes it.

Runbook

How to scrape Xiaohongshu post details to CSV

1

Import the template

Open Xiaohongshu Post Details Scraper, download the JSON, and import it into UScraper.

2

Collect current post URLs

Use post detail URLs that open correctly in your browser. Avoid old shared links that depend on expired tokens or redirect to the explore feed.

3

Replace Navigate URLs

Paste your approved Xiaohongshu post URLs into navigate.urls[]. Keep the multi-URL loop intact so every post appends to the same CSV.

4

Confirm the export folder

In Structured Export, confirm rednote-post-details-scraper.csv, headers, append mode, and a project-specific save location.

5

Run one post and inspect rows

Compare the CSV against the browser page. Check title, author, engagement counts, at least two comments, and any diagnostic status before batch runs.

6

Run the remaining list

Add the rest of your URLs only after the first row checks out. Keep batches modest and preserve the source list.

After the first run, sort by page_url and comment_author. A post with many comments may create multiple rows; a post with no visible comments may create a diagnostic row.


Validation

Validate comments, replies, and diagnostics

Check the CSV against the live page before using it. The template clicks visible "show more" controls, scrolls the comment area, and rebuilds hidden export rows during the wait window, but it does not guarantee every reply on a long thread.

SymptomLikely causeFix
POST_DETAIL_NOT_LOADED_OR_REDIRECTEDExpired token, unavailable post, login gate, CAPTCHA, or redirect to /exploreOpen the URL manually, refresh the post detail URL, then rerun one page.
Blank author or titleDetail DOM did not finish rendering or selectors changedIncrease waits and compare the live page structure before updating selectors.
Comment count does not matchXiaohongshu did not load all comments in the visible viewportScroll manually, rerun, or treat the export as visible comments only.
Replies are missingReply controls were collapsed, hidden, or rate-limitedOpen the thread in the browser and rerun after expanding visible replies.
Duplicate rowsThe same URL was supplied twice or append mode reused an old CSVClear the CSV or dedupe by page_url, comment_author, datetime, and comment.

Alternatives

UScraper vs Octoparse, Apify, and Python scripts

UScraper is a strong fit when the job is a supervised local CSV export from known post detail URLs. The workflow is visual, the file lands in your configured folder, and failure states appear as diagnostic rows.

OptionBest fitTrade-off
UScraper templateLocal visual QA, CSV exports, known post URLsNot a managed cloud crawler.
Octoparse RedNote templateTeams already using Octoparse templatesCheck cloud and subscription fit.
Apify XiaoHongShu actorCloud actors, datasets, APIs, schedulingCloud routing and actor cost apply.
Python projectsCustom auth research, signing work, retries, pipelinesHighest maintenance burden.

For a broader breakdown, read Best Xiaohongshu Scraper Alternatives. For this tutorial, the practical question is narrower: can you open the detail URL, do you need comments in CSV, and do you want the run to happen in a local desktop app?


FAQ

Xiaohongshu post scraper FAQ

Xiaohongshu post pages can be visible in a browser and still be governed by platform terms, copyright, privacy law, database restrictions, and local compliance rules. Review terms, use modest pacing, avoid bypassing access controls, and get legal review for advertising, resale, enrichment, or AI training.


Next step

Download the Xiaohongshu post details scraper

Download the JSON from Xiaohongshu Post Details Scraper and keep this guide open for validation. For related workflows, browse all UScraper templates or the UScraper blog.

FAQ

Frequently asked questions

Here are some of our most common questions. Can't find what you're looking for?

View All FAQs

Stop writing scripts. Start scraping visually.

Download UScraper and build your first web scraper in under 10 minutes. No subscriptions, no code, no limits.

Available on Windows 10+ and macOS 12+ · Need help? [email protected]