RSSHub/lib/v2/thepaper/radar.js

43 lines
1.5 KiB
JavaScript

module.exports = {
'thepaper.cn': {
_name: '澎湃新闻',
'.': [
{
title: '首页头条',
docs: 'https://docs.rsshub.app/traditional-media.html#peng-pai-xin-wen-shou-ye-tou-tiao',
source: ['/'],
target: '/thepaper/featured',
},
{
title: '频道',
docs: 'https://docs.rsshub.app/traditional-media.html#peng-pai-xin-wen-pin-dao',
source: ['/'],
target: (params, url) => `/thepaper/channel/${new URL(url).search(/channel_(\d+)/)}`,
},
{
title: '列表',
docs: 'https://docs.rsshub.app/traditional-media.html#peng-pai-xin-wen-lie-biao',
source: ['/'],
target: (params, url) => `/thepaper/channel/${new URL(url).search(/list_(\d+)/)}`,
},
{
title: '澎湃美数组作品集',
docs: 'https://docs.rsshub.app/traditional-media.html#peng-pai-xin-wen-peng-pai-mei-shu-zuo-pin-ji',
source: ['/'],
target: '/thepaper/839studio/:id',
},
],
},
'factpaper.cn': {
_name: '澎湃新闻',
'.': [
{
title: '明查',
docs: 'https://docs.rsshub.app/traditional-media.html#peng-pai-xin-wen-ming-cha',
source: ['/'],
target: '/thepaper/factpaper/:status',
},
],
},
};