* 修复/zhihu/question,需要设置非登录状态下cookie * Update lib/routes/zhihu/execlib/g_encrypt.js Co-authored-by: Tony <TonyRL@users.noreply.github.com> * 根据TonyRL review建议进行了修改 * Update lib/routes/zhihu/question.js Co-authored-by: Rongrong <Rongronggg9@outlook.com> * Update lib/routes/zhihu/question.js Co-authored-by: Rongrong <Rongronggg9@outlook.com> * Update lib/routes/zhihu/question.js Co-authored-by: Rongrong <Rongronggg9@outlook.com> * Update lib/routes/zhihu/question.js Co-authored-by: Rongrong <Rongronggg9@outlook.com> * Update lib/routes/zhihu/question.js Co-authored-by: Rongrong <Rongronggg9@outlook.com> * Update lib/routes/zhihu/question.js Co-authored-by: Rongrong <Rongronggg9@outlook.com> * 增加cookie中dc_0字段检验 * Update lib/routes/zhihu/question.js Co-authored-by: Rongrong <Rongronggg9@outlook.com> * Update lib/routes/zhihu/question.js Co-authored-by: Rongrong <Rongronggg9@outlook.com> * refactor: migrate to v2 * fix: Incomplete URL substring sanitization Co-authored-by: Rongrong <Rongronggg9@outlook.com>
108 lines
3.7 KiB
JavaScript
108 lines
3.7 KiB
JavaScript
module.exports = {
|
|
'zhihu.com': {
|
|
_name: '知乎',
|
|
www: [
|
|
{
|
|
title: '收藏夹',
|
|
docs: 'https://docs.rsshub.app/social-media.html#zhi-hu',
|
|
source: '/collection/:id',
|
|
target: '/zhihu/collection/:id',
|
|
},
|
|
{
|
|
title: '用户动态',
|
|
docs: 'https://docs.rsshub.app/social-media.html#zhi-hu',
|
|
source: '/people/:id',
|
|
target: '/zhihu/people/activities/:id',
|
|
},
|
|
{
|
|
title: '用户回答',
|
|
docs: 'https://docs.rsshub.app/social-media.html#zhi-hu',
|
|
source: '/people/:id/answers',
|
|
target: '/zhihu/people/answers/:id',
|
|
},
|
|
{
|
|
title: '用户想法',
|
|
docs: 'https://docs.rsshub.app/social-media.html#zhi-hu',
|
|
source: '/people/:id/pins',
|
|
target: '/zhihu/people/pins/:id',
|
|
},
|
|
{
|
|
title: '用户文章',
|
|
docs: 'https://docs.rsshub.app/social-media.html#zhi-hu',
|
|
source: '/:usertype/:id/posts',
|
|
target: '/zhihu/posts/:usertype/:id',
|
|
},
|
|
|
|
{
|
|
title: '热榜',
|
|
docs: 'https://docs.rsshub.app/social-media.html#zhi-hu',
|
|
source: '/hot',
|
|
target: '/zhihu/hotlist',
|
|
},
|
|
{
|
|
title: '想法热榜',
|
|
docs: 'https://docs.rsshub.app/social-media.html#zhi-hu',
|
|
target: '/zhihu/pin/hotlist',
|
|
},
|
|
{
|
|
title: '问题',
|
|
docs: 'https://docs.rsshub.app/social-media.html#zhi-hu',
|
|
source: '/question/:questionId',
|
|
target: '/zhihu/question/:questionId',
|
|
},
|
|
{
|
|
title: '话题',
|
|
docs: 'https://docs.rsshub.app/social-media.html#zhi-hu',
|
|
source: '/topic/:topicId/:type',
|
|
target: '/zhihu/topic/:topicId',
|
|
},
|
|
{
|
|
title: '新书',
|
|
docs: 'https://docs.rsshub.app/social-media.html#zhi-hu',
|
|
source: '/zhihu/bookstore/newest',
|
|
target: '/zhihu/pin/hotlist',
|
|
},
|
|
{
|
|
title: '想法-24 小时新闻汇总',
|
|
docs: 'https://docs.rsshub.app/social-media.html#zhi-hu',
|
|
source: '/pin/special/972884951192113152',
|
|
target: '/zhihu/pin/daily',
|
|
},
|
|
{
|
|
title: '书店-周刊',
|
|
docs: 'https://docs.rsshub.app/social-media.html#zhi-hu',
|
|
source: '/pub/weekly',
|
|
target: '/zhihu/weekly',
|
|
},
|
|
{
|
|
title: '专栏',
|
|
docs: 'https://docs.rsshub.app/social-media.html#zhi-hu',
|
|
source: '/column/:id',
|
|
target: '/zhihu/zhuanlan/:id',
|
|
},
|
|
],
|
|
zhuanlan: [
|
|
{
|
|
title: '专栏',
|
|
docs: 'https://docs.rsshub.app/social-media.html#zhi-hu',
|
|
source: '/:id',
|
|
target: '/zhihu/zhuanlan/:id',
|
|
},
|
|
],
|
|
daily: [
|
|
{
|
|
title: '日报',
|
|
docs: 'https://docs.rsshub.app/social-media.html#zhi-hu',
|
|
source: '',
|
|
target: '/zhihu/daily',
|
|
},
|
|
{
|
|
title: '日报',
|
|
docs: 'https://docs.rsshub.app/social-media.html#zhi-hu',
|
|
source: '/*tpath',
|
|
target: '/zhihu/daily',
|
|
},
|
|
],
|
|
},
|
|
};
|