ReaJason / xhs

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

视频发布有文件大小限制吗? #98

Closed SarcomTDG closed 6 months ago

SarcomTDG commented 6 months ago

报错内容 Traceback (most recent call last): File "/usr/local/lib/python3.10/site-packages/flask/app.py", line 1455, in wsgi_app response = self.full_dispatch_request() File "/usr/local/lib/python3.10/site-packages/flask/app.py", line 869, in full_dispatch_request rv = self.handle_user_exception(e) File "/usr/local/lib/python3.10/site-packages/flask/app.py", line 867, in full_dispatch_request rv = self.dispatch_request() File "/usr/local/lib/python3.10/site-packages/flask/app.py", line 852, in dispatch_request return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) File "/xhs_uploade/./api/app.py", line 33, in handle_upload_videos result =upload_videos(cookies, title,videoPathUrl,coverPath,publishDatetimes,tags) File "/xhs_uploade/api/upload_video_to_xhs_api.py", line 78, in upload_videos note = xhs_client.create_video_note( File "/usr/local/lib/python3.10/site-packages/xhs/core.py", line 940, in create_video_note res = self.upload_file( File "/usr/local/lib/python3.10/site-packages/xhs/core.py", line 767, in upload_file raise Exception("video too large, < 5M")

SarcomTDG commented 6 months ago

上传文件视频就5m

ReaJason commented 6 months ago

5M 限制,因为超过 5M 用的分片上传我还没调通(不过有一点时间没调了)