NanmiCoder / NanmiCoder/MediaCrawler

[BUG] 新cookie复制 进去,爬取了10个详情笔记,提示账号未登录,无法继续爬取了

Open
#646 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

刚复制cookie 进去,可能爬取了10个详情笔记,然后提示账号未登录,无法爬取
Traceback (most recent call last):
File "/Users/daijiulong/Desktop/MediaCrawler-main/.venv/lib/python3.9/site-packages/tenacity/_asyncio.py", line 50, in call
result = await fn(*args, **kwargs)
File "/Users/daijiulong/Desktop/MediaCrawler-main/media_platform/xhs/client.py", line 118, in request
raise DataFetchError(data.get("msg", None))
media_platform.xhs.exception.DataFetchError: 登录已过期

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 by reproducing the failure in media_platform/xhs/client.py, where request raises DataFetchError at line 118 after roughly 10 detail notes. Inspect the login-expiry response and the cookie handling involved in that request. Done means the crawler can continue fetching detail notes without incorrectly reporting that the account is logged out.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.