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

小红书路由多次失效 #10198

Closed
1 task done
dasoumao opened this issue Jul 12, 2022 · 7 comments · Fixed by #11949
Closed
1 task done

小红书路由多次失效 #10198

dasoumao opened this issue Jul 12, 2022 · 7 comments · Fixed by #11949
Labels
Bug Ping: Not Found contribution welcome We have some information in hand: let's make it happen! RSS bug Something isn't working

Comments

@dasoumao
Copy link

路由地址

/xiaohongshu/user/:user_id/notes

完整路由地址

/xiaohongshu/user/62a1afbf0000000021020ffb/notes

相关文档

https://docs.rsshub.app/social-media.html#xiao-hong-shu

预期是什么?

返回正常抓取结果

实际发生了什么?

未能返回抓取结果,返回包括503等错误

部署

自建

部署相关信息

Debian Docker

额外信息

Route requested: /user/62a1afbf0000000021020ffb/notes
Error message: Protocol error (Runtime.callFunctionOn): Target closed.
Helpful Information to provide when opening issue:
Path: /user/62a1afbf0000000021020ffb/notes
Node version: v16.16.0
Git Hash: 749f2fe

这不是重复的 issue

  • 我已经搜索了现有 issue,以确保该错误尚未被报告。
@dasoumao dasoumao added the RSS bug Something isn't working label Jul 12, 2022
@github-actions
Copy link
Contributor

Searching for maintainers:
  • /xiaohongshu/user/:user_id/notes: Route not found

To maintainers: if you are not willing to be disturbed, list your username in scripts/workflow/test-issue/call-maintainer.js. In this way, your username will be wrapped in an inline code block when tagged so you will not be notified.

如果有任何路由无法匹配,issue 将会被自动关闭。如果 issue 和路由无关,请使用 NOROUTE 关键词,或者留下评论。我们会重新审核。
If there is any route not found, the issue will be closed automatically. Please use NOROUTE for a route-irrelevant issue or leave a comment if it is a mistake.

@dasoumao
Copy link
Author

机器人识别不到小红书路由
打开页面显示如下:
Route requested: /user/62a1afbf0000000021020ffb/notes
Error message: Protocol error (Runtime.callFunctionOn): Target closed.
Helpful Information to provide when opening issue:
Path: /user/62a1afbf0000000021020ffb/notes
Node version: v16.16.0
Git Hash: 749f2fe

rsshub路由也显示失败

@NeverBehave NeverBehave reopened this Jul 12, 2022
@TonyRL
Copy link
Collaborator

TonyRL commented Jul 12, 2022

The page https://www.xiaohongshu.com/user/profile/593032945e87e77791e03696 is protected by captcha.

@TonyRL TonyRL added the contribution welcome We have some information in hand: let's make it happen! label Jul 12, 2022
@cxumol
Copy link
Contributor

cxumol commented Nov 11, 2022

Use some URL params to bypass captcha

?app_platform=android&app_version=7.47.0&share_from_user_hidden=true&xhsshare=CopyLink&appuid=XXXXXXXXXXXXXXXXXXXX&apptime=XXXXXXXXXX
?xhsshare=WeixinSession&appuid=XXXXXXXXXXXXXXXXXXXX&apptime=XXXXXXXXXX

You have to use their APP to get these params.

Life time are unknow, though should be long

@Achilles-10
Copy link

Use some URL params to bypass captcha

?app_platform=android&app_version=7.47.0&share_from_user_hidden=true&xhsshare=CopyLink&appuid=XXXXXXXXXXXXXXXXXXXX&apptime=XXXXXXXXXX
?xhsshare=WeixinSession&appuid=XXXXXXXXXXXXXXXXXXXX&apptime=XXXXXXXXXX

You have to use their APP to get these params.

Life time are unknow, though should be long

What does the complete routing address look like after adding these parameters

@TonyRL
Copy link
Collaborator

TonyRL commented Feb 24, 2023

/test

/xiaohongshu/user/62a1afbf0000000021020ffb/notes

@github-actions
Copy link
Contributor

Successfully generated as following:

http://localhost:1200/xiaohongshu/user/62a1afbf0000000021020ffb/notes - Success
<?xml version="1.0" encoding="UTF-8"?>
<rss  xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"
>
    <channel>
        <title><![CDATA[只是小明 - 笔记 • 小红书 / RED]]></title>
        <link>https://www.xiaohongshu.com/user/profile/62a1afbf0000000021020ffb</link>
        <atom:link href="http://localhost:1200/xiaohongshu/user/62a1afbf0000000021020ffb/notes" rel="self" type="application/rss+xml" />
        <description><![CDATA[马文 但是可以叫我小明 - Made with love by RSSHub(https://github.com/DIYgod/RSSHub)]]></description>
        <generator>RSSHub</generator>
        <webMaster>i@diygod.me (DIYgod)</webMaster>
        <language>zh-cn</language>
        <image>
            <url>https://sns-avatar-qc.xhscdn.com/avatar/62a1afbf0000000021020ffb.jpg?imageView2/2/w/540/format/webp</url>
            <title><![CDATA[只是小明 - 笔记 • 小红书 / RED]]></title>
            <link>https://www.xiaohongshu.com/user/profile/62a1afbf0000000021020ffb</link>
        </image>
        <lastBuildDate>Fri, 24 Feb 2023 22:22:07 GMT</lastBuildDate>
        <ttl>5</ttl>
        <item>
            <title><![CDATA[乱室]]></title>
            <description><![CDATA[<img src="https://sns-img-hw.xhscdn.com/69beb083-4d57-4f88-aa84-b5c80d1982ad" referrerpolicy="no-referrer"><br>乱室 ]]></description>
            <guid isPermaLink="false">https://www.xiaohongshu.com/user/profile/62a1afbf0000000021020ffb/63e3abef000000001a0271c4</guid>
            <link>https://www.xiaohongshu.com/user/profile/62a1afbf0000000021020ffb/63e3abef000000001a0271c4</link>
            <author><![CDATA[只是小明]]></author>
        </item>
        <item>
            <title><![CDATA[ootd]]></title>
            <description><![CDATA[<img src="https://sns-img-hw.xhscdn.com/77f00915-c7ae-2161-9b9b-721f25b33f6f" referrerpolicy="no-referrer"><br>ootd ]]></description>
            <guid isPermaLink="false">https://www.xiaohongshu.com/user/profile/62a1afbf0000000021020ffb/63d4fcb8000000000d014fd2</guid>
            <link>https://www.xiaohongshu.com/user/profile/62a1afbf0000000021020ffb/63d4fcb8000000000d014fd2</link>
            <author><![CDATA[只是小明]]></author>
        </item>
        <item>
            <title><![CDATA[:-(]]></title>
            <description><![CDATA[<img src="https://sns-img-hw.xhscdn.com/2ef37620-2aff-554e-dc95-b695a08d8044" referrerpolicy="no-referrer"><br>:-( ]]></description>
            <guid isPermaLink="false">https://www.xiaohongshu.com/user/profile/62a1afbf0000000021020ffb/63c39f9c000000001e03da27</guid>
            <link>https://www.xiaohongshu.com/user/profile/62a1afbf0000000021020ffb/63c39f9c000000001e03da27</link>
            <author><![CDATA[只是小明]]></author>
        </item>
        <item>
            <title><![CDATA[NEW YEAR]]></title>
            <description><![CDATA[<img src="https://sns-img-hw.xhscdn.com/0d28ce94-ed46-ed75-a42d-85e2d6c7e6d3" referrerpolicy="no-referrer"><br>NEW YEAR ]]></description>
            <guid isPermaLink="false">https://www.xiaohongshu.com/user/profile/62a1afbf0000000021020ffb/63aad16d0000000019022092</guid>
            <link>https://www.xiaohongshu.com/user/profile/62a1afbf0000000021020ffb/63aad16d0000000019022092</link>
            <author><![CDATA[只是小明]]></author>
        </item>
        <item>
            <title><![CDATA[🎄矿泉水瓶圣诞氛围照,我悟了(圣诞树是p的)]]></title>
            <description><![CDATA[<img src="https://sns-img-hw.xhscdn.com/6302d68e-2db7-0670-0867-a07488f53fb0" referrerpolicy="no-referrer"><br>🎄矿泉水瓶圣诞氛围照,我悟了(圣诞树是p的)]]></description>
            <guid isPermaLink="false">https://www.xiaohongshu.com/user/profile/62a1afbf0000000021020ffb/63a6d145000000001e03d2c4</guid>
            <link>https://www.xiaohongshu.com/user/profile/62a1afbf0000000021020ffb/63a6d145000000001e03d2c4</link>
            <author><![CDATA[只是小明]]></author>
        </item>
        <item>
            <title><![CDATA[对不良诱惑说快]]></title>
            <description><![CDATA[<img src="https://sns-img-hw.xhscdn.com/43401393-530d-b951-0f40-53476a57ca7c" referrerpolicy="no-referrer"><br>对不良诱惑说快 ]]></description>
            <guid isPermaLink="false">https://www.xiaohongshu.com/user/profile/62a1afbf0000000021020ffb/63a30af6000000002202ac67</guid>
            <link>https://www.xiaohongshu.com/user/profile/62a1afbf0000000021020ffb/63a30af6000000002202ac67</link>
            <author><![CDATA[只是小明]]></author>
        </item>
        <item>
            <title><![CDATA[lookin rich?]]></title>
            <description><![CDATA[<img src="https://sns-img-hw.xhscdn.com/e893017b-4442-57d9-3156-fcd26208ddf4" referrerpolicy="no-referrer"><br>lookin rich?]]></description>
            <guid isPermaLink="false">https://www.xiaohongshu.com/user/profile/62a1afbf0000000021020ffb/6399969e000000001c0342f8</guid>
            <link>https://www.xiaohongshu.com/user/profile/62a1afbf0000000021020ffb/6399969e000000001c0342f8</link>
            <author><![CDATA[只是小明]]></author>
        </item>
        <item>
            <title><![CDATA[🥶]]></title>
            <description><![CDATA[<img src="https://sns-img-hw.xhscdn.com/db7ef5b7-8e88-2005-4230-1f24f943979c" referrerpolicy="no-referrer"><br>🥶 ]]></description>
            <guid isPermaLink="false">https://www.xiaohongshu.com/user/profile/62a1afbf0000000021020ffb/6398822f000000001e03f376</guid>
            <link>https://www.xiaohongshu.com/user/profile/62a1afbf0000000021020ffb/6398822f000000001e03f376</link>
            <author><![CDATA[只是小明]]></author>
        </item>
        <item>
            <title><![CDATA[有手就行的直板夹卷发]]></title>
            <description><![CDATA[<img src="https://sns-img-hw.xhscdn.com/1000g0081mlkrpf0d60005ol1luvoc3vrii4nfbo" referrerpolicy="no-referrer"><br>有手就行的直板夹卷发]]></description>
            <guid isPermaLink="false">https://www.xiaohongshu.com/user/profile/62a1afbf0000000021020ffb/638f1236000000001f011d86</guid>
            <link>https://www.xiaohongshu.com/user/profile/62a1afbf0000000021020ffb/638f1236000000001f011d86</link>
            <author><![CDATA[只是小明]]></author>
        </item>
        <item>
            <title><![CDATA[天冷加衣]]></title>
            <description><![CDATA[<img src="https://sns-img-hw.xhscdn.com/f2ea86cc-3d40-40b6-6806-830c45f2d5ca" referrerpolicy="no-referrer"><br>天冷加衣 ]]></description>
            <guid isPermaLink="false">https://www.xiaohongshu.com/user/profile/62a1afbf0000000021020ffb/638ddacd000000001f008048</guid>
            <link>https://www.xiaohongshu.com/user/profile/62a1afbf0000000021020ffb/638ddacd000000001f008048</link>
            <author><![CDATA[只是小明]]></author>
        </item>
    </channel>
</rss>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Ping: Not Found contribution welcome We have some information in hand: let's make it happen! RSS bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants