Files
RSSHub/lib/v2/sciencenet/radar.js
Ethan Shen 55ecc71784 feat(route): add 科学网用户博客 (#9525)
* 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>
2022-04-12 04:56:50 +01:00

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',
},
],
},
};