Loading...
Loading...
Triggered when users need to crawl or collect Xiaohongshu (RedNote) data, including scenarios such as searching notes/content, topic discovery, searching users/bloggers, discovering KOLs/influencers, researching account information, capturing user notes, and collecting note comments/replies (public opinion, sentiment, community monitoring). Retrieve data by calling Xiaohongshu interfaces via JustOneAPI.
npx skill4agent add noir-madlax/wantai-skills xiaohongshu-justoneapitoken.envJUSTONEAPI_TOKENJUST_ONE_API_TOKENJUSTONEAPI_TOKENJUST_ONE_API_TOKEN.envJUSTONEAPI_TOKEN=your_token_here⚠️is in the response body, not the HTTP status code. Even if HTTP 200 is returned,codemust be checked.code
| Meaning | Handling Strategy |
|---|---|---|
| Success | Process normally |
| Invalid or expired Token | Prompt user to check the token |
| Collection failed | Auto-retry with an interval of 2-3 seconds, maximum 3 times |
| Rate limit exceeded | Reduce request frequency and retry after waiting |
| Daily quota exceeded | Inform user that the daily quota has been used up |
| Parameter error | Check if required parameters are missing or formatted incorrectly |
| Internal server error | Retry later; if the issue persists, feedback to JustOneAPI |
| Insufficient permissions | Inform user that the current token has no access to this interface |
| Insufficient balance | Inform user to recharge on JustOneAPI |
| User Intent | Interface Definition | Script |
|---|---|---|
| Search users / Discover bloggers / Check accounts | | |
| Capture user-published notes / Content analysis / Competitor monitoring | | |
| Search notes / Topic discovery / Keyword collection / Public opinion tracking | | |
| Capture note comments / Comment replies / Public opinion analysis / Sentiment analysis | | |
uv run# Install uv (if not installed yet)
curl -LsSf https://astral.sh/uv/install.sh | sh
# Run directly, uv handles dependencies automatically
uv run scripts/search_users.py <keyword> [max_pages] [--output-dir DIR]
uv run scripts/get_user_posts.py <user_id> [user_id2 ...] [--output-dir DIR] [--since YYYY-MM-DD] [--workers N]
uv run scripts/search_notes.py <keyword> <max_pages> [--sort SORT] [--note-type TYPE] [--output-dir DIR]
uv run scripts/get_note_comments.py <note_id> [note_id2 ...] [--output-dir DIR] [--sort latest|normal] [--max-top N] [--no-replies]
# Examples
uv run scripts/search_users.py 美妆博主 5 --output-dir ./output
uv run scripts/get_user_posts.py 5b33a8556b58b74911b89949 5f279d91000000000100836c --output-dir ./output --since 2025-01-01
uv run scripts/search_notes.py 美妆 10 --sort popularity_descending --note-type _1 --output-dir ./output
uv run scripts/search_notes.py 机车骑行 20 --sort time_descending --output-dir ./output
uv run scripts/get_note_comments.py 65bf5360000000002c03f684 --output-dir ./output
uv run scripts/get_note_comments.py 65bf5360000000002c03f684 --no-replies # Only capture top-level comments
uv run scripts/get_note_comments.py 65bf5360000000002c03f684 --max-top 100 # Stop pagination when top-level comments reach 100
uv run scripts/get_note_comments.py 65bf5360000000002c03f684 --sort normal # Pull data in default sort order