ReaJason / xhs

基于小红书 Web 端进行的请求封装。https://reajason.github.io/xhs/
MIT License
1.03k stars 295 forks source link

请问一下这是什么问题导致的? #33

Closed haobosang closed 1 year ago

haobosang commented 1 year ago

Traceback (most recent call last): File "/home/one/myhome/path/to/xhs/test.py", line 61, in a=xhs_client.get_user_all_notes(value) File "/home/one/.local/lib/python3.10/site-packages/xhs/core.py", line 411, in get_user_all_notes note = self.get_note_by_id(note_id) File "/home/one/.local/lib/python3.10/site-packages/xhs/core.py", line 190, in get_note_by_id res = self.post(uri, data) File "/home/one/.local/lib/python3.10/site-packages/xhs/core.py", line 178, in post return self.request(method="POST", url=f"{self._host}{uri}", File "/home/one/.local/lib/python3.10/site-packages/xhs/core.py", line 165, in request raise DataFetchError(data.get("msg", data)) xhs.exception.DataFetchError: 当前内容无法展示

ReaJason commented 1 year ago

可能爬的时候,用户做了隐藏笔记的操作,导致你这边笔记爬详情的时候失败了

ReaJason commented 1 year ago

麻烦提供一下 user_id,我尝试复现一下

haobosang commented 1 year ago

@ReaJason 这个576e7b1d50c4b4045222de08

FairyWorld commented 1 year ago

640dc6250000000013013510,639700490000000022038493,639598b0000000001f00888c这三个是璐瑶说财经的三个笔记的详情页面,在列表页面可以看到这三个作品,但是点进去就提示"当前内容无法展示",实际在app可以正常查看