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

UScraper
Tutorials

How to Scrape Xiaohongshu Search Results by URL to CSV

Scrape Xiaohongshu search results by URL. Export titles, authors, likes, image URLs and post links to CSV. Local desktop app, no cloud queue for QA.

UScraper
July 1, 2026
8 min read
#how to scrape xiaohongshu#xiaohongshu search results scraper#xiaohongshu search scraper#rednote search scraper#rednote scraper#best xiaohongshu scraper#xiaohongshu scraper vs apify#octoparse xiaohongshu scraper alternative#xiaohongshu to csv
How to Scrape Xiaohongshu Search Results by URL to CSV

Learn how to scrape Xiaohongshu search results from a saved RedNote search URL into CSV with the Xiaohongshu Search Results Scraper by URL template for UScraper.

Before you start

Prerequisites, scope, and policy checks

You need UScraper as a local desktop app, one Xiaohongshu or RedNote search result URL you can open in a browser, and a folder for CSV exports. Start with one URL, not a keyword list. This URL-based workflow is useful when your team already reviewed a result page manually and wants those visible cards in a spreadsheet.

This tutorial does not cover private messages, account dashboards, hidden APIs, CAPTCHA bypassing, request signing, or login automation. Public pages can still be governed by platform rules, so review the current Xiaohongshu terms of service and robots.txt before automated collection.

Treat this as supervised extraction for approved research. If a page asks for verification, solve it manually in the browser profile or stop the run; do not build around the challenge.


Workflow anatomy

What the Xiaohongshu search results scraper does

The template JSON is the source of truth. Its flow is compact: Navigate -> Wait for Page Load -> Sleep -> Inject JavaScript -> Wait for Element -> Structured Export -> End. Navigate opens a URL such as https://www.xiaohongshu.com/search_result?keyword=web%20scraping. The wait blocks let the web app render. The JavaScript block autoscrolls, deduplicates note cards, and creates hidden .uscraper-xhs-row elements. Structured Export writes those rows to CSV.

Workflow blockWhat it doesWhat to inspect
NavigateOpens the configured search URLKeyword and source parameters.
Wait and SleepLets the SPA and prompts settleWhether cards are visible.
Inject JavaScriptScrolls, extracts, and deduplicatesWhether note links are detected.
Wait for ElementConfirms hidden rows existData rows or a diagnostic row.
Structured ExportWrites append-mode CSV with headersSave folder, filename, and columns.

The export is best effort because Xiaohongshu can withhold or rearrange fields. Empty cells are not automatically failures.


Runbook

How to scrape Xiaohongshu search results by URL

1

Open the search URL manually

Confirm normal note cards load, then handle any consent, login, language, or verification prompt before automation.

2

Import the UScraper template

Download the JSON from the related template page and import it into UScraper.

3

Replace the sample URL

In Navigate, replace the sample keyword URL with your approved search result URL.

4

Set the export destination

In Structured Export, confirm xiaohongshu-search-results-scraper.csv, headers, append mode, and the folder where your team expects CSV files.

5

Run one URL and validate

Open the CSV, compare rows against the browser, then repeat the flow for more saved URLs.

Use the sibling Xiaohongshu Search Result Scraper by Keyword when you need keyword entry rather than URL replay.


Output preview

What the Xiaohongshu to CSV export includes

There is no bundled CSV sample, so treat the JSON export as the authoritative workflow sample. The row below is illustrative, not a promise that every card exposes every field.

xiaohongshu-search-results-scraper.csv
CSV - UTF-8 - Append

Column

input_keywords

Decoded keyword from the search URL.

Column

title

Visible note title, image alt text, or link text.

Column

image_url

Primary card image URL when exposed.

Column

details_page_url

Note detail page URL.

Column

author

Visible creator or account name.

Column

datetime

Visible date or relative time.

Column

author_url

Creator profile URL.

Column

like_count

Visible like count text.

Column

recommended_reason

Recommendation copy or diagnostic reason.

Sample rows

1 of many

input_keywordstitleimage_urldetails_page_urlauthordatetimeauthor_urllike_countrecommended_reason
web scrapingRedNote trend research workflow notesMarket Studio2026-06-02865Search result card
Headers included - each run appends normalized rows from the configured search URL

Validation

Validate the export before using it

Open the CSV beside the Xiaohongshu page and compare the first few rows manually. Titles should match visible cards. Detail URLs should point to note pages, while author URLs should point to profiles. Like counts may appear as localized shorthand, so normalize them only after review.

SymptomLikely causeFix
Only one diagnostic rowLogin, CAPTCHA, security verification, expired URL, or invalid tokenOpen the URL manually, resolve access if permitted, then rerun one URL.
Blank author or dateCard markup did not expose those fieldsKeep the row and review whether the field is required.
Repeated rowsThe same card appeared in multiple selector candidatesUse detail URL or image URL to dedupe downstream.
Empty image URLsImages lazy-loaded differently or were hiddenScroll manually once, then rerun; update selectors if the layout changed.
Very low row countInfinite scroll stopped early or access throttledIncrease dwell time modestly and keep runs paced.

Guardrails before scaling RedNote exports

Access

Do not automate around verification

Stop or handle prompts manually. The stock workflow is not a bypass system.

Policy

Use rows for approved research

Review platform terms, privacy rules, and data-retention policy before sharing exports.

Drift

Expect selector maintenance

Card layouts can change, so keep a small validation run in recurring processes.


Alternatives

UScraper vs Octoparse, Apify, APIs, and Python

There is more than one way to scrape Xiaohongshu. Octoparse offers no-code templates, Apify packages scrapers as hosted actors, API providers focus on structured endpoints, and open-source Python projects give engineers full control.

OptionBest fitTrade-off
UScraperSupervised CSV, visible browser QA, local desktop app workflowYou maintain selectors when the card layout changes.
Hosted toolsScheduling, cloud queues, managed infrastructureCheck pricing, data custody, and exact URL support.
Code or APIBackend integration, typed payloads, repeatable servicesAuthentication state and schema drift become engineering work.

FAQ

Xiaohongshu search scraper FAQ

Xiaohongshu and RedNote pages can be visible in a browser and still be governed by terms, robots rules, copyright, privacy law, and local compliance requirements. Review current rules, avoid bypassing access controls, and get legal review before commercial use.


Next step

Download the Xiaohongshu search results scraper by URL

When you are ready to run the tutorial, open Xiaohongshu Search Results Scraper by URL, import the JSON into UScraper, and keep this article open for validation. For adjacent workflows, browse all UScraper templates or the UScraper blog for more CSV export tutorials.

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]