RSSHub
RSSHub copied to clipboard
feat: use cookie cloud for cookie
Involved Issue / 该 PR 相关 Issue
Close #
Example for the Proposed Route(s) / 路由地址示例
NOROUTE
New RSS Route Checklist / 新 RSS 路由检查表
- [ ] New Route / 新的路由
- [ ] Follows Script Standard / 跟随 路由规范
- [ ] Anti-bot or rate limit / 反爬/频率限制
- [ ] If yes, do your code reflect this sign? / 如果有, 是否有对应的措施?
- [ ] Date and time / 日期和时间
- [ ] Parsed / 可以解析
- [ ] Correct time zone / 时区正确
- [x] New package added / 添加了新的包
- [ ]
Puppeteer
Note / 说明
增加从 CookieCloud 获取 Cookie 的能力,并为 javdb 添加了适配。
有个不确定是否合适的操作是在这里 lib/utils/cookie-cloud.ts#L25 使用了 globalThis,如果不使用 globalThis 的话在 lib/routes/javdb/utils.ts#L22 会获取不到内容,我不是一个专业的前端开发,实在不知道怎么办才用了 globalThis。如果大佬们能有更优雅的办法还请不吝赐教!
Hi, @TonyRL. Could I kindly request your help in reviewing this PR? It utilizes CookieCloud to sync cookies from the user's browser, which would be beneficial for certain sites with short-lived cookies. Thank you!
Use sgpublic/rsshub-cookiecloud instead.