NanmiCoder / NanmiCoder/MediaCrawler
[BUG] 新cookie复制 进去,爬取了10个详情笔记,提示账号未登录,无法继续爬取了
Nobody has claimed this yet.
- 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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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