GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com โ€” GitHub - Dory168/xiaohongshu-profile-scraper: Xiaohongshu profile data scraper

BranchesTags
Open more actions menu

Latest commit

 

History

1 Commit
1 Commit

Folders and files

NameName
Last commit message
Last commit date
README.md
README.md
 
 

Repository files navigation

XiaoHongShu Profile Scraper

A powerful tool for collecting structured user-profile and post-detail data from Xiaohongshu. This scraper helps developers, analysts, and businesses gather rich UGC insights with clean, organized output.

Bitbash Banner

Telegram   WhatsApp   Gmail   Website

Created by Bitbash, built to showcase our approach to Scraping and Automation!
If you are looking for XiaoHongShu Profile Scraper you've just found your team โ€” Let's Chat. ๐Ÿ‘†๐Ÿ‘†

Introduction

The XiaoHongShu Profile Scraper retrieves detailed information from Xiaohongshu user pages and post detail pages. It is designed for professionals who need reliable, structured data for analytics, marketing intelligence, or content research.

Why This Scraper Matters

  • Extracts high-value content from one of Chinaโ€™s largest social commerce platforms.
  • Automates data gathering from user profiles and posts.
  • Supports date-range filtering and detailed metadata extraction.
  • Helps marketers and analysts track trends, creators, and engagement patterns.

Features

Feature Description
Profile Data Extraction Collects author info, avatars, URLs, and metadata.
Post Detail Scraping Gathers titles, tags, descriptions, media, dates, and locations.
Date-Range Filtering Allows scraping posts only within a selected timeframe.
Image Downloading Saves cover images automatically when enabled.
Cookie-Based Enriched Scraping Retrieves tags, date, and location using authenticated requests.

What Data This Scraper Extracts

Field Name Field Description
id Unique identifier of the post.
cover URL of the post cover image.
title Title or caption of the post.
url Direct URL to the post detail page.
num_count Interaction count or engagement metric.
top_tag Indicates whether the post is pinned or featured.
author Creatorโ€™s display name.
avatar Profile image of the author.
author_url Direct URL to the authorโ€™s profile.
desc Full text description of the post.
tags Array of extracted tags.
date Post publication date.
location Location metadata if available.
video Video URL if the post contains a video.

Example Output

[
  {
    "id": "655bfa160000000032009e1a",
    "cover": "http://sns-webpic-qc.xhscdn.com/202311212112/629ecb62902a91998666e62eee403d23/1040g00830rnggn8q2e004btv5lp801r86pu2s2o!nc_n_webp_mw_1format/jpg",
    "title": "็ฒ‰ๆก่ฑ†่…ๅŒ…",
    "url": "https://www.xiaohongshu.com/user/profile/5bfb3280e7444b0001520768/655bfa160000000032009e1a",
    "num_count": "9",
    "top_tag": false,
    "author": "ๅฐๆฅผ๏ผˆ็พŽ้ฃŸๆ—ฅ่ฎฐ๏ผ‰",
    "avatar": "https://sns-avatar-qc.xhscdn.com/avatar/60a5f35a957c7c083b9b97aa.jpg?imageView2/2/w/540/format/webp|imageMogr2/strip2",
    "author_url": "https://www.xiaohongshu.com/user/profile/5bfb3280e7444b0001520768",
    "desc": "ๅ†ฌๅคฉๆ€Žไนˆ่ƒฝๅฐ‘ๅพ—ไบ†ไธ€้”…้ฆ™ๅ–ทๅ–ท็š„็ฒ‰ๆก่ฑ†่…ๅŒ…ๅ‘ข๏ผŒไฝ ไนŸ่ตถ็ดงๅŽป่ฏ•่ฏ•ๅง",
    "tags": [
      "่ฑ†่…็ฒ‰ๆกๅŒ…ๅญ่ฏ้ข˜ๅฏไปฅ็‚นๅ‡ปๆœ็ดขๅ•ฆ~",
      "็ฒ‰ๆก่ฑ†่…ๅŒ…",
      "่ฑ†่…ๅŒ…ๅญ"
    ],
    "date": "2023-11-21",
    "location": "ๅ››ๅท",
    "video": "https://sns-video-bd.xhscdn.com/stream/110/258/01e55bf9d67fb0a1010370038bef498eda_258.mp4"
  }
]

Directory Structure Tree

XiaoHongShu Profile Scraper/
โ”œโ”€โ”€ src/
โ”‚   โ”œโ”€โ”€ runner.py
โ”‚   โ”œโ”€โ”€ extractors/
โ”‚   โ”‚   โ”œโ”€โ”€ xhs_profile_parser.py
โ”‚   โ”‚   โ””โ”€โ”€ utils_date.py
โ”‚   โ”œโ”€โ”€ outputs/
โ”‚   โ”‚   โ””โ”€โ”€ exporters.py
โ”‚   โ””โ”€โ”€ config/
โ”‚       โ””โ”€โ”€ settings.example.json
โ”œโ”€โ”€ data/
โ”‚   โ”œโ”€โ”€ inputs.sample.json
โ”‚   โ””โ”€โ”€ sample_output.json
โ”œโ”€โ”€ requirements.txt
โ””โ”€โ”€ README.md

Use Cases

  • Researchers gather structured creator and trend insights to support social-commerce analysis.
  • Marketers monitor influencer activity to improve campaign planning and competitor tracking.
  • Data engineers automate data collection pipelines for analytics dashboards.
  • Brands study content performance to understand audience interests.
  • Developers integrate Xiaohongshu data into automation tools or backend systems.

FAQs

Q: Do I need cookies to run the scraper? A: Cookies are optional but required if you need tags, location, and date metadata from post detail pages.

Q: Can it download images? A: Yes. Set download_image to true and the scraper saves cover images automatically.

Q: Does it support authenticated scraping? A: Yes, by providing the exported web_session cookie in JSON format.

Q: Can I filter by date? A: Yes, you can specify a date range to limit scraping to posts within a selected timeframe.


Performance Benchmarks and Results

Primary Metric: Capable of scraping 80โ€“120 posts per minute under stable network conditions.

Reliability Metric: Maintains a 95%+ success rate when cookies are valid and network stability is normal.

Efficiency Metric: Optimized to reduce duplicate requests, achieving efficient bandwidth usage during detail-page scraping.

Quality Metric: Yields over 98% field completeness when enriched detail-page scraping is enabled.

Book a Call Watch on YouTube

Review 1

"Bitbash is a top-tier automation partner, innovative, reliable, and dedicated to delivering real results every time."

Nathan Pennington
Marketer
โ˜…โ˜…โ˜…โ˜…โ˜…

Review 2

"Bitbash delivers outstanding quality, speed, and professionalism, truly a team you can rely on."

Eliza
SEO Affiliate Expert
โ˜…โ˜…โ˜…โ˜…โ˜…

Review 3

"Exceptional results, clear communication, and flawless delivery. Bitbash nailed it."

Syed
Digital Strategist
โ˜…โ˜…โ˜…โ˜…โ˜…

About

Xiaohongshu profile data scraper

Topics

automationprofilepythonscrapersocial-commerceugc-dataweb-scrapingxiaohongshuxiaohongshu-crawler

Resources

Readme
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

You are visitor 01402792 โ€” GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800ร—600. No cookies required.