Files
Andvari bcb21cf5cd feat(route/cna): Preserve web crawling method. (#13531)
* feat(route/cna): Preserve web crawling method.

* Add doc.

* .

* Update website/docs/routes/traditional-media.mdx

---------
2023-12-02 23:02:30 +08:00

20 lines
711 B
JavaScript

module.exports = {
'cna.com.tw': {
_name: '中央通訊社',
'.': [
{
title: '分类',
docs: 'https://docs.rsshub.app/routes/traditional-media#zhong-yang-tong-xun-she',
source: ['/list/:id', '/topic/newstopic/:id'],
target: (params) => `/cna/${params.id.replace('.aspx', '')}`,
},
{
title: '分类(网页爬虫方法)',
docs: 'https://docs.rsshub.app/routes/traditional-media#zhong-yang-tong-xun-she',
source: ['/list/:id'],
target: (params) => `/cna/web/${params.id.replace('.aspx', '')}`,
},
],
},
};