feat(breaking change): 将新榜登录方式改为COOKIE登陆#5552
Conversation
|
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/diy/rsshub/nwa39xwep |
|
实际自部署到服务器依然报错: TypeError: Cannot read property 'name' of undefined |
|
为啥呢,我在我服务器和本地都没提示问题呀。。。(┬_┬) |
|
TypeError: Cannot read property 'name' of undefined |
我访问你的测试链接https://rsshub-git-fork-lessmoe-master.diy.vercel.app/newrank/wechat/mrscience100,就是会报错诶,而且也是TypeError: Cannot read property 'name' of undefined的错误 |
|
请问你这个是cookie方式还是账号密码方式呀,为啥你的可以😭 |
|
破案了!原来是我没写“token=”这段,难怪 |
按照你的改了以后成功了,感谢🙏 |
|
@bossdoge 我使用新榜抓取也遇到了类似的问题 |
登录后,chrome浏览器按F12打开开发者工具,然后刷新网页,在 network中选xhr,然后左边随便选一个比如get,在headers里就有 |
|
Token会过期吧,怎么解决? |





该 PR 相关 Issue / Involved issue
新榜登录加了验证码,改成了cookie登录
Close #5538
完整路由地址 / Example for the proposed route(s)
需要自建并添加NEWRANK_COOKIE参数
微信公众号:/newrank/wechat/mrscience100
抖音短视频:/newrank/douyin/98680217165