rsshub 1.0.0-master.e5d191c → 1.0.0-master.e5fc2b2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -46
- package/lib/api/radar/rules/all.ts +3 -6
- package/lib/api/radar/rules/one.ts +3 -6
- package/lib/config.ts +30 -22
- package/lib/errors/index.test.ts +1 -1
- package/lib/errors/index.tsx +2 -2
- package/lib/index.ts +1 -1
- package/lib/middleware/anti-hotlink.test.ts +191 -6
- package/lib/middleware/anti-hotlink.ts +28 -0
- package/lib/middleware/logger.ts +2 -2
- package/lib/middleware/parameter.test.ts +22 -5
- package/lib/middleware/parameter.ts +47 -17
- package/lib/registry.test.ts +8 -0
- package/lib/registry.ts +2 -0
- package/lib/router.js +1 -4
- package/lib/routes/141jav/index.ts +25 -21
- package/lib/routes/141ppv/index.ts +24 -20
- package/lib/routes/51read/article.ts +82 -0
- package/lib/routes/51read/namespace.ts +6 -0
- package/lib/routes/5eplay/utils.ts +5 -3
- package/lib/routes/abc/index.ts +2 -2
- package/lib/routes/agri/index.ts +307 -0
- package/lib/routes/agri/namespace.ts +8 -0
- package/lib/routes/agri/templates/description.art +21 -0
- package/lib/routes/aljazeera/index.ts +2 -2
- package/lib/routes/apnews/api.ts +62 -0
- package/lib/routes/apnews/rss.ts +1 -1
- package/lib/routes/apnews/sitemap.ts +99 -0
- package/lib/routes/apnews/topics.ts +2 -2
- package/lib/routes/apnews/utils.ts +7 -5
- package/lib/routes/bestblogs/feeds.ts +107 -0
- package/lib/routes/bestblogs/namespace.ts +6 -0
- package/lib/routes/bilibili/api-interface.d.ts +1 -0
- package/lib/routes/bilibili/bilibili-recommend.ts +42 -0
- package/lib/routes/bilibili/cache.ts +25 -1
- package/lib/routes/bilibili/dynamic.ts +103 -101
- package/lib/routes/bilibili/followings-video.ts +9 -3
- package/lib/routes/bilibili/utils.ts +5 -0
- package/lib/routes/bilibili/video.ts +2 -1
- package/lib/routes/binance/announcement.ts +168 -0
- package/lib/routes/binance/types.ts +26 -0
- package/lib/routes/bing/daily-wallpaper.ts +1 -1
- package/lib/routes/bitget/announcement.ts +200 -0
- package/lib/routes/bitget/namespace.ts +6 -0
- package/lib/routes/bitget/type.ts +26 -0
- package/lib/routes/bjnews/cat.ts +43 -0
- package/lib/routes/bjnews/column.ts +43 -0
- package/lib/routes/bjnews/namespace.ts +6 -0
- package/lib/routes/bjnews/utils.ts +19 -0
- package/lib/routes/bjx/fd.ts +35 -26
- package/lib/routes/buaa/jiaowu.ts +1 -1
- package/lib/routes/buaa/lib/space/newbook.ts +171 -0
- package/lib/routes/buaa/lib/space/templates/newbook.art +44 -0
- package/lib/routes/bupt/jwc.ts +130 -0
- package/lib/routes/cccfna/index.ts +2 -2
- package/lib/routes/cctv/category.ts +16 -12
- package/lib/routes/cctv/xwlb.ts +32 -10
- package/lib/routes/cdu/jwgg.ts +79 -0
- package/lib/routes/cdu/namespace.ts +6 -0
- package/lib/routes/cffex/announcement.ts +73 -0
- package/lib/routes/cffex/namespace.ts +6 -0
- package/lib/routes/chikubi/index.ts +75 -0
- package/lib/routes/chikubi/namespace.ts +6 -0
- package/lib/routes/chikubi/utils.ts +82 -0
- package/lib/routes/chlinlearn/daily-blog.ts +7 -0
- package/lib/routes/copymanga/comic.ts +3 -1
- package/lib/routes/devolverdigital/blog.ts +59 -42
- package/lib/routes/digitalcameraworld/news.ts +1 -1
- package/lib/routes/discord/channel.ts +10 -10
- package/lib/routes/discord/discord-api.ts +27 -32
- package/lib/routes/discord/templates/message.art +15 -0
- package/lib/routes/discourse/notifications.ts +2 -1
- package/lib/routes/discourse/official.ts +55 -0
- package/lib/routes/douban/movie/coming.ts +68 -0
- package/lib/routes/douban/templates/movie_coming.art +27 -0
- package/lib/routes/eastmoney/report/index.ts +63 -15
- package/lib/routes/eastmoney/templates/stock_description.art +36 -0
- package/lib/routes/eastmoney/utils.ts +35 -0
- package/lib/routes/easynomad/joblist.ts +56 -0
- package/lib/routes/easynomad/namespace.ts +6 -0
- package/lib/routes/fediverse/timeline.ts +35 -18
- package/lib/routes/flashcat/blog.ts +61 -0
- package/lib/routes/flashcat/namespace.ts +6 -0
- package/lib/routes/follow/namespace.ts +6 -0
- package/lib/routes/follow/profile.ts +69 -0
- package/lib/routes/follow/types.ts +38 -0
- package/lib/routes/ftm/index.ts +60 -0
- package/lib/routes/ftm/namespace.ts +6 -0
- package/lib/routes/galxe/index.ts +94 -0
- package/lib/routes/galxe/namespace.ts +9 -0
- package/lib/routes/gamersky/ent.ts +57 -0
- package/lib/routes/gamersky/namespace.ts +10 -0
- package/lib/routes/gamersky/news.ts +91 -0
- package/lib/routes/gamersky/review.ts +80 -0
- package/lib/routes/gamersky/utils.ts +94 -0
- package/lib/routes/gdut/oa-news.ts +12 -17
- package/lib/routes/geekpark/index.ts +219 -0
- package/lib/routes/geekpark/namespace.ts +8 -0
- package/lib/routes/geekpark/templates/description.art +21 -0
- package/lib/routes/gisreportsonline/index.ts +60 -0
- package/lib/routes/gisreportsonline/namespace.ts +6 -0
- package/lib/routes/github/activity.ts +2 -1
- package/lib/routes/github/search.ts +20 -18
- package/lib/routes/go/mhlw/pdf.ts +87 -0
- package/lib/routes/go/namespace.ts +8 -0
- package/lib/routes/go/niid/idwr-dl.ts +104 -0
- package/lib/routes/google/research.ts +45 -0
- package/lib/routes/gov/cbirc/index.ts +371 -0
- package/lib/routes/gov/chongqing/sydwgkzp.ts +4 -4
- package/lib/routes/gov/lswz/index.ts +289 -0
- package/lib/routes/gov/zj/ningbogzw-notice.ts +50 -0
- package/lib/routes/gov/zj/ningborsjnotice.ts +50 -0
- package/lib/routes/gq/news.ts +1 -1
- package/lib/routes/gs/developer/blog.ts +58 -0
- package/lib/routes/gs/namespace.ts +9 -0
- package/lib/routes/healthz.ts +8 -0
- package/lib/routes/hket/index.ts +80 -76
- package/lib/routes/hottoys/index.ts +63 -0
- package/lib/routes/hottoys/namespace.ts +6 -0
- package/lib/routes/hust/gs.ts +281 -0
- package/lib/routes/hust/namespace.ts +1 -1
- package/lib/routes/imhcg/blog.ts +47 -0
- package/lib/routes/imhcg/namespace.ts +7 -0
- package/lib/routes/imop/namespace.ts +10 -0
- package/lib/routes/imop/tianshu.ts +53 -0
- package/lib/routes/infzm/hot.ts +39 -0
- package/lib/routes/infzm/index.ts +3 -30
- package/lib/routes/infzm/utils.ts +34 -0
- package/lib/routes/inspirehep/author.ts +46 -0
- package/lib/routes/inspirehep/literature.ts +42 -0
- package/lib/routes/inspirehep/namespace.ts +7 -0
- package/lib/routes/inspirehep/types.ts +210 -0
- package/lib/routes/inspirehep/utils.ts +15 -0
- package/lib/routes/iwara/subscriptions.ts +1 -1
- package/lib/routes/javdb/actors.ts +6 -2
- package/lib/routes/jjwxc/book.ts +18 -14
- package/lib/routes/joins/chinese.ts +218 -0
- package/lib/routes/joins/namespace.ts +8 -0
- package/lib/routes/joins/templates/description.art +17 -0
- package/lib/routes/juejin/dynamic.ts +114 -0
- package/lib/routes/kakuyomu/namespace.ts +6 -0
- package/lib/routes/kakuyomu/types.ts +6 -0
- package/lib/routes/kakuyomu/works.ts +73 -0
- package/lib/routes/kaopu/news.ts +3 -3
- package/lib/routes/keylol/index.ts +56 -11
- package/lib/routes/kurogames/namespace.ts +7 -0
- package/lib/routes/kurogames/wutheringwaves/news.ts +59 -0
- package/lib/routes/link3/events.ts +86 -0
- package/lib/routes/link3/namespace.ts +6 -0
- package/lib/routes/link3/profile.ts +143 -0
- package/lib/routes/lmu/jobs.ts +96 -0
- package/lib/routes/lmu/namespace.ts +17 -0
- package/lib/routes/lmu/templates/jobPosting.art +11 -0
- package/lib/routes/lofter/user.ts +1 -1
- package/lib/routes/luma/index.ts +92 -0
- package/lib/routes/luma/namespace.ts +6 -0
- package/lib/routes/malaysiakini/index.ts +179 -0
- package/lib/routes/malaysiakini/namespace.ts +11 -0
- package/lib/routes/mcmod/index.ts +105 -0
- package/lib/routes/mcmod/namespace.ts +6 -0
- package/lib/routes/mcmod/templates/mod.art +13 -0
- package/lib/routes/meishichina/index.ts +1997 -0
- package/lib/routes/meishichina/namespace.ts +8 -0
- package/lib/routes/misskey/user-timeline.ts +42 -0
- package/lib/routes/misskey/utils.ts +41 -1
- package/lib/routes/nationalgeographic/latest-stories.ts +1 -1
- package/lib/routes/nationalgeographic/templates/stories.art +1 -1
- package/lib/routes/newyorker/news.ts +24 -17
- package/lib/routes/oschina/news.ts +2 -0
- package/lib/routes/pconline/focus.ts +143 -0
- package/lib/routes/pconline/namespace.ts +10 -0
- package/lib/routes/people/index.ts +8 -2
- package/lib/routes/picnob/user.ts +11 -3
- package/lib/routes/pixiv/search.ts +20 -1
- package/lib/routes/pixiv/utils.ts +3 -3
- package/lib/routes/pku/bbs/hot.ts +1 -1
- package/lib/routes/psyche/topic.ts +1 -1
- package/lib/routes/psyche/type.ts +1 -1
- package/lib/routes/psyche/utils.ts +1 -1
- package/lib/routes/questn/community.ts +76 -0
- package/lib/routes/questn/events.ts +101 -0
- package/lib/routes/questn/namespace.ts +6 -0
- package/lib/routes/questn/util.ts +16 -0
- package/lib/routes/rebase/geekdaily.ts +35 -0
- package/lib/routes/rebase/namespace.ts +6 -0
- package/lib/routes/rss3/index.ts +22 -13
- package/lib/routes/rss3/interfaces/metadata.ts +67 -0
- package/lib/routes/rsshub/routes.ts +18 -12
- package/lib/routes/samd/news.ts +2 -2
- package/lib/routes/sara/index.ts +1 -1
- package/lib/routes/scut/gzic/media.ts +71 -0
- package/lib/routes/scut/gzic/news.ts +65 -0
- package/lib/routes/scut/gzic/notice.ts +88 -0
- package/lib/routes/shiep/config.ts +4 -10
- package/lib/routes/shiep/index.ts +9 -9
- package/lib/routes/showstart/artist.ts +5 -4
- package/lib/routes/showstart/brand.ts +5 -4
- package/lib/routes/showstart/event.ts +8 -7
- package/lib/routes/showstart/search.ts +43 -9
- package/lib/routes/showstart/service.ts +81 -53
- package/lib/routes/showstart/site.ts +41 -0
- package/lib/routes/showstart/utils.ts +9 -8
- package/lib/routes/sis001/author.ts +52 -0
- package/lib/routes/sis001/common.ts +38 -0
- package/lib/routes/sis001/forum.ts +2 -29
- package/lib/routes/sjtu/jwc.ts +4 -1
- package/lib/routes/sjtu/namespace.ts +1 -1
- package/lib/routes/sjtu/seiee/index.ts +97 -0
- package/lib/routes/smzdm/product.ts +86 -0
- package/lib/routes/spotify/show.ts +1 -1
- package/lib/routes/springer/journal.ts +10 -12
- package/lib/routes/sse/sselawsrules.ts +370 -0
- package/lib/routes/sspai/author.ts +1 -1
- package/lib/routes/sspai/column.ts +1 -1
- package/lib/routes/sspai/index.ts +3 -3
- package/lib/routes/sspai/matrix.ts +1 -1
- package/lib/routes/sspai/series-update.ts +1 -1
- package/lib/routes/sspai/tag.ts +1 -1
- package/lib/routes/sspai/topic.ts +1 -1
- package/lib/routes/sustainabilitymag/articles.ts +2 -0
- package/lib/routes/szse/rule.ts +315 -42
- package/lib/routes/t66y/index.ts +29 -7
- package/lib/routes/taoguba/blog.ts +1 -1
- package/lib/routes/taoguba/index.ts +1 -1
- package/lib/routes/techcrunch/news.ts +20 -29
- package/lib/routes/techcrunch/templates/description.art +7 -0
- package/lib/routes/telegram/channel.ts +34 -1
- package/lib/routes/test/index.ts +50 -43
- package/lib/routes/the/index.ts +211 -0
- package/lib/routes/the/namespace.ts +8 -0
- package/lib/routes/the/templates/description.art +27 -0
- package/lib/routes/the/util.ts +307 -0
- package/lib/routes/theblockbeats/index.ts +10 -5
- package/lib/routes/towardsdatascience/latest.ts +67 -0
- package/lib/routes/towardsdatascience/namespace.ts +6 -0
- package/lib/routes/tvb/news.ts +1 -0
- package/lib/routes/twitter/api/index.ts +2 -0
- package/lib/routes/twitter/api/mobile-api/login.ts +1 -1
- package/lib/routes/twitter/api/web-api/api.ts +18 -0
- package/lib/routes/twitter/api/web-api/constants.ts +16 -13
- package/lib/routes/twitter/api/web-api/login.ts +68 -0
- package/lib/routes/twitter/api/web-api/utils.ts +54 -29
- package/lib/routes/twitter/home-latest.ts +60 -0
- package/lib/routes/twitter/home.ts +1 -1
- package/lib/routes/twitter/tweet.ts +1 -0
- package/lib/routes/twitter/user.ts +1 -1
- package/lib/routes/twitter/utils.ts +4 -1
- package/lib/routes/uber/blog.ts +1 -1
- package/lib/routes/ustc/scms.ts +97 -0
- package/lib/routes/wchscu/namespace.ts +6 -0
- package/lib/routes/wchscu/recruit.ts +73 -0
- package/lib/routes/weibo/super-index.ts +23 -11
- package/lib/routes/weibo/utils.ts +0 -4
- package/lib/routes/xiaohongshu/notes.ts +10 -2
- package/lib/routes/xiaohongshu/user.ts +27 -5
- package/lib/routes/xiaohongshu/util.ts +3 -1
- package/lib/routes/xidian/cs.ts +143 -0
- package/lib/routes/xidian/gr.ts +289 -0
- package/lib/routes/xidian/jwc.ts +1 -0
- package/lib/routes/xidian/namespace.ts +1 -1
- package/lib/routes/xueqiu/cookies.ts +14 -1
- package/lib/routes/xueqiu/favorite.ts +16 -2
- package/lib/routes/yahoo/news/index.ts +1 -0
- package/lib/routes/yahoo/news/listid.ts +67 -0
- package/lib/routes/yahoo/news/utils.ts +8 -2
- package/lib/routes/yicai/carousel.ts +48 -0
- package/lib/routes/yicai/utils.ts +23 -17
- package/lib/routes/youtube/subscriptions.ts +1 -0
- package/lib/routes/yystv/docs.ts +28 -19
- package/lib/routes/zaobao/util.ts +1 -1
- package/lib/routes/zhihu/answers.ts +5 -1
- package/lib/routes/zhihu/execlib/x-zse-96-v3.ts +2 -0
- package/lib/routes/zhihu/namespace.ts +3 -0
- package/lib/routes/zhihu/utils.ts +18 -3
- package/lib/routes/zhihu/zhuanlan.ts +8 -7
- package/lib/routes/zsxq/types.ts +9 -0
- package/lib/routes/zsxq/utils.ts +4 -3
- package/lib/setup.test.ts +1 -1
- package/lib/types.ts +6 -0
- package/lib/utils/cache/index.ts +8 -0
- package/lib/utils/camelcase-keys.spec.ts +127 -0
- package/lib/utils/camelcase-keys.ts +27 -0
- package/lib/utils/common-utils.ts +1 -0
- package/lib/utils/otel/metric.ts +3 -2
- package/lib/views/error.tsx +3 -3
- package/lib/views/index.tsx +7 -9
- package/lib/views/json.ts +1 -1
- package/lib/views/layout.tsx +1 -1
- package/package.json +45 -43
- package/lib/routes/sse/lawandrules.ts +0 -68
- package/lib/routes-deprecated/bjnews/news.js +0 -44
- package/lib/routes-deprecated/gamersky/ent.js +0 -89
- package/lib/routes-deprecated/gamersky/news.js +0 -34
- package/lib/routes-deprecated/geekpark/breakingnews.js +0 -25
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { Route } from '@/types';
|
|
2
|
+
|
|
3
|
+
import got from '@/utils/got';
|
|
4
|
+
import { load } from 'cheerio';
|
|
5
|
+
|
|
6
|
+
export const handler = async (ctx) => {
|
|
7
|
+
const { category = 'stf/seisakunitsuite/bunya/houkokusuunosuii' } = ctx.req.param();
|
|
8
|
+
const limit = ctx.req.query('limit') ? Number.parseInt(ctx.req.query('limit'), 10) : 30;
|
|
9
|
+
|
|
10
|
+
const rootUrl = 'https://www.mhlw.go.jp';
|
|
11
|
+
const currentUrl = new URL(category.endsWith('.html') ? category : `${category}.html`, rootUrl).href;
|
|
12
|
+
|
|
13
|
+
const { data: response } = await got(currentUrl);
|
|
14
|
+
|
|
15
|
+
const $ = load(response);
|
|
16
|
+
|
|
17
|
+
const language = $('html').prop('lang');
|
|
18
|
+
|
|
19
|
+
const items = $('a[data-icon="pdf"]')
|
|
20
|
+
.slice(0, limit)
|
|
21
|
+
.toArray()
|
|
22
|
+
.map((item) => {
|
|
23
|
+
item = $(item);
|
|
24
|
+
|
|
25
|
+
const title = item.find('font').text() || item.text();
|
|
26
|
+
const link = new URL(item.prop('href'), rootUrl).href;
|
|
27
|
+
|
|
28
|
+
return {
|
|
29
|
+
title,
|
|
30
|
+
link,
|
|
31
|
+
language,
|
|
32
|
+
enclosure_url: link,
|
|
33
|
+
enclosure_type: link ? 'application/pdf' : undefined,
|
|
34
|
+
enclosure_title: title,
|
|
35
|
+
};
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
const image = new URL($('div.m-headerLogo img').first().prop('src'), rootUrl).href;
|
|
39
|
+
|
|
40
|
+
return {
|
|
41
|
+
title: $('title').text(),
|
|
42
|
+
description: $('meta[property="og:description"]').prop('content'),
|
|
43
|
+
link: currentUrl,
|
|
44
|
+
item: items,
|
|
45
|
+
allowEmpty: true,
|
|
46
|
+
image,
|
|
47
|
+
author: $('meta[property="og:site_name"]').prop('content'),
|
|
48
|
+
language,
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
export const route: Route = {
|
|
53
|
+
path: '/mhlw/pdf/:category{.+}?',
|
|
54
|
+
name: 'PDF',
|
|
55
|
+
url: 'www.mhlw.go.jp',
|
|
56
|
+
maintainers: ['nczitzk'],
|
|
57
|
+
handler,
|
|
58
|
+
example: '/go/mhlw/pdf/stf/seisakunitsuite/bunya/houkokusuunosuii',
|
|
59
|
+
parameters: { category: 'Category, `stf/seisakunitsuite/bunya/houkokusuunosuii` as 新型コロナウイルス感染症の定点当たり報告数の推移 by default' },
|
|
60
|
+
description: `:::tip
|
|
61
|
+
Subscribing to this route will give you access to all PDF files on this page.
|
|
62
|
+
|
|
63
|
+
If you subscribe to [新型コロナウイルス感染症の定点当たり報告数の推移](https://www.mhlw.go.jp/stf/seisakunitsuite/bunya/houkokusuunosuii.html),where the URL is \`https://www.mhlw.go.jp/stf/seisakunitsuite/bunya/houkokusuunosuii.html\`, extract the part \`https://www.mhlw.go.jp/\` to the end, which is \`.html\`, and use it as the parameter to fill in. Therefore, the route will be [\`/go/mhlw/stf/seisakunitsuite/bunya/houkokusuunosuii\`](https://rsshub.app/go/mhlw/stf/seisakunitsuite/bunya/houkokusuunosuii).
|
|
64
|
+
:::
|
|
65
|
+
`,
|
|
66
|
+
categories: ['government'],
|
|
67
|
+
|
|
68
|
+
features: {
|
|
69
|
+
requireConfig: false,
|
|
70
|
+
requirePuppeteer: false,
|
|
71
|
+
antiCrawler: false,
|
|
72
|
+
supportRadar: true,
|
|
73
|
+
supportBT: false,
|
|
74
|
+
supportPodcast: false,
|
|
75
|
+
supportScihub: false,
|
|
76
|
+
},
|
|
77
|
+
radar: [
|
|
78
|
+
{
|
|
79
|
+
source: ['www.mhlw.go.jp'],
|
|
80
|
+
target: (_, url) => {
|
|
81
|
+
const category = new URL(url).href.match(/mhlw\.go\.jp\/(.*)$/)?.[1] ?? undefined;
|
|
82
|
+
|
|
83
|
+
return `/mhlw/pdf${category ? `/${category}` : ''}`;
|
|
84
|
+
},
|
|
85
|
+
},
|
|
86
|
+
],
|
|
87
|
+
};
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { Route } from '@/types';
|
|
2
|
+
|
|
3
|
+
import got from '@/utils/got';
|
|
4
|
+
import { load } from 'cheerio';
|
|
5
|
+
import timezone from '@/utils/timezone';
|
|
6
|
+
import { parseDate } from '@/utils/parse-date';
|
|
7
|
+
|
|
8
|
+
export const handler = async (ctx) => {
|
|
9
|
+
const { year = new Date().getFullYear() } = ctx.req.param();
|
|
10
|
+
const limit = ctx.req.query('limit') ? Number.parseInt(ctx.req.query('limit'), 10) : 52;
|
|
11
|
+
|
|
12
|
+
const rootUrl = 'https://www.niid.go.jp';
|
|
13
|
+
const currentUrl = new URL(`niid/ja/idwr-dl/${year}.html`, rootUrl).href;
|
|
14
|
+
|
|
15
|
+
const { data: response } = await got(currentUrl);
|
|
16
|
+
|
|
17
|
+
const $ = load(response);
|
|
18
|
+
|
|
19
|
+
const language = $('html').prop('lang');
|
|
20
|
+
|
|
21
|
+
const items = $('div.items-row')
|
|
22
|
+
.slice(0, limit)
|
|
23
|
+
.toArray()
|
|
24
|
+
.map((item) => {
|
|
25
|
+
item = $(item);
|
|
26
|
+
|
|
27
|
+
item.find('div.item-separator').remove();
|
|
28
|
+
|
|
29
|
+
const title = item.find('div.item p').first().text();
|
|
30
|
+
const description = item.find('div.item').html();
|
|
31
|
+
const link = item.find('p.body1 a').prop('href');
|
|
32
|
+
|
|
33
|
+
return {
|
|
34
|
+
title,
|
|
35
|
+
description,
|
|
36
|
+
pubDate: parseDate(
|
|
37
|
+
item
|
|
38
|
+
.find('p.contents')
|
|
39
|
+
.text()
|
|
40
|
+
.match(/(\d{4}年\d{1,2}月\d{1,2}日)発行/)?.[1] ??
|
|
41
|
+
title.match(/(\d{4})年/)?.[1] ??
|
|
42
|
+
year,
|
|
43
|
+
['YYYY年M月D日', 'YYYY']
|
|
44
|
+
),
|
|
45
|
+
link,
|
|
46
|
+
content: {
|
|
47
|
+
html: description,
|
|
48
|
+
text: item.find('div.item').text(),
|
|
49
|
+
},
|
|
50
|
+
updated: timezone(parseDate(item.find('.time').prop('datetime')), +8),
|
|
51
|
+
language,
|
|
52
|
+
enclosure_url: link,
|
|
53
|
+
enclosure_type: link ? `application/${link.split(/\./).pop()}` : undefined,
|
|
54
|
+
enclosure_title: link ? title : undefined,
|
|
55
|
+
};
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
const image = new URL('niid/templates/gk_memovie/images/main_header.jpg', rootUrl).href;
|
|
59
|
+
|
|
60
|
+
return {
|
|
61
|
+
title: `感染症発生動向調査週報ダウンロード${$('title').text()}`,
|
|
62
|
+
description: '感染症発生動向調査週報ダウンロード',
|
|
63
|
+
link: currentUrl,
|
|
64
|
+
item: items,
|
|
65
|
+
allowEmpty: true,
|
|
66
|
+
image,
|
|
67
|
+
author: 'NIID国立感染症研究所',
|
|
68
|
+
language,
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
export const route: Route = {
|
|
73
|
+
path: '/niid/idwr-dl/:year?',
|
|
74
|
+
name: '感染症発生動向調査週報ダウンロード',
|
|
75
|
+
url: 'www.niid.go.jp',
|
|
76
|
+
maintainers: ['nczitzk'],
|
|
77
|
+
handler,
|
|
78
|
+
example: '/go/niid/idwr-dl/:year?',
|
|
79
|
+
parameters: { year: 'Year, current year by default' },
|
|
80
|
+
description: `:::tip
|
|
81
|
+
If you subscribe to [感染症発生動向調査週報ダウンロード2024年](https://www.niid.go.jp/niid/ja/idwr-dl/2024.html),where the URL is \`https://www.niid.go.jp/niid/ja/idwr-dl/2024.html\`, extract the part \`https://www.niid.go.jp/niid/ja/idwr-dl/\` to the end, which is \`.html\`, and use it as the parameter to fill in. Therefore, the route will be [\`/go/niid/idwr-dl/2024\`](https://rsshub.app/go/niid/idwr-dl/2024).
|
|
82
|
+
:::`,
|
|
83
|
+
categories: ['government'],
|
|
84
|
+
|
|
85
|
+
features: {
|
|
86
|
+
requireConfig: false,
|
|
87
|
+
requirePuppeteer: false,
|
|
88
|
+
antiCrawler: false,
|
|
89
|
+
supportRadar: true,
|
|
90
|
+
supportBT: false,
|
|
91
|
+
supportPodcast: false,
|
|
92
|
+
supportScihub: false,
|
|
93
|
+
},
|
|
94
|
+
radar: [
|
|
95
|
+
{
|
|
96
|
+
source: ['www.niid.go.jp/niid/ja/idwr-dl/:year'],
|
|
97
|
+
target: (params) => {
|
|
98
|
+
const year = params.year;
|
|
99
|
+
|
|
100
|
+
return `/niid/idwr-dl/${year ? `/${year}` : ''}`;
|
|
101
|
+
},
|
|
102
|
+
},
|
|
103
|
+
],
|
|
104
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { Route } from '@/types';
|
|
2
|
+
import ofetch from '@/utils/ofetch';
|
|
3
|
+
import { load } from 'cheerio';
|
|
4
|
+
import { parseDate } from '@/utils/parse-date';
|
|
5
|
+
|
|
6
|
+
const baseUrl = 'https://research.google';
|
|
7
|
+
|
|
8
|
+
export const route: Route = {
|
|
9
|
+
path: '/research',
|
|
10
|
+
categories: ['blog'],
|
|
11
|
+
example: '/google/research',
|
|
12
|
+
name: 'Research Blog',
|
|
13
|
+
maintainers: ['Levix'],
|
|
14
|
+
radar: [
|
|
15
|
+
{
|
|
16
|
+
source: ['research.google'],
|
|
17
|
+
},
|
|
18
|
+
],
|
|
19
|
+
handler: async () => {
|
|
20
|
+
const response = await ofetch(`${baseUrl}/blog`);
|
|
21
|
+
const $ = load(response);
|
|
22
|
+
const items = $('div.js-configurable-list .blog-posts-grid__cards .glue-grid__col')
|
|
23
|
+
.toArray()
|
|
24
|
+
.map((eleItem) => {
|
|
25
|
+
const item = $(eleItem);
|
|
26
|
+
const a = item.find('a').first();
|
|
27
|
+
return {
|
|
28
|
+
title: a.find('.headline-5').text(),
|
|
29
|
+
link: `${baseUrl}${a.attr('href')}`,
|
|
30
|
+
pubDate: parseDate(item.find('.glue-label.glue-spacer-1-bottom').text()),
|
|
31
|
+
author: 'Google',
|
|
32
|
+
category: item
|
|
33
|
+
.find('.not-glue.caption')
|
|
34
|
+
.toArray()
|
|
35
|
+
.map((item) => $(item).text().replace('·', '').trim()),
|
|
36
|
+
};
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
return {
|
|
40
|
+
title: 'Google Research Blog',
|
|
41
|
+
link: `${baseUrl}/blog`,
|
|
42
|
+
item: items,
|
|
43
|
+
};
|
|
44
|
+
},
|
|
45
|
+
};
|
|
@@ -0,0 +1,371 @@
|
|
|
1
|
+
import { Route } from '@/types';
|
|
2
|
+
|
|
3
|
+
import cache from '@/utils/cache';
|
|
4
|
+
import got from '@/utils/got';
|
|
5
|
+
import { load } from 'cheerio';
|
|
6
|
+
import timezone from '@/utils/timezone';
|
|
7
|
+
import { parseDate } from '@/utils/parse-date';
|
|
8
|
+
|
|
9
|
+
export const handler = async (ctx) => {
|
|
10
|
+
const { id = '915' } = ctx.req.param();
|
|
11
|
+
const limit = ctx.req.query('limit') ? Number.parseInt(ctx.req.query('limit'), 10) : 18;
|
|
12
|
+
|
|
13
|
+
const rootUrl = 'https://www.cbirc.gov.cn';
|
|
14
|
+
const apiUrl = new URL(`cn/static/data/DocInfo/SelectDocByItemIdAndChild/data_itemId=${id},pageIndex=1,pageSize=18.json`, rootUrl).href;
|
|
15
|
+
const apiBreadUrl = new URL(`cn/static/data/item/getItemBread/data_itemId=${id}.json`, rootUrl).href;
|
|
16
|
+
|
|
17
|
+
const { data: breadResponse } = await got(apiBreadUrl);
|
|
18
|
+
|
|
19
|
+
const item = breadResponse.data.find((b) => String(b.itemId) === id);
|
|
20
|
+
|
|
21
|
+
const currentUrl = new URL(`cn/view/pages/ItemList.html?itemPId=${item.itemPid}&itemId=${id}&itemUrl=ItemListRightList.html`, rootUrl).href;
|
|
22
|
+
|
|
23
|
+
const { data: response } = await got(apiUrl);
|
|
24
|
+
|
|
25
|
+
let items = response.data.rows.slice(0, limit).map((item) => {
|
|
26
|
+
const title = item.docTitle;
|
|
27
|
+
const description = item.docSubtitle;
|
|
28
|
+
const guid = item.docId;
|
|
29
|
+
|
|
30
|
+
return {
|
|
31
|
+
title,
|
|
32
|
+
description,
|
|
33
|
+
pubDate: timezone(parseDate(item.publishDate), +8),
|
|
34
|
+
link: new URL(`cn/view/pages/ItemDetail.html?docId=${guid}`, rootUrl).href,
|
|
35
|
+
guid,
|
|
36
|
+
id: guid,
|
|
37
|
+
content: {
|
|
38
|
+
html: description,
|
|
39
|
+
text: description,
|
|
40
|
+
},
|
|
41
|
+
enclosure_url: new URL(item.pdfFileUrl, rootUrl).href,
|
|
42
|
+
enclosure_type: 'application/pdf',
|
|
43
|
+
enclosure_title: title,
|
|
44
|
+
};
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
items = await Promise.all(
|
|
48
|
+
items.map((item) =>
|
|
49
|
+
cache.tryGet(item.link, async () => {
|
|
50
|
+
const apiDocUrl = new URL(`cn/static/data/DocInfo/SelectByDocId/data_docId=${item.guid}.json`, rootUrl).href;
|
|
51
|
+
|
|
52
|
+
const { data: detailResponse } = await got(apiDocUrl);
|
|
53
|
+
|
|
54
|
+
const data = detailResponse.data;
|
|
55
|
+
|
|
56
|
+
const $$ = load(data.docClob);
|
|
57
|
+
|
|
58
|
+
const title = data.docTitle;
|
|
59
|
+
const description = $$('div.Section0').html();
|
|
60
|
+
|
|
61
|
+
item.title = title;
|
|
62
|
+
item.description = description;
|
|
63
|
+
item.pubDate = timezone(parseDate(data.publishDate), +8);
|
|
64
|
+
item.category = data.listTwoItem?.[0]?.ItemLvs.map((c) => c.itemName);
|
|
65
|
+
item.author = data.docSource;
|
|
66
|
+
item.guid = `cbirc-${item.guid}`;
|
|
67
|
+
item.id = item.guid;
|
|
68
|
+
item.content = {
|
|
69
|
+
html: description,
|
|
70
|
+
text: $$('div.Section0').text(),
|
|
71
|
+
};
|
|
72
|
+
item.updated = parseDate(data.docEditdate);
|
|
73
|
+
item.language = $$('html').prop('lang');
|
|
74
|
+
|
|
75
|
+
return item;
|
|
76
|
+
})
|
|
77
|
+
)
|
|
78
|
+
);
|
|
79
|
+
|
|
80
|
+
const { data: currentResponse } = await got(currentUrl);
|
|
81
|
+
|
|
82
|
+
const $ = load(currentResponse);
|
|
83
|
+
|
|
84
|
+
$('a.lyxd').remove();
|
|
85
|
+
|
|
86
|
+
const language = $('html').prop('lang');
|
|
87
|
+
|
|
88
|
+
const image = new URL($('div.header-left img').prop('src'), rootUrl).href;
|
|
89
|
+
|
|
90
|
+
return {
|
|
91
|
+
title: `${$('title').text()} - ${item.itemName}`,
|
|
92
|
+
description: item.desc,
|
|
93
|
+
link: currentUrl,
|
|
94
|
+
item: items,
|
|
95
|
+
allowEmpty: true,
|
|
96
|
+
image,
|
|
97
|
+
author: item.type,
|
|
98
|
+
language,
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
export const route: Route = {
|
|
103
|
+
path: '/cbirc/:id?',
|
|
104
|
+
name: '分类',
|
|
105
|
+
url: 'www.cbirc.gov.cn',
|
|
106
|
+
maintainers: ['nczitzk'],
|
|
107
|
+
handler,
|
|
108
|
+
example: '/gov/cbirc/:id?',
|
|
109
|
+
parameters: { category: '分类,默认为监管动态,即 915,可在对应分类页 URL 中找到' },
|
|
110
|
+
description: `:::tip
|
|
111
|
+
若订阅 [监管动态](https://www.cbirc.gov.cn/cn/view/pages/ItemList.html?itemId=915&itemUrl=ItemListRightList.html),网址为 \`https://www.cbirc.gov.cn/cn/view/pages/ItemList.html?itemId=915&itemUrl=ItemListRightList.html\`。截取 \`itemId\` 的值 \`915\` 作为参数填入,此时路由为 [\`/gov/cbirc/915\`](https://rsshub.app/gov/cbirc/915)。
|
|
112
|
+
:::
|
|
113
|
+
|
|
114
|
+
#### [首页](https://www.cbirc.gov.cn/cn/view/pages/ItemList.html?itemPId=899&itemId=971&itemUrl=ItemListRightMore.html)
|
|
115
|
+
|
|
116
|
+
| [弹出公告](https://www.cbirc.gov.cn/cn/view/pages/ItemList.html?itemPId=971&itemId=972&itemUrl=sss) | [法律声明](https://www.cbirc.gov.cn/cn/view/pages/ItemList.html?itemPId=971&itemId=4128&itemUrl=ItemListRightArticle.html) |
|
|
117
|
+
| --------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- |
|
|
118
|
+
| [972](https://rsshub.app/gov/cbirc/972) | [4128](https://rsshub.app/gov/cbirc/4128) |
|
|
119
|
+
|
|
120
|
+
#### [机构概况](https://www.cbirc.gov.cn/cn/view/pages/jigougaikuang/jigougaikuang.html)
|
|
121
|
+
|
|
122
|
+
| [主要职责](https://www.cbirc.gov.cn/cn/view/pages/ItemList.html?itemPId=900&itemId=901&itemUrl=ItemListRightArticle.html) | [总局领导](https://www.cbirc.gov.cn/cn/view/pages/ItemList.html?itemPId=900&itemId=902&itemUrl=jigougaikuang/huilingdao.html) | [内设机构](https://www.cbirc.gov.cn/cn/view/pages/ItemList.html?itemPId=900&itemId=911&itemUrl=jigougaikuang/neishejigou.html) | [直属行政机构](https://www.cbirc.gov.cn/cn/view/pages/ItemList.html?itemPId=900&itemId=4243&itemUrl=jigougaikuang/zhishuxingzhengjigou.html) | [派出机构](https://www.cbirc.gov.cn/cn/view/pages/ItemList.html?itemPId=900&itemId=912&itemUrl=jigougaikuang/paichujigou.html) |
|
|
123
|
+
| ------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------ |
|
|
124
|
+
| [901](https://rsshub.app/gov/cbirc/901) | [902](https://rsshub.app/gov/cbirc/902) | [911](https://rsshub.app/gov/cbirc/911) | [4243](https://rsshub.app/gov/cbirc/4243) | [912](https://rsshub.app/gov/cbirc/912) |
|
|
125
|
+
|
|
126
|
+
| [联系方式](https://www.cbirc.gov.cn/cn/view/pages/ItemList.html?itemPId=900&itemId=913&itemUrl=jigougaikuang/lianxifangshi.html) |
|
|
127
|
+
| -------------------------------------------------------------------------------------------------------------------------------- |
|
|
128
|
+
| [913](https://rsshub.app/gov/cbirc/913) |
|
|
129
|
+
|
|
130
|
+
#### [新闻资讯](https://www.cbirc.gov.cn/cn/view/pages/xinwenzixun/xinwenzixun.html)
|
|
131
|
+
|
|
132
|
+
| [监管动态](https://www.cbirc.gov.cn/cn/view/pages/ItemList.html?itemPId=914&itemId=915&itemUrl=ItemListRightList.html) | [政策解读](https://www.cbirc.gov.cn/cn/view/pages/ItemList.html?itemPId=914&itemId=916&itemUrl=ItemListRightMore.html) | [领导活动及讲话](https://www.cbirc.gov.cn/cn/view/pages/ItemList.html?itemPId=914&itemId=919&itemUrl=ItemListRightList.html) | [新闻发布会及访谈](https://www.cbirc.gov.cn/cn/view/pages/ItemList.html?itemPId=914&itemId=920&itemUrl=xinwenzixun/xinwenfabu.html) | [新闻发言人](https://www.cbirc.gov.cn/cn/view/pages/ItemList.html?itemPId=914&itemId=921&itemUrl=xinwenzixun/xinwenfayan.html) |
|
|
133
|
+
| ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------ |
|
|
134
|
+
| [915](https://rsshub.app/gov/cbirc/915) | [916](https://rsshub.app/gov/cbirc/916) | [919](https://rsshub.app/gov/cbirc/919) | [920](https://rsshub.app/gov/cbirc/920) | [921](https://rsshub.app/gov/cbirc/921) |
|
|
135
|
+
|
|
136
|
+
#### [政务信息](https://www.cbirc.gov.cn/cn/view/pages/zhengwuxinxi/zhengwuxinxi.html)
|
|
137
|
+
|
|
138
|
+
| [政府信息公开](https://www.cbirc.gov.cn/cn/view/pages/zhengwuxinxi/zhengfuxinxi.html) | [公告通知](https://www.cbirc.gov.cn/cn/view/pages/ItemList.html?itemPId=923&itemId=925&itemUrl=ItemListRightList.html) | [政策法规](https://www.cbirc.gov.cn/cn/view/pages/ItemList.html?itemPId=923&itemId=926&itemUrl=ItemListRightMore.html) | [行政许可](https://www.cbirc.gov.cn/cn/view/pages/ItemList.html?itemPId=923&itemId=930&itemUrl=zhengwuxinxi/xingzhengxuke.html) | [行政处罚](https://www.cbirc.gov.cn/cn/view/pages/ItemList.html?itemPId=923&itemId=931&itemUrl=zhengwuxinxi/xingzhengchufa.html) |
|
|
139
|
+
| ------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- |
|
|
140
|
+
| [924](https://rsshub.app/gov/cbirc/924) | [925](https://rsshub.app/gov/cbirc/925) | [926](https://rsshub.app/gov/cbirc/926) | [930](https://rsshub.app/gov/cbirc/930) | [931](https://rsshub.app/gov/cbirc/931) |
|
|
141
|
+
|
|
142
|
+
| [行政监管措施](https://www.cbirc.gov.cn/cn/view/pages/ItemList.html?itemPId=923&itemId=932&itemUrl=ItemListRightList.html) | [人事信息](https://www.cbirc.gov.cn/cn/view/pages/ItemList.html?itemPId=923&itemId=933&itemUrl=ItemListRightList.html) |
|
|
143
|
+
| -------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- |
|
|
144
|
+
| [932](https://rsshub.app/gov/cbirc/932) | [933](https://rsshub.app/gov/cbirc/933) |
|
|
145
|
+
|
|
146
|
+
#### [在线服务](https://www.cbirc.gov.cn/cn/view/pages/zaixianfuwu/zaixianfuwu.html)
|
|
147
|
+
|
|
148
|
+
| [行政许可办事服务指南](https://www.cbirc.gov.cn/cn/view/pages/ItemList.html?itemPId=937&itemId=938&itemUrl=zaixianfuwu/banshifuwu.html) | [查询服务](https://www.cbirc.gov.cn/cn/view/pages/ItemList.html?itemPId=937&itemId=939&itemUrl=zaixianfuwu/chaxunfuwu.html) |
|
|
149
|
+
| --------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- |
|
|
150
|
+
| [938](https://rsshub.app/gov/cbirc/938) | [939](https://rsshub.app/gov/cbirc/939) |
|
|
151
|
+
|
|
152
|
+
#### [互动交流](https://www.cbirc.gov.cn/cn/view/pages/hudongjiaoliu/hudongjiaoliu.html)
|
|
153
|
+
|
|
154
|
+
| [政务咨询](https://www.cbirc.gov.cn/cn/view/pages/ItemList.html?itemPId=945&itemId=946&itemUrl=tosubmenu:hudongjiaoliu/woyaozixun.html) | [征集调查](https://www.cbirc.gov.cn/cn/view/pages/ItemList.html?itemPId=945&itemId=950&itemUrl=ItemListRightMore.html) | [国务院办公厅开通“国家政务服务投诉与建议”小程序](https://www.cbirc.gov.cn/cn/view/pages/ItemList.html?itemPId=945&itemId=952&itemUrl=http://www.gov.cn/xinwen/2018-09/20/content_5323786.htm) |
|
|
155
|
+
| --------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
156
|
+
| [946](https://rsshub.app/gov/cbirc/946) | [950](https://rsshub.app/gov/cbirc/950) | [952](https://rsshub.app/gov/cbirc/952) |
|
|
157
|
+
|
|
158
|
+
#### [统计数据](https://www.cbirc.gov.cn/cn/view/pages/tongjishuju/tongjishuju.html)
|
|
159
|
+
|
|
160
|
+
| [统计信息](https://www.cbirc.gov.cn/cn/view/pages/ItemList.html?itemPId=953&itemId=954&itemUrl=ItemListRightList.html) | [数据图表](https://www.cbirc.gov.cn/cn/view/pages/ItemList.html?itemPId=953&itemId=955&itemUrl=tosubmenu:tongjishuju/zongzichan.html) |
|
|
161
|
+
| ---------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- |
|
|
162
|
+
| [954](https://rsshub.app/gov/cbirc/954) | [955](https://rsshub.app/gov/cbirc/955) |
|
|
163
|
+
|
|
164
|
+
#### [专题专栏](https://www.cbirc.gov.cn/cn/view/pages/zhuantizhuanlan/zhuantizhuanlan.html)
|
|
165
|
+
|
|
166
|
+
| [推进普惠金融高质量发展](https://www.cbirc.gov.cn/cn/view/pages/ItemList.html?itemPId=960&itemId=4234&itemUrl=ItemListRightMore.html) | [防范和处置非法集资](https://www.cbirc.gov.cn/cn/view/pages/ItemList.html?itemPId=960&itemId=963&itemUrl=ItemListRightMore.html) | [消费者保护](https://www.cbirc.gov.cn/cn/view/pages/ItemList.html?itemPId=960&itemId=4097&itemUrl=ItemListRightMore.html) | [法治宣传](https://www.cbirc.gov.cn/cn/view/pages/ItemList.html?itemPId=960&itemId=4106&itemUrl=ItemListRightMore.html) | [政府网站年度报表](https://www.cbirc.gov.cn/cn/view/pages/ItemList.html?itemPId=960&itemId=970&itemUrl=ItemListRightList.html) |
|
|
167
|
+
| ------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------ |
|
|
168
|
+
| [4234](https://rsshub.app/gov/cbirc/4234) | [963](https://rsshub.app/gov/cbirc/963) | [4097](https://rsshub.app/gov/cbirc/4097) | [4106](https://rsshub.app/gov/cbirc/4106) | [970](https://rsshub.app/gov/cbirc/970) |
|
|
169
|
+
|
|
170
|
+
| [服务民营企业](https://www.cbirc.gov.cn/cn/view/pages/ItemList.html?itemPId=960&itemId=4171&itemUrl=ItemListRightList.html) | [服务制造业发展](https://www.cbirc.gov.cn/cn/view/pages/ItemList.html?itemPId=960&itemId=4217&itemUrl=ItemListRightList.html) | [学习贯彻习近平新时代中国特色社会主义思想主题教育](https://www.cbirc.gov.cn/cn/view/pages/ItemList.html?itemPId=960&itemId=4229&itemUrl=ItemListRightMore.html) |
|
|
171
|
+
| --------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
172
|
+
| [4171](https://rsshub.app/gov/cbirc/4171) | [4217](https://rsshub.app/gov/cbirc/4217) | [4229](https://rsshub.app/gov/cbirc/4229) |
|
|
173
|
+
`,
|
|
174
|
+
categories: ['government'],
|
|
175
|
+
|
|
176
|
+
features: {
|
|
177
|
+
requireConfig: false,
|
|
178
|
+
requirePuppeteer: false,
|
|
179
|
+
antiCrawler: false,
|
|
180
|
+
supportRadar: true,
|
|
181
|
+
supportBT: false,
|
|
182
|
+
supportPodcast: false,
|
|
183
|
+
supportScihub: false,
|
|
184
|
+
},
|
|
185
|
+
radar: [
|
|
186
|
+
{
|
|
187
|
+
source: ['www.cbirc.gov.cn/:id?'],
|
|
188
|
+
target: (_, url) => {
|
|
189
|
+
url = new URL(url);
|
|
190
|
+
const id = url.searchParams.get('itemId');
|
|
191
|
+
|
|
192
|
+
return `/gov/cbirc${id ? `/${id}` : ''}`;
|
|
193
|
+
},
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
title: '首页 - 弹出公告',
|
|
197
|
+
source: ['www.cbirc.gov.cn/cn/view/pages/ItemList.html?itemPId=971&itemId=972&itemUrl=sss'],
|
|
198
|
+
target: '/cbirc/972',
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
title: '首页 - 法律声明',
|
|
202
|
+
source: ['www.cbirc.gov.cn/cn/view/pages/ItemList.html?itemPId=971&itemId=4128&itemUrl=ItemListRightArticle.html'],
|
|
203
|
+
target: '/cbirc/4128',
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
title: '机构概况 - 主要职责',
|
|
207
|
+
source: ['www.cbirc.gov.cn/cn/view/pages/ItemList.html?itemPId=900&itemId=901&itemUrl=ItemListRightArticle.html'],
|
|
208
|
+
target: '/cbirc/901',
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
title: '机构概况 - 总局领导',
|
|
212
|
+
source: ['www.cbirc.gov.cn/cn/view/pages/ItemList.html?itemPId=900&itemId=902&itemUrl=jigougaikuang/huilingdao.html'],
|
|
213
|
+
target: '/cbirc/902',
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
title: '机构概况 - 内设机构',
|
|
217
|
+
source: ['www.cbirc.gov.cn/cn/view/pages/ItemList.html?itemPId=900&itemId=911&itemUrl=jigougaikuang/neishejigou.html'],
|
|
218
|
+
target: '/cbirc/911',
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
title: '机构概况 - 直属行政机构',
|
|
222
|
+
source: ['www.cbirc.gov.cn/cn/view/pages/ItemList.html?itemPId=900&itemId=4243&itemUrl=jigougaikuang/zhishuxingzhengjigou.html'],
|
|
223
|
+
target: '/cbirc/4243',
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
title: '机构概况 - 派出机构',
|
|
227
|
+
source: ['www.cbirc.gov.cn/cn/view/pages/ItemList.html?itemPId=900&itemId=912&itemUrl=jigougaikuang/paichujigou.html'],
|
|
228
|
+
target: '/cbirc/912',
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
title: '机构概况 - 联系方式',
|
|
232
|
+
source: ['www.cbirc.gov.cn/cn/view/pages/ItemList.html?itemPId=900&itemId=913&itemUrl=jigougaikuang/lianxifangshi.html'],
|
|
233
|
+
target: '/cbirc/913',
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
title: '新闻资讯 - 监管动态',
|
|
237
|
+
source: ['www.cbirc.gov.cn/cn/view/pages/ItemList.html?itemPId=914&itemId=915&itemUrl=ItemListRightList.html'],
|
|
238
|
+
target: '/cbirc/915',
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
title: '新闻资讯 - 政策解读',
|
|
242
|
+
source: ['www.cbirc.gov.cn/cn/view/pages/ItemList.html?itemPId=914&itemId=916&itemUrl=ItemListRightMore.html'],
|
|
243
|
+
target: '/cbirc/916',
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
title: '新闻资讯 - 领导活动及讲话',
|
|
247
|
+
source: ['www.cbirc.gov.cn/cn/view/pages/ItemList.html?itemPId=914&itemId=919&itemUrl=ItemListRightList.html'],
|
|
248
|
+
target: '/cbirc/919',
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
title: '新闻资讯 - 新闻发布会及访谈',
|
|
252
|
+
source: ['www.cbirc.gov.cn/cn/view/pages/ItemList.html?itemPId=914&itemId=920&itemUrl=xinwenzixun/xinwenfabu.html'],
|
|
253
|
+
target: '/cbirc/920',
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
title: '新闻资讯 - 新闻发言人',
|
|
257
|
+
source: ['www.cbirc.gov.cn/cn/view/pages/ItemList.html?itemPId=914&itemId=921&itemUrl=xinwenzixun/xinwenfayan.html'],
|
|
258
|
+
target: '/cbirc/921',
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
title: '政务信息 - 政府信息公开',
|
|
262
|
+
source: ['www.cbirc.gov.cn/cn/view/pages/zhengwuxinxi/zhengfuxinxi.html'],
|
|
263
|
+
target: '/cbirc/924',
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
title: '政务信息 - 公告通知',
|
|
267
|
+
source: ['www.cbirc.gov.cn/cn/view/pages/ItemList.html?itemPId=923&itemId=925&itemUrl=ItemListRightList.html'],
|
|
268
|
+
target: '/cbirc/925',
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
title: '政务信息 - 政策法规',
|
|
272
|
+
source: ['www.cbirc.gov.cn/cn/view/pages/ItemList.html?itemPId=923&itemId=926&itemUrl=ItemListRightMore.html'],
|
|
273
|
+
target: '/cbirc/926',
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
title: '政务信息 - 行政许可',
|
|
277
|
+
source: ['www.cbirc.gov.cn/cn/view/pages/ItemList.html?itemPId=923&itemId=930&itemUrl=zhengwuxinxi/xingzhengxuke.html'],
|
|
278
|
+
target: '/cbirc/930',
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
title: '政务信息 - 行政处罚',
|
|
282
|
+
source: ['www.cbirc.gov.cn/cn/view/pages/ItemList.html?itemPId=923&itemId=931&itemUrl=zhengwuxinxi/xingzhengchufa.html'],
|
|
283
|
+
target: '/cbirc/931',
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
title: '政务信息 - 行政监管措施',
|
|
287
|
+
source: ['www.cbirc.gov.cn/cn/view/pages/ItemList.html?itemPId=923&itemId=932&itemUrl=ItemListRightList.html'],
|
|
288
|
+
target: '/cbirc/932',
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
title: '政务信息 - 人事信息',
|
|
292
|
+
source: ['www.cbirc.gov.cn/cn/view/pages/ItemList.html?itemPId=923&itemId=933&itemUrl=ItemListRightList.html'],
|
|
293
|
+
target: '/cbirc/933',
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
title: '在线服务 - 行政许可办事服务指南',
|
|
297
|
+
source: ['www.cbirc.gov.cn/cn/view/pages/ItemList.html?itemPId=937&itemId=938&itemUrl=zaixianfuwu/banshifuwu.html'],
|
|
298
|
+
target: '/cbirc/938',
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
title: '在线服务 - 查询服务',
|
|
302
|
+
source: ['www.cbirc.gov.cn/cn/view/pages/ItemList.html?itemPId=937&itemId=939&itemUrl=zaixianfuwu/chaxunfuwu.html'],
|
|
303
|
+
target: '/cbirc/939',
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
title: '互动交流 - 政务咨询',
|
|
307
|
+
source: ['www.cbirc.gov.cn/cn/view/pages/ItemList.html?itemPId=945&itemId=946&itemUrl=tosubmenu:hudongjiaoliu/woyaozixun.html'],
|
|
308
|
+
target: '/cbirc/946',
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
title: '互动交流 - 征集调查',
|
|
312
|
+
source: ['www.cbirc.gov.cn/cn/view/pages/ItemList.html?itemPId=945&itemId=950&itemUrl=ItemListRightMore.html'],
|
|
313
|
+
target: '/cbirc/950',
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
title: '互动交流 - 国务院办公厅开通“国家政务服务投诉与建议”小程序',
|
|
317
|
+
source: ['www.cbirc.gov.cn/cn/view/pages/ItemList.html?itemPId=945&itemId=952&itemUrl=http://www.gov.cn/xinwen/2018-09/20/content_5323786.htm'],
|
|
318
|
+
target: '/cbirc/952',
|
|
319
|
+
},
|
|
320
|
+
{
|
|
321
|
+
title: '统计数据 - 统计信息',
|
|
322
|
+
source: ['www.cbirc.gov.cn/cn/view/pages/ItemList.html?itemPId=953&itemId=954&itemUrl=ItemListRightList.html'],
|
|
323
|
+
target: '/cbirc/954',
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
title: '统计数据 - 数据图表',
|
|
327
|
+
source: ['www.cbirc.gov.cn/cn/view/pages/ItemList.html?itemPId=953&itemId=955&itemUrl=tosubmenu:tongjishuju/zongzichan.html'],
|
|
328
|
+
target: '/cbirc/955',
|
|
329
|
+
},
|
|
330
|
+
{
|
|
331
|
+
title: '专题专栏 - 推进普惠金融高质量发展',
|
|
332
|
+
source: ['www.cbirc.gov.cn/cn/view/pages/ItemList.html?itemPId=960&itemId=4234&itemUrl=ItemListRightMore.html'],
|
|
333
|
+
target: '/cbirc/4234',
|
|
334
|
+
},
|
|
335
|
+
{
|
|
336
|
+
title: '专题专栏 - 防范和处置非法集资',
|
|
337
|
+
source: ['www.cbirc.gov.cn/cn/view/pages/ItemList.html?itemPId=960&itemId=963&itemUrl=ItemListRightMore.html'],
|
|
338
|
+
target: '/cbirc/963',
|
|
339
|
+
},
|
|
340
|
+
{
|
|
341
|
+
title: '专题专栏 - 消费者保护',
|
|
342
|
+
source: ['www.cbirc.gov.cn/cn/view/pages/ItemList.html?itemPId=960&itemId=4097&itemUrl=ItemListRightMore.html'],
|
|
343
|
+
target: '/cbirc/4097',
|
|
344
|
+
},
|
|
345
|
+
{
|
|
346
|
+
title: '专题专栏 - 法治宣传',
|
|
347
|
+
source: ['www.cbirc.gov.cn/cn/view/pages/ItemList.html?itemPId=960&itemId=4106&itemUrl=ItemListRightMore.html'],
|
|
348
|
+
target: '/cbirc/4106',
|
|
349
|
+
},
|
|
350
|
+
{
|
|
351
|
+
title: '专题专栏 - 政府网站年度报表',
|
|
352
|
+
source: ['www.cbirc.gov.cn/cn/view/pages/ItemList.html?itemPId=960&itemId=970&itemUrl=ItemListRightList.html'],
|
|
353
|
+
target: '/cbirc/970',
|
|
354
|
+
},
|
|
355
|
+
{
|
|
356
|
+
title: '专题专栏 - 服务民营企业',
|
|
357
|
+
source: ['www.cbirc.gov.cn/cn/view/pages/ItemList.html?itemPId=960&itemId=4171&itemUrl=ItemListRightList.html'],
|
|
358
|
+
target: '/cbirc/4171',
|
|
359
|
+
},
|
|
360
|
+
{
|
|
361
|
+
title: '专题专栏 - 服务制造业发展',
|
|
362
|
+
source: ['www.cbirc.gov.cn/cn/view/pages/ItemList.html?itemPId=960&itemId=4217&itemUrl=ItemListRightList.html'],
|
|
363
|
+
target: '/cbirc/4217',
|
|
364
|
+
},
|
|
365
|
+
{
|
|
366
|
+
title: '专题专栏 - 学习贯彻习近平新时代中国特色社会主义思想主题教育',
|
|
367
|
+
source: ['www.cbirc.gov.cn/cn/view/pages/ItemList.html?itemPId=960&itemId=4229&itemUrl=ItemListRightMore.html'],
|
|
368
|
+
target: '/cbirc/4229',
|
|
369
|
+
},
|
|
370
|
+
],
|
|
371
|
+
};
|
|
@@ -30,12 +30,12 @@ async function handler(ctx: Context): Promise<Data> {
|
|
|
30
30
|
// 替换 url
|
|
31
31
|
const sydwgkzpUrl = `https://rlsbj.cq.gov.cn/zwxx_182/sydw/sydwgkzp${year}/`;
|
|
32
32
|
|
|
33
|
-
const { data: response }
|
|
33
|
+
const { data: response } = await got(sydwgkzpUrl);
|
|
34
34
|
|
|
35
35
|
const $ = load(response);
|
|
36
36
|
|
|
37
37
|
// 获取所有的标题
|
|
38
|
-
const list = $('
|
|
38
|
+
const list = $('ul[class="rsj-list1"] > li')
|
|
39
39
|
.toArray()
|
|
40
40
|
.map((item) => {
|
|
41
41
|
item = $(item);
|
|
@@ -54,10 +54,10 @@ async function handler(ctx: Context): Promise<Data> {
|
|
|
54
54
|
const items = await Promise.all(
|
|
55
55
|
list.map((item) =>
|
|
56
56
|
cache.tryGet(item.link, async () => {
|
|
57
|
-
const { data: response }
|
|
57
|
+
const { data: response } = await got(item.link);
|
|
58
58
|
const $ = load(response);
|
|
59
59
|
// 主题正文
|
|
60
|
-
item.description = $('
|
|
60
|
+
item.description = $('.trs_editor_view').first().html();
|
|
61
61
|
return item;
|
|
62
62
|
})
|
|
63
63
|
)
|