DIYgod / RSSHub

🧡 Everything is RSSible
https://docs.rsshub.app
MIT License
32.98k stars 7.36k forks source link

【RSS 需求】小红书用户动态路由需求 #3080

Closed yefoenix closed 4 years ago

yefoenix commented 5 years ago

Issuehunt badges

网站地址

https://www.xiaohongshu.com/

网站描述

小红书是年轻人的生活方式平台和消费决策入口,由毛文超和瞿芳于 2013 年在上海创立,致力于让全世界的好生活触手可及。

需要生成什么内容?


IssueHunt Summary #### [lotosbin lotosbin](https://issuehunt.io/u/lotosbin) has been rewarded. ### Backers (Total: $5.00) - [yefoenix yefoenix](https://issuehunt.io/u/yefoenix) ($5.00) ### Submitted pull Requests - [#4162 fix: #3080 【RSS 需求】小红书用户动态路由需求](https://issuehunt.io/r/DIYgod/RSSHub/pull/4162) --- ### Tips - Checkout the [Issuehunt explorer](https://issuehunt.io/r/DIYgod/RSSHub/) to discover more funded issues. - Need some help from other developers? [Add your repositories](https://issuehunt.io/r/new) on IssueHunt to raise funds. --- IssueHunt has been backed by the following sponsors. [Become a sponsor](https://issuehunt.io/membership/members)
xyqfer commented 5 years ago

话说我点开上面两个链接就遇到滑块验证了...

yefoenix commented 5 years ago

@xyqfer 这么狠吗😂 我倒是还没遇到过,不知跟 referer 或者 UA 有没有关系

yefoenix commented 4 years ago

更新了一下失效的链接示例……有没有人搞一下😂

issuehunt-oss[bot] commented 4 years ago

@yefoenix has funded $5.00 to this issue.


lotosbin commented 4 years ago

小红书有用户指纹的逻辑,这个应该需要走 puppeteer 之类的无头浏览器做一次渲染才可以, 可以考虑部署 puppeteer 服务 例如 https://www.browserless.io/ 来支持渲染网页,然后解析 @DIYgod

yefoenix commented 4 years ago

@lotosbin rsshub是支持通过puppeteer渲染网页的,可参见抖音路由

DIYgod commented 4 years ago

@lotosbin 用户指纹的逻辑是指什么?为什么 puppeteer 就可以解决

lotosbin commented 4 years ago

页面逻辑是检查cookie是否已经有指纹的值,如果没有页面上的脚本会生成一个放在cookie中,然后reload页面, puppeteer的方案,是打开后等待1s,让页面生成指纹reload,就可以获取到实际的内容了,

指纹是根据 浏览器类型版本 ip 等很多参数 根据一个算法生成的,用来区分用户或者设备的,

DIYgod commented 4 years ago

issuehunt 挂了,暂时没法打钱了,明天再看看

yefoenix commented 4 years ago

@DIYgod issuehunt 恢复了,可以打钱了

issuehunt-oss[bot] commented 4 years ago

@diygod has rewarded $3.50 to @lotosbin. See it on IssueHunt