mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-07 13:39:35 +08:00
* feat(route): add 科学网用户博客 * update lib/v2/sciencenet/user.js Co-authored-by: Tony <TonyRL@users.noreply.github.com> Co-authored-by: Tony <TonyRL@users.noreply.github.com>
20 lines
740 B
JavaScript
20 lines
740 B
JavaScript
module.exports = {
|
|
'sciencenet.cn': {
|
|
_name: '科学网',
|
|
blog: [
|
|
{
|
|
title: '精选博客',
|
|
docs: 'https://docs.rsshub.app/new-media.html#ke-xue-wang-jing-xuan-bo-ke',
|
|
source: ['/blog.php', '/'],
|
|
target: (params, url) => `/sciencenet/blog/${new URL(url).searchParams.get('mod')}/${new URL(url).searchParams.get('op')}/${new URL(url).searchParams.get('ord')}`,
|
|
},
|
|
{
|
|
title: '用户博客',
|
|
docs: 'https://docs.rsshub.app/new-media.html#ke-xue-wang-jing-xuan-bo-ke',
|
|
source: ['/u/:id', '/'],
|
|
target: '/sciencenet/user/:id',
|
|
},
|
|
],
|
|
},
|
|
};
|