xhs
xhs copied to clipboard
基于小红书 Web 端进行的请求封装。https://reajason.github.io/xhs/
大佬看下, 这个网页有私信的列表,不知道怎么能获取对应的api, 实现私信回复的功能?
https://github.com/ReaJason/xhs/blob/112242eeaeb0e2a3ee0261edd75e5dbd9d1f9edf/tests/test_help.py#L88
xhs_client.get_note_sub_comments(noteId,parentId)
xhs_client.get_suggest_topi 最新获取到的 ``` { "link": "https://www.xiaohongshu.com/page/topics/603a042af390000001b70e25?naviHidden=yes", "view_num": 9996036, "type": "official", "smart": false, "id": "603a042a000000000100be68", "name": "喵咪日常" }, ``` "type": "official" 以及变成official了,原来是topic的,official 发布内容后会提示自定义标签无法点击。 自己改成 "type": "topic" 发布后就可以点击了。
今天晚上开始出现`requests.exceptions.ConnectionError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))`,是爬虫太频繁了吗? 在服务器和本地测试同一个账号都出现同样情况
当请求量大的时候部署在docker中的签名服务端会崩溃容器挂掉 ---------------------------------------- Exception occurred during processing of request from ('本机IP, 35690) Traceback (most recent call last): File "/usr/lib/python3.10/socketserver.py", line 316, in _handle_request_noblock self.process_request(request, client_address) File "/usr/lib/python3.10/socketserver.py", line 697, in process_request...