JoeanAmier / XHS-Downloader

小红书链接提取/作品采集工具:提取账号发布、收藏、点赞、专辑作品链接;提取搜索结果作品、用户链接;采集小红书作品信息;提取小红书作品下载地址;下载小红书无水印作品文件!
GNU General Public License v3.0
5.49k stars 809 forks source link

下载作品报错了,似乎是小红书改了什么结构么。怎么办 #130

Closed renektons closed 3 months ago

renektons commented 3 months ago

开始处理作品:https://www.xiaohongshu.com/explore/668a6918000000001f004658 INFO: 219.136.198.156:10690 - "POST /xhs/ HTTP/1.1" 500 Internal Server Error ERROR: Exception in ASGI application Traceback (most recent call last): File "/usr/local/lib/python3.12/site-packages/uvicorn/protocols/http/httptools_impl.py", line 399, in run_asgi result = await app( # type: ignore[func-returns-value] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/uvicorn/middleware/proxy_headers.py", line 70, in call return await self.app(scope, receive, send) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/fastapi/applications.py", line 1054, in call await super().call(scope, receive, send) File "/usr/local/lib/python3.12/site-packages/starlette/applications.py", line 123, in call await self.middleware_stack(scope, receive, send) File "/usr/local/lib/python3.12/site-packages/starlette/middleware/errors.py", line 186, in call raise exc File "/usr/local/lib/python3.12/site-packages/starlette/middleware/errors.py", line 164, in call await self.app(scope, receive, _send) File "/usr/local/lib/python3.12/site-packages/starlette/middleware/exceptions.py", line 65, in call await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send) File "/usr/local/lib/python3.12/site-packages/starlette/_exception_handler.py", line 64, in wrapped_app raise exc File "/usr/local/lib/python3.12/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app await app(scope, receive, sender) File "/usr/local/lib/python3.12/site-packages/starlette/routing.py", line 756, in call await self.middleware_stack(scope, receive, send) File "/usr/local/lib/python3.12/site-packages/starlette/routing.py", line 776, in app await route.handle(scope, receive, send) File "/usr/local/lib/python3.12/site-packages/starlette/routing.py", line 297, in handle await self.app(scope, receive, send) File "/usr/local/lib/python3.12/site-packages/starlette/routing.py", line 77, in app await wrap_app_handling_exceptions(app, request)(scope, receive, send) File "/usr/local/lib/python3.12/site-packages/starlette/_exception_handler.py", line 64, in wrapped_app raise exc File "/usr/local/lib/python3.12/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app await app(scope, receive, sender) File "/usr/local/lib/python3.12/site-packages/starlette/routing.py", line 72, in app response = await func(request) ^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/fastapi/routing.py", line 278, in app raw_response = await run_endpoint_function( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/fastapi/routing.py", line 191, in run_endpoint_function return await dependant.call(**values) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/source/application/app.py", line 381, in handle if data := await self.deal_extract( ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/source/application/app.py", line 205, in __deal_extract namespace = self.generate_data_object(html) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/source/application/app.py", line 231, in generate_data_object data = self.convert.run(html) ^^^^^^^^^^^^^^^^^^^^^^ File "/source/expansion/converter.py", line 20, in run self.convert_object( File "/source/expansion/converter.py", line 31, in convert_object return safe_load(text.lstrip("window.INITIAL_STATE=")) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/yaml/init__.py", line 125, in safe_load return load(stream, SafeLoader) ^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/yaml/init.py", line 81, in load return loader.get_single_data() ^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/yaml/constructor.py", line 49, in get_single_data node = self.get_single_node() ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/yaml/composer.py", line 36, in get_single_node document = self.compose_document() ^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/yaml/composer.py", line 58, in compose_document self.get_event() File "/usr/local/lib/python3.12/site-packages/yaml/parser.py", line 118, in get_event self.current_event = self.state() ^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/yaml/parser.py", line 193, in parse_document_end token = self.peek_token() ^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/yaml/scanner.py", line 129, in peek_token self.fetch_more_tokens() File "/usr/local/lib/python3.12/site-packages/yaml/scanner.py", line 223, in fetch_more_tokens return self.fetch_value() ^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/yaml/scanner.py", line 577, in fetch_value raise ScannerError(None, None, yaml.scanner.ScannerError: mapping values are not allowed here in "", line 23, column 29: return { columns: 5, gapV: 16, gapH: 32, columnW ...

zhouuuuuuj commented 3 months ago

昨天还能正常使用的,今天提示获取数据失败了

MissYaer commented 3 months ago

我也是,感觉是改了什么结构。今天就不行了

qijigaici commented 3 months ago

今天突然不能用

JoeanAmier commented 3 months ago

小红书又更新了规则。

dashu1995 commented 3 months ago

我说的,今天我也突然不能用了,我感觉挺奇怪的

kiko923 commented 3 months ago

开始处理作品:https://www.xiaohongshu.com/explore/669f6dc1000000000a007f42 https://www.xiaohongshu.com/explore/669f6dc1000000000a007f42 获取数据失败 INFO: 127.0.0.1:56504 - "POST /xhs/ HTTP/1.1" 200 OK