Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

小红书 单篇笔记详情无法获取 #382

Closed
fangd123 opened this issue Aug 10, 2024 · 3 comments
Closed

小红书 单篇笔记详情无法获取 #382

fangd123 opened this issue Aug 10, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@fangd123
Copy link

提示如下:

Traceback (most recent call last):
  File "D:\new_projects\MediaCrawler\media_platform\xhs\core.py", line 201, in get_note_detail
    note_detail: Dict = await self.xhs_client.get_note_by_id(note_id, xsec_source, xsec_token)
  File "D:\new_projects\MediaCrawler\media_platform\xhs\client.py", line 223, in get_note_by_id
    res = await self.post(uri, data)
  File "D:\new_projects\MediaCrawler\media_platform\xhs\client.py", line 129, in post
    return await self.request(method="POST", url=f"{self._host}{uri}",
  File "D:\new_projects\MediaCrawler\media_platform\xhs\client.py", line 98, in request
    raise DataFetchError(data.get("msg", None))
media_platform.xhs.exception.DataFetchError: 访问链接异常
2024-08-10 18:57:23 MediaCrawler INFO (core.py:220) - [XiaoHongShuCrawler.batch_get_note_comments] Crawling comment mode is not enabled
2024-08-10 18:57:23 MediaCrawler INFO (core.py:88) - [XiaoHongShuCrawler.start] Xhs Crawler finished ...
@NanmiCoder
Copy link
Owner

命令是--type detail模式下吗

@NanmiCoder NanmiCoder added the bug Something isn't working label Aug 10, 2024
@NanmiCoder
Copy link
Owner

xhs现在指定note_id获取详情验证xsec_token了,之前是随便拿一个xsec_token都可以用,现在不行了,待修复。

@NanmiCoder
Copy link
Owner

已修复:f371675

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants