跳到正文
TakoAPI
返回技能列表

xiaohongshutools

由 chocomintx 提供

Web & Frontend Development
4.2k下载量由 clawskills.sh 提供
10星标
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

XiaoHongShu (Little Red Book) data collection and interaction toolkit.

描述

该技能的功能

A Python toolkit for scraping and interacting with XiaoHongShu (Little Red Book), a Chinese social media platform. All encryption parameters, including request signatures and cookies, are generated automatically in pure Python. Supports both guest mode and authenticated sessions via a web_session cookie.

All XiaoHongShu encryption and anti-bot signatures are handled in pure Python, so no JavaScript runtime or browser automation is needed.

何时使用

  • Scraping keyword search results for market research
  • Extracting comments from trending beauty or lifestyle posts
  • Monitoring user profile stats for influencer analysis
  • Collecting home feed content by category for trend tracking
  • Automating follows and likes for engagement campaigns

示例工作流

输入

User asks: search for makeup tutorial notes and list their titles and authors

智能体
  1. 1

    Creates a session with create_xhs_session(proxy=None, web_session=None)

  2. 2

    Calls xhs_session.apis.note.search_notes('美妆教程')

  3. 3

    Awaits and parses the JSON response

  4. 4

    Iterates over data['data']['items'] to extract display_title and user nickname

  5. 5

    Closes the session with xhs_session.close_session()

输出

A printed list of note titles and author nicknames from the search results

前置要求

  • XiaoHongShu account and web_session cookie (required for authenticated operations such as following users, liking posts, or accessing search when guest mode returns a -104 error)

安装

clawhub install chocomintx/xiaohongshutools

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接