NanmiCoder / NanmiCoder/MediaCrawler

[问题] 访问小红书创作者主页显示没有帖子

Open
#627 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

question
Dominant language
Python
Stars
65.3k
Forks
12.6k
PR merge metrics
No merged PRs in 30d

Description

⚠️ 提交前确认

  • 我已经仔细阅读了项目使用过程中的常见问题汇总
  • 我已经搜索并查看了已关闭的issues
  • 我确认这不是由于滑块验证码、Cookie过期、Cookie提取错误、平台风控等常见原因导致的问题

❓ 问题描述

访问小红书创作者主页显示没有帖子

🔍 使用场景

  • 目标平台: (如:小红书/抖音/微博等) 小红书
  • 使用功能: (如:关键词搜索/用户主页爬取等) 用户主页

💻 环境信息

  • 操作系统: win11
  • Python版本: 3.9
  • 是否使用IP代理: no
  • 是否使用VPN翻墙软件:no
  • 目标平台(抖音/小红书/微博等):小红书

📋 错误日志

python main.py --platform xhs --lt qrcode --type creator
2025-06-26 17:06:23 MediaCrawler INFO (db.py:56) - [init_db] start init mediacrawler db connect object
2025-06-26 17:06:23 MediaCrawler INFO (db.py:58) - [init_db] end init mediacrawler db connect object
2025-06-26 17:06:23 MediaCrawler INFO (db.py:56) - [init_db] start init mediacrawler db connect object
2025-06-26 17:06:23 MediaCrawler INFO (db.py:58) - [init_db] end init mediacrawler db connect object
2025-06-26 17:06:23 MediaCrawler INFO (db.py:58) - [init_db] end init mediacrawler db connect object
2025-06-26 17:06:24 MediaCrawler INFO (core.py:71) - [XiaoHongShuCrawler] 使用标准模式启动浏览器
2025-06-26 17:06:24 MediaCrawler INFO (core.py:440) - [XiaoHongShuCrawler.launch_browser] Begin create browser context ...
2025-06-26 17:06:29 MediaCrawler INFO (core.py:412) - [XiaoHongShuCrawler.create_xhs_client] Begin create xiaohongshu API client ...
2025-06-26 17:06:29 MediaCrawler INFO (client.py:176) - [XiaoHongShuClient.pong] Begin to pong xhs...
2025-06-26 17:06:30 MediaCrawler INFO (core.py:200) - [XiaoHongShuCrawler.get_creators_and_notes] Begin get xiaohongshu creators
2025-06-26 17:06:31 MediaCrawler ERROR (client.py:504) - [XiaoHongShuClient.get_notes_by_creator] The current creator may have been banned by xhs, so they cannot access the data.
2025-06-26 17:06:31 MediaCrawler INFO (client.py:533) - [XiaoHongShuClient.get_all_notes_by_creator] Finished getting notes for user 1847382498, total: 0
2025-06-26 17:06:31 MediaCrawler INFO (core.py:359) - [XiaoHongShuCrawler.batch_get_note_comments] Begin batch get note comments, note list: []
2025-06-26 17:06:31 MediaCrawler INFO (core.py:121) - [XiaoHongShuCrawler.start] Xhs Crawler finished ...
2025-06-26 17:06:32 MediaCrawler INFO (db.py:67) - [close] close mediacrawler db pool

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with client.py at XiaoHongShuClient.get_notes_by_creator and get_all_notes_by_creator, then reproduce the reported command: python main.py --platform xhs --lt qrcode --type creator. Determine why the creator request returns zero notes and whether the logged banned-creator response is expected; done means the cause and an actionable correction are established.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend, data
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.