From 528d55965c949d2031192423f0d4aaa944d5e16f Mon Sep 17 00:00:00 2001 From: dzx-dzx Date: Mon, 13 Nov 2023 19:37:18 +0800 Subject: [PATCH] Add doc. --- lib/v2/cna/maintainer.js | 1 + lib/v2/cna/radar.js | 6 ++++++ website/docs/routes/traditional-media.mdx | 4 ++++ 3 files changed, 11 insertions(+) diff --git a/lib/v2/cna/maintainer.js b/lib/v2/cna/maintainer.js index 77e7f46e2f9997..25c21691da0802 100644 --- a/lib/v2/cna/maintainer.js +++ b/lib/v2/cna/maintainer.js @@ -1,3 +1,4 @@ module.exports = { '/:id?': ['nczitzk'], + '/web/:id?': ['dzx-dzx'], }; diff --git a/lib/v2/cna/radar.js b/lib/v2/cna/radar.js index 92cec6d1b42db5..5431d1dc9ba66d 100644 --- a/lib/v2/cna/radar.js +++ b/lib/v2/cna/radar.js @@ -8,6 +8,12 @@ module.exports = { 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', '')}`, + }, ], }, }; diff --git a/website/docs/routes/traditional-media.mdx b/website/docs/routes/traditional-media.mdx index 8b6cbf7502fc4f..78683b41d55586 100644 --- a/website/docs/routes/traditional-media.mdx +++ b/website/docs/routes/traditional-media.mdx @@ -2813,6 +2813,10 @@ category 对应的关键词有 +:::tip +在`:id`前插入`/web`(即`/cna/web/:id?`)以从网页抓取. +::: + ## 组织人事报 {#zu-zhi-ren-shi-bao} ### 电子报 {#zu-zhi-ren-shi-bao-dian-zi-bao}