rsshub 1.0.0-master.c7cc533 → 1.0.0-master.c7e0a09
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 +14 -5
- package/lib/radar-rules.js +0 -41
- package/lib/router.js +30 -34
- package/lib/routes/cell/cover.js +1 -1
- package/lib/utils/wechat-mp.js +1 -0
- package/lib/v2/bloomberg/index.js +37 -0
- package/lib/v2/bloomberg/maintainer.js +4 -0
- package/lib/v2/bloomberg/radar.js +13 -0
- package/lib/v2/bloomberg/router.js +4 -0
- package/lib/v2/bloomberg/templates/audio_media.art +13 -0
- package/lib/v2/bloomberg/templates/image_figure.art +9 -0
- package/lib/v2/bloomberg/templates/lede_media.art +14 -0
- package/lib/v2/bloomberg/templates/video_media.art +25 -0
- package/lib/v2/bloomberg/utils.js +395 -0
- package/lib/v2/cngal/entry.js +25 -0
- package/lib/v2/cngal/maintainer.js +4 -0
- package/lib/v2/cngal/radar.js +19 -0
- package/lib/v2/cngal/router.js +4 -0
- package/lib/v2/cngal/templates/entry-description.art +4 -0
- package/lib/v2/cngal/templates/weekly-description.art +4 -0
- package/lib/v2/cngal/weekly.js +20 -0
- package/lib/v2/codeforces/templates/contest.art +5 -10
- package/lib/{routes → v2}/comicskingdom/index.js +18 -19
- package/lib/v2/comicskingdom/maintainer.js +3 -0
- package/lib/v2/comicskingdom/radar.js +13 -0
- package/lib/v2/comicskingdom/router.js +3 -0
- package/lib/v2/comicskingdom/templates/desc.art +1 -0
- package/lib/v2/cw/master.js +4 -1
- package/lib/v2/cw/sub.js +4 -1
- package/lib/v2/cw/today.js +4 -1
- package/lib/v2/cw/utils.js +14 -2
- package/lib/v2/docschina/jsweekly.js +114 -0
- package/lib/v2/docschina/maintainer.js +3 -0
- package/lib/v2/docschina/radar.js +13 -0
- package/lib/v2/docschina/router.js +3 -0
- package/lib/v2/ehentai/ehapi.js +21 -9
- package/lib/v2/foresightnews/index.js +8 -11
- package/lib/v2/ft/maintainer.js +2 -2
- package/lib/v2/ft/utils.js +10 -7
- package/lib/v2/github/trending.js +68 -36
- package/lib/v2/good/index.js +52 -0
- package/lib/v2/good/maintainer.js +3 -0
- package/lib/v2/good/radar.js +13 -0
- package/lib/v2/good/router.js +3 -0
- package/lib/v2/gov/radar.js +1 -1
- package/lib/v2/hellogithub/volume.js +15 -32
- package/lib/v2/{heu → hrbeu}/gx/card.js +5 -10
- package/lib/v2/{heu → hrbeu}/gx/list.js +12 -20
- package/lib/v2/hrbeu/job/bigemploy.js +25 -0
- package/lib/v2/{heu → hrbeu}/job/calendar.js +8 -16
- package/lib/v2/{heu → hrbeu}/job/list.js +11 -16
- package/lib/v2/{heu → hrbeu}/maintainer.js +2 -1
- package/lib/v2/{heu → hrbeu}/radar.js +18 -10
- package/lib/v2/{heu → hrbeu}/router.js +3 -2
- package/lib/v2/{heu → hrbeu}/uae/list.js +12 -17
- package/lib/v2/hrbeu/ugs/news.js +98 -0
- package/lib/v2/{heu → hrbeu}/yjsy/list.js +8 -16
- package/lib/v2/ifeng/maintainer.js +1 -0
- package/lib/v2/ifeng/news.js +54 -0
- package/lib/v2/ifeng/radar.js +7 -0
- package/lib/v2/ifeng/router.js +1 -0
- package/lib/v2/ifeng/templates/description.art +16 -0
- package/lib/v2/jornada/index.js +59 -0
- package/lib/v2/jornada/maintainer.js +3 -0
- package/lib/v2/jornada/radar.js +13 -0
- package/lib/v2/jornada/router.js +3 -0
- package/lib/v2/jseea/maintainer.js +3 -0
- package/lib/v2/jseea/news.js +64 -0
- package/lib/v2/jseea/radar.js +13 -0
- package/lib/v2/jseea/router.js +3 -0
- package/lib/v2/kemono/index.js +2 -2
- package/lib/{routes → v2}/kuaidi100/index.js +0 -0
- package/lib/v2/kuaidi100/maintainer.js +4 -0
- package/lib/v2/kuaidi100/radar.js +25 -0
- package/lib/v2/kuaidi100/router.js +4 -0
- package/lib/{routes → v2}/kuaidi100/supported_company.js +0 -1
- package/lib/{routes → v2}/kuaidi100/utils.js +46 -11
- package/lib/v2/lianxh/index.js +61 -0
- package/lib/v2/lianxh/maintainer.js +3 -0
- package/lib/v2/lianxh/radar.js +13 -0
- package/lib/v2/lianxh/router.js +3 -0
- package/lib/{routes → v2}/linkresearcher/index.js +16 -13
- package/lib/v2/linkresearcher/maintainer.js +3 -0
- package/lib/v2/linkresearcher/radar.js +19 -0
- package/lib/v2/linkresearcher/router.js +3 -0
- package/lib/v2/lkong/forum.js +3 -2
- package/lib/v2/lofter/user.js +6 -1
- package/lib/v2/lovelive-anime/maintainer.js +2 -1
- package/lib/v2/lovelive-anime/radar.js +9 -0
- package/lib/v2/lovelive-anime/router.js +1 -0
- package/lib/v2/lovelive-anime/schedules.js +56 -0
- package/lib/v2/lovelive-anime/templates/scheduleDesc.art +3 -0
- package/lib/v2/luogu/contest.js +72 -0
- package/lib/v2/luogu/daily.js +33 -0
- package/lib/v2/luogu/maintainer.js +5 -0
- package/lib/v2/luogu/radar.js +25 -0
- package/lib/v2/luogu/router.js +5 -0
- package/lib/v2/luogu/userFeed.js +30 -0
- package/lib/v2/mckinsey/cn/categoryMap.js +79 -0
- package/lib/v2/mckinsey/cn/index.js +37 -0
- package/lib/v2/mckinsey/radar.js +12 -0
- package/lib/v2/mckinsey/router.js +3 -0
- package/lib/v2/mihoyo/maintainer.js +1 -0
- package/lib/v2/mihoyo/radar.js +20 -1
- package/lib/v2/mihoyo/router.js +1 -0
- package/lib/v2/mihoyo/ys/news.js +80 -0
- package/lib/v2/mtime/maintainer.js +1 -1
- package/lib/v2/mtime/news.js +28 -24
- package/lib/v2/mtime/radar.js +1 -1
- package/lib/v2/nature/maintainer.js +5 -5
- package/lib/v2/nintendo/direct.js +31 -0
- package/lib/v2/nintendo/eshop_cn.js +44 -0
- package/lib/v2/nintendo/eshop_hk.js +79 -0
- package/lib/v2/nintendo/eshop_jp.js +34 -0
- package/lib/v2/nintendo/eshop_us.js +32 -0
- package/lib/v2/nintendo/maintainer.js +7 -0
- package/lib/v2/nintendo/news.js +23 -0
- package/lib/v2/nintendo/news_china.js +35 -0
- package/lib/v2/nintendo/radar.js +70 -0
- package/lib/v2/nintendo/router.js +10 -0
- package/lib/{routes → v2}/nintendo/system-update.js +2 -2
- package/lib/v2/nintendo/templates/direct.art +6 -0
- package/lib/v2/nintendo/templates/eshop_cn.art +21 -0
- package/lib/v2/nintendo/templates/eshop_hk.art +61 -0
- package/lib/v2/nintendo/templates/eshop_jp.art +3 -0
- package/lib/v2/nintendo/templates/eshop_us.art +24 -0
- package/lib/{routes → v2}/nintendo/utils.js +34 -50
- package/lib/v2/nju/hosptial.js +41 -0
- package/lib/v2/nju/itsc.js +46 -0
- package/lib/v2/nju/maintainer.js +2 -0
- package/lib/v2/nju/radar.js +16 -0
- package/lib/v2/nju/router.js +2 -0
- package/lib/v2/njxzc/home.js +62 -0
- package/lib/v2/njxzc/maintainer.js +3 -0
- package/lib/v2/njxzc/radar.js +13 -0
- package/lib/v2/njxzc/router.js +4 -0
- package/lib/v2/odaily/post.js +15 -20
- package/lib/v2/odaily/utils.js +1 -1
- package/lib/v2/pts/index.js +4 -1
- package/lib/{routes → v2}/qingting/channel.js +6 -10
- package/lib/v2/qingting/maintainer.js +4 -0
- package/lib/v2/qingting/podcast.js +77 -0
- package/lib/v2/qingting/radar.js +19 -0
- package/lib/v2/qingting/router.js +4 -0
- package/lib/v2/qipamaijia/index.js +7 -1
- package/lib/v2/qipamaijia/maintainer.js +1 -1
- package/lib/v2/radio/album.js +15 -5
- package/lib/v2/radio/zhibo.js +4 -1
- package/lib/v2/reuters/common.js +21 -8
- package/lib/v2/reuters/investigates.js +1 -1
- package/lib/v2/reuters/templates/description.art +44 -0
- package/lib/v2/science/current.js +1 -0
- package/lib/v2/science/maintainer.js +3 -3
- package/lib/v2/science/utils.js +2 -2
- package/lib/{routes → v2}/scmp/index.js +7 -8
- package/lib/v2/scmp/maintainer.js +3 -0
- package/lib/v2/scmp/radar.js +13 -0
- package/lib/v2/scmp/router.js +3 -0
- package/lib/v2/sctv/maintainer.js +3 -0
- package/lib/v2/sctv/programme.js +58 -0
- package/lib/v2/sctv/radar.js +13 -0
- package/lib/v2/sctv/router.js +3 -0
- package/lib/v2/sctv/templates/description.art +3 -0
- package/lib/v2/simpleinfo/index.js +50 -0
- package/lib/v2/simpleinfo/maintainer.js +3 -0
- package/lib/v2/simpleinfo/radar.js +19 -0
- package/lib/v2/simpleinfo/router.js +3 -0
- package/lib/v2/simpleinfo/templates/description.art +6 -0
- package/lib/v2/smzdm/article.js +43 -0
- package/lib/v2/smzdm/baoliao.js +43 -0
- package/lib/v2/smzdm/haowen.js +48 -0
- package/lib/v2/smzdm/haowen_fenlei.js +50 -0
- package/lib/v2/smzdm/keyword.js +42 -0
- package/lib/v2/smzdm/maintainer.js +8 -0
- package/lib/v2/smzdm/radar.js +48 -0
- package/lib/{routes → v2}/smzdm/ranking.js +20 -3
- package/lib/v2/smzdm/router.js +8 -0
- package/lib/v2/taoguba/blog.js +28 -3
- package/lib/v2/taoguba/index.js +29 -14
- package/lib/v2/tesla/{price/maintainer.js → maintainer.js} +0 -0
- package/lib/v2/tesla/{price/radar.js → radar.js} +0 -0
- package/lib/v2/thecatcity/index.js +48 -0
- package/lib/v2/thecatcity/maintainer.js +3 -0
- package/lib/v2/thecatcity/radar.js +13 -0
- package/lib/v2/thecatcity/router.js +3 -0
- package/lib/v2/thecatcity/termsMap.js +30 -0
- package/lib/v2/thepaper/utils.js +53 -49
- package/lib/v2/uber/blog.js +59 -0
- package/lib/v2/uber/maintainer.js +3 -0
- package/lib/v2/uber/radar.js +13 -0
- package/lib/v2/uber/router.js +3 -0
- package/lib/v2/warthunder/news.js +1 -1
- package/lib/v2/wise/maintainer.js +3 -0
- package/lib/v2/wise/pair.js +65 -0
- package/lib/v2/wise/radar.js +11 -0
- package/lib/v2/wise/router.js +3 -0
- package/lib/v2/wise/templates/description.art +17 -0
- package/lib/v2/ymgal/article.js +61 -0
- package/lib/v2/ymgal/maintainer.js +3 -0
- package/lib/v2/ymgal/radar.js +25 -0
- package/lib/v2/ymgal/router.js +3 -0
- package/lib/v2/youtube/custom.js +45 -0
- package/lib/v2/youtube/radar.js +6 -0
- package/lib/v2/youtube/router.js +1 -0
- package/lib/v2/zhihu/activities.js +5 -10
- package/lib/v2/zhihu/daily.js +25 -0
- package/lib/v2/zhihu/execlib/x-zse-96_v3.js +122 -0
- package/lib/v2/zhihu/pin/utils.js +49 -41
- package/lib/v2/zhihu/posts.js +21 -16
- package/lib/v2/zhihu/question.js +3 -3
- package/package.json +28 -21
- package/lib/routes/docschina/jsweekly.js +0 -47
- package/lib/routes/gov/jiangsu/eea.js +0 -84
- package/lib/routes/logseq/changelog.js +0 -42
- package/lib/routes/luogu/contest.js +0 -28
- package/lib/routes/luogu/daily.js +0 -53
- package/lib/routes/luogu/userFeed.js +0 -38
- package/lib/routes/mckinsey/index.js +0 -49
- package/lib/routes/nintendo/direct.js +0 -34
- package/lib/routes/nintendo/eshop_cn.js +0 -51
- package/lib/routes/nintendo/eshop_hk.js +0 -26
- package/lib/routes/nintendo/eshop_jp.js +0 -20
- package/lib/routes/nintendo/eshop_us.js +0 -36
- package/lib/routes/nintendo/news.js +0 -25
- package/lib/routes/nintendo/news_china.js +0 -41
- package/lib/routes/novel/shuquge.js +0 -63
- package/lib/routes/smzdm/article.js +0 -57
- package/lib/routes/smzdm/baoliao.js +0 -55
- package/lib/routes/smzdm/haowen.js +0 -60
- package/lib/routes/smzdm/haowen_fenlei.js +0 -63
- package/lib/routes/smzdm/keyword.js +0 -39
- package/lib/routes/transferwise/pair.js +0 -64
- package/lib/routes/yuanshen/index.js +0 -70
- package/lib/v2/heu/job/bigemploy.js +0 -42
- package/lib/v2/zhihu/execlib/g_encrypt.js +0 -407
- package/lib/v2/zhihu/execlib/g_encrypt_3.js +0 -430
- package/lib/v2/zhihu/execlib/hash.js +0 -155
- package/lib/v2/zhihu/execlib/jsencrypt.js +0 -379
package/README.md
CHANGED
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
[](https://hub.docker.com/r/diygod/rsshub)
|
|
11
11
|
[](https://github.com/DIYgod/RSSHub/actions/workflows/test.yml?query=event%3Apush+branch%3Amaster)
|
|
12
12
|
[](https://app.codecov.io/gh/DIYgod/RSSHub/branch/master)
|
|
13
|
+
[](https://docs.runforesight.com/)
|
|
13
14
|
|
|
14
15
|
## Introduction
|
|
15
16
|
|
|
@@ -33,13 +34,21 @@ RSSHub 是一个开源、简单易用、易于扩展的 RSS 生成器,可以
|
|
|
33
34
|
|
|
34
35
|
### Special Sponsors
|
|
35
36
|
|
|
36
|
-
<
|
|
37
|
-
<a href="https://rss3.io/" target="_blank"><img height="60px" src="https://i.imgur.com/
|
|
38
|
-
</
|
|
37
|
+
<p>
|
|
38
|
+
<a href="https://rss3.io/" target="_blank"><img height="60px" src="https://i.imgur.com/vHtI4bz.png"></a>
|
|
39
|
+
</p>
|
|
40
|
+
|
|
41
|
+
<table width="100%">
|
|
42
|
+
<tr>
|
|
43
|
+
<td><img width="1000" height="0"><a href="https://www.runforesight.com/?utm_source=RSSHub&utm_medium=sponsorship"><img src="https://www.thundra.io/hubfs/RunForesight/GitHub%20Sponsorship%20banners/github-actions-observability.png"
|
|
44
|
+
alt="Foresight" width="260" align="right"></a><h3>Foresight: Increase CI/CD Health & Test Performance</h3><p>
|
|
45
|
+
Foresight provides full visibility and deep insights into the health and performance of your tests and CI pipelines. Assess the risk of code changes, deal with flaky tests, see workflow and test trends over time, and improve the contributing experience with Foresight.</p>
|
|
39
46
|
|
|
40
|
-
|
|
47
|
+
[Sign up now!](https://runforesight.com/?utm_source=RSSHub&utm_medium=sponsorship)
|
|
41
48
|
|
|
42
|
-
|
|
49
|
+
</td>
|
|
50
|
+
</tr>
|
|
51
|
+
</table>
|
|
43
52
|
|
|
44
53
|
[](https://docs.rsshub.app/en/support/)
|
|
45
54
|
|
package/lib/radar-rules.js
CHANGED
|
@@ -45,24 +45,6 @@ module.exports = {
|
|
|
45
45
|
},
|
|
46
46
|
],
|
|
47
47
|
},
|
|
48
|
-
'smzdm.com': {
|
|
49
|
-
_name: '什么值得买',
|
|
50
|
-
www: [
|
|
51
|
-
{
|
|
52
|
-
title: '排行榜',
|
|
53
|
-
docs: 'https://docs.rsshub.app/shopping.html#shen-me-zhi-de-mai',
|
|
54
|
-
source: '/top',
|
|
55
|
-
},
|
|
56
|
-
],
|
|
57
|
-
search: [
|
|
58
|
-
{
|
|
59
|
-
title: '关键词',
|
|
60
|
-
docs: 'https://docs.rsshub.app/shopping.html#shen-me-zhi-de-mai',
|
|
61
|
-
source: '/',
|
|
62
|
-
target: (params, url) => `/smzdm/keyword/${new URL(url).searchParams.get('s')}`,
|
|
63
|
-
},
|
|
64
|
-
],
|
|
65
|
-
},
|
|
66
48
|
'ximalaya.com': {
|
|
67
49
|
_name: '喜马拉雅',
|
|
68
50
|
'.': [
|
|
@@ -752,29 +734,6 @@ module.exports = {
|
|
|
752
734
|
},
|
|
753
735
|
],
|
|
754
736
|
},
|
|
755
|
-
'kuaidi100.com': {
|
|
756
|
-
_name: '快递100',
|
|
757
|
-
'.': [
|
|
758
|
-
{
|
|
759
|
-
title: '快递追踪',
|
|
760
|
-
docs: 'https://docs.rsshub.app/other.html#kuai-di-100',
|
|
761
|
-
source: '/',
|
|
762
|
-
target: (params, url, document) => {
|
|
763
|
-
const postid = document && document.querySelector('#postid').value;
|
|
764
|
-
const com = document && document.querySelector('#selectComBtn').childNodes[1].attributes[1].value;
|
|
765
|
-
if (com && com !== 'default' && postid) {
|
|
766
|
-
return `/kuaidi100/track/${com}/${postid}`;
|
|
767
|
-
}
|
|
768
|
-
},
|
|
769
|
-
},
|
|
770
|
-
{
|
|
771
|
-
title: '支持的快递公司列表',
|
|
772
|
-
docs: 'https://docs.rsshub.app/other.html#kuai-di-100',
|
|
773
|
-
source: '/',
|
|
774
|
-
target: '/kuaidi100/company',
|
|
775
|
-
},
|
|
776
|
-
],
|
|
777
|
-
},
|
|
778
737
|
'hrbeu.edu.cn': {
|
|
779
738
|
_name: '哈尔滨工程大学',
|
|
780
739
|
yjsy: [
|
package/lib/router.js
CHANGED
|
@@ -253,12 +253,12 @@ router.get('/ximalaya/:type/:id/:all/:shownote?', lazyloadRouteHandler('./routes
|
|
|
253
253
|
router.get('/eztv/torrents/:imdb_id', lazyloadRouteHandler('./routes/eztv/imdb'));
|
|
254
254
|
|
|
255
255
|
// 什么值得买
|
|
256
|
-
router.get('/smzdm/keyword/:keyword', lazyloadRouteHandler('./routes/smzdm/keyword'));
|
|
257
|
-
router.get('/smzdm/ranking/:rank_type/:rank_id/:hour', lazyloadRouteHandler('./routes/smzdm/ranking'));
|
|
258
|
-
router.get('/smzdm/haowen/:day?', lazyloadRouteHandler('./routes/smzdm/haowen'));
|
|
259
|
-
router.get('/smzdm/haowen/fenlei/:name/:sort?', lazyloadRouteHandler('./routes/smzdm/haowen_fenlei'));
|
|
260
|
-
router.get('/smzdm/article/:uid', lazyloadRouteHandler('./routes/smzdm/article'));
|
|
261
|
-
router.get('/smzdm/baoliao/:uid', lazyloadRouteHandler('./routes/smzdm/baoliao'));
|
|
256
|
+
// router.get('/smzdm/keyword/:keyword', lazyloadRouteHandler('./routes/smzdm/keyword'));
|
|
257
|
+
// router.get('/smzdm/ranking/:rank_type/:rank_id/:hour', lazyloadRouteHandler('./routes/smzdm/ranking'));
|
|
258
|
+
// router.get('/smzdm/haowen/:day?', lazyloadRouteHandler('./routes/smzdm/haowen'));
|
|
259
|
+
// router.get('/smzdm/haowen/fenlei/:name/:sort?', lazyloadRouteHandler('./routes/smzdm/haowen_fenlei'));
|
|
260
|
+
// router.get('/smzdm/article/:uid', lazyloadRouteHandler('./routes/smzdm/article'));
|
|
261
|
+
// router.get('/smzdm/baoliao/:uid', lazyloadRouteHandler('./routes/smzdm/baoliao'));
|
|
262
262
|
|
|
263
263
|
// 新京报
|
|
264
264
|
router.get('/bjnews/:cat', lazyloadRouteHandler('./routes/bjnews/news'));
|
|
@@ -465,7 +465,6 @@ router.get('/mafengwo/ziyouxing/:code', lazyloadRouteHandler('./routes/mafengwo/
|
|
|
465
465
|
router.get('/novel/uukanshu/:uid', lazyloadRouteHandler('./routes/novel/uukanshu'));
|
|
466
466
|
router.get('/novel/wenxuemi/:id1/:id2', lazyloadRouteHandler('./routes/novel/wenxuemi'));
|
|
467
467
|
router.get('/novel/booksky/:id', lazyloadRouteHandler('./routes/novel/booksky'));
|
|
468
|
-
router.get('/novel/shuquge/:id', lazyloadRouteHandler('./routes/novel/shuquge'));
|
|
469
468
|
router.get('/novel/ptwxz/:id1/:id2', lazyloadRouteHandler('./routes/novel/ptwxz'));
|
|
470
469
|
router.get('/novel/zhaishuyuan/:id', lazyloadRouteHandler('./routes/novel/zhaishuyuan'));
|
|
471
470
|
|
|
@@ -1190,7 +1189,7 @@ router.get('/gov/suzhou/news/:uid', lazyloadRouteHandler('./routes/gov/suzhou/ne
|
|
|
1190
1189
|
router.get('/gov/suzhou/doc', lazyloadRouteHandler('./routes/gov/suzhou/doc'));
|
|
1191
1190
|
|
|
1192
1191
|
// 江苏
|
|
1193
|
-
router.get('/gov/jiangsu/eea/:type?', lazyloadRouteHandler('./routes/gov/jiangsu/eea'));
|
|
1192
|
+
// router.get('/gov/jiangsu/eea/:type?', lazyloadRouteHandler('./routes/gov/jiangsu/eea'));
|
|
1194
1193
|
|
|
1195
1194
|
// 山西
|
|
1196
1195
|
router.get('/gov/shanxi/rst/:category', lazyloadRouteHandler('./routes/gov/shanxi/rst'));
|
|
@@ -1356,9 +1355,9 @@ router.get('/ui-cn/user/:id', lazyloadRouteHandler('./routes/ui-cn/user'));
|
|
|
1356
1355
|
router.get('/bjp/apod', lazyloadRouteHandler('./routes/bjp/apod'));
|
|
1357
1356
|
|
|
1358
1357
|
// 洛谷
|
|
1359
|
-
router.get('/luogu/daily/:id?', lazyloadRouteHandler('./routes/luogu/daily'));
|
|
1360
|
-
router.get('/luogu/contest', lazyloadRouteHandler('./routes/luogu/contest'));
|
|
1361
|
-
router.get('/luogu/user/feed/:uid', lazyloadRouteHandler('./routes/luogu/userFeed'));
|
|
1358
|
+
// router.get('/luogu/daily/:id?', lazyloadRouteHandler('./routes/luogu/daily'));
|
|
1359
|
+
// router.get('/luogu/contest', lazyloadRouteHandler('./routes/luogu/contest'));
|
|
1360
|
+
// router.get('/luogu/user/feed/:uid', lazyloadRouteHandler('./routes/luogu/userFeed'));
|
|
1362
1361
|
|
|
1363
1362
|
// 决胜网
|
|
1364
1363
|
router.get('/juesheng', lazyloadRouteHandler('./routes/juesheng'));
|
|
@@ -1534,15 +1533,15 @@ router.get('/ps/:lang?/product/:gridName', lazyloadRouteHandler('./routes/ps/pro
|
|
|
1534
1533
|
// Quanta Magazine
|
|
1535
1534
|
router.get('/quantamagazine/archive', lazyloadRouteHandler('./routes/quantamagazine/archive'));
|
|
1536
1535
|
|
|
1537
|
-
// Nintendo
|
|
1538
|
-
router.get('/nintendo/eshop/jp', lazyloadRouteHandler('./routes/nintendo/eshop_jp'));
|
|
1539
|
-
router.get('/nintendo/eshop/hk', lazyloadRouteHandler('./routes/nintendo/eshop_hk'));
|
|
1540
|
-
router.get('/nintendo/eshop/us', lazyloadRouteHandler('./routes/nintendo/eshop_us'));
|
|
1541
|
-
router.get('/nintendo/eshop/cn', lazyloadRouteHandler('./routes/nintendo/eshop_cn'));
|
|
1542
|
-
router.get('/nintendo/news', lazyloadRouteHandler('./routes/nintendo/news'));
|
|
1543
|
-
router.get('/nintendo/news/china', lazyloadRouteHandler('./routes/nintendo/news_china'));
|
|
1544
|
-
router.get('/nintendo/direct', lazyloadRouteHandler('./routes/nintendo/direct'));
|
|
1545
|
-
router.get('/nintendo/system-update', lazyloadRouteHandler('./routes/nintendo/system-update'));
|
|
1536
|
+
// Nintendo migrated to v2
|
|
1537
|
+
// router.get('/nintendo/eshop/jp', lazyloadRouteHandler('./routes/nintendo/eshop_jp'));
|
|
1538
|
+
// router.get('/nintendo/eshop/hk', lazyloadRouteHandler('./routes/nintendo/eshop_hk'));
|
|
1539
|
+
// router.get('/nintendo/eshop/us', lazyloadRouteHandler('./routes/nintendo/eshop_us'));
|
|
1540
|
+
// router.get('/nintendo/eshop/cn', lazyloadRouteHandler('./routes/nintendo/eshop_cn'));
|
|
1541
|
+
// router.get('/nintendo/news', lazyloadRouteHandler('./routes/nintendo/news'));
|
|
1542
|
+
// router.get('/nintendo/news/china', lazyloadRouteHandler('./routes/nintendo/news_china'));
|
|
1543
|
+
// router.get('/nintendo/direct', lazyloadRouteHandler('./routes/nintendo/direct'));
|
|
1544
|
+
// router.get('/nintendo/system-update', lazyloadRouteHandler('./routes/nintendo/system-update'));
|
|
1546
1545
|
|
|
1547
1546
|
// 世界卫生组织 migrated to v2
|
|
1548
1547
|
// router.get('/who/news-room/:category?/:language?', lazyloadRouteHandler('./routes/who/news-room'));
|
|
@@ -1790,7 +1789,7 @@ router.get('/archdaily', lazyloadRouteHandler('./routes/archdaily/home'));
|
|
|
1790
1789
|
router.get('/aptonic/action/:untested?', lazyloadRouteHandler('./routes/aptonic/action'));
|
|
1791
1790
|
|
|
1792
1791
|
// 印记中文周刊
|
|
1793
|
-
router.get('/docschina/jsweekly', lazyloadRouteHandler('./routes/docschina/jsweekly'));
|
|
1792
|
+
// router.get('/docschina/jsweekly', lazyloadRouteHandler('./routes/docschina/jsweekly'));
|
|
1794
1793
|
|
|
1795
1794
|
// im2maker
|
|
1796
1795
|
router.get('/im2maker/:channel?', lazyloadRouteHandler('./routes/im2maker/index'));
|
|
@@ -2160,7 +2159,7 @@ router.get('/kaggle/user/:user', lazyloadRouteHandler('./routes/kaggle/user'));
|
|
|
2160
2159
|
// router.get('/pubmed/trending', lazyloadRouteHandler('./routes/pubmed/trending'));
|
|
2161
2160
|
|
|
2162
2161
|
// 领科 (linkresearcher.com)
|
|
2163
|
-
router.get('/linkresearcher/:params', lazyloadRouteHandler('./routes/linkresearcher/index'));
|
|
2162
|
+
// router.get('/linkresearcher/:params', lazyloadRouteHandler('./routes/linkresearcher/index'));
|
|
2164
2163
|
|
|
2165
2164
|
// eLife [Sci Journal]
|
|
2166
2165
|
router.get('/elife/:tid', lazyloadRouteHandler('./routes/elife/index'));
|
|
@@ -2258,7 +2257,7 @@ router.get('/remote-work/:caty?', lazyloadRouteHandler('./routes/remote-work/ind
|
|
|
2258
2257
|
router.get('/chinatimes/:caty', lazyloadRouteHandler('./routes/chinatimes/index'));
|
|
2259
2258
|
|
|
2260
2259
|
// TransferWise
|
|
2261
|
-
router.get('/transferwise/pair/:source/:target', lazyloadRouteHandler('./routes/transferwise/pair'));
|
|
2260
|
+
// router.get('/transferwise/pair/:source/:target', lazyloadRouteHandler('./routes/transferwise/pair'));
|
|
2262
2261
|
|
|
2263
2262
|
// chocolatey
|
|
2264
2263
|
router.get('/chocolatey/software/:name?', lazyloadRouteHandler('./routes/chocolatey/software'));
|
|
@@ -2474,8 +2473,8 @@ router.get('/haohaozhu/discover/:keyword?', lazyloadRouteHandler('./routes/haoha
|
|
|
2474
2473
|
// router.get('/neu/news/:type', lazyloadRouteHandler('./routes/universities/neu/news'));
|
|
2475
2474
|
|
|
2476
2475
|
// 快递100
|
|
2477
|
-
router.get('/kuaidi100/track/:number/:id/:phone?', lazyloadRouteHandler('./routes/kuaidi100/index'));
|
|
2478
|
-
router.get('/kuaidi100/company', lazyloadRouteHandler('./routes/kuaidi100/supported_company'));
|
|
2476
|
+
// router.get('/kuaidi100/track/:number/:id/:phone?', lazyloadRouteHandler('./routes/kuaidi100/index'));
|
|
2477
|
+
// router.get('/kuaidi100/company', lazyloadRouteHandler('./routes/kuaidi100/supported_company'));
|
|
2479
2478
|
|
|
2480
2479
|
// 稻草人书屋
|
|
2481
2480
|
router.get('/dcrsw/:name/:count?', lazyloadRouteHandler('./routes/novel/dcrsw'));
|
|
@@ -2747,7 +2746,7 @@ router.get('/qlwb/news', lazyloadRouteHandler('./routes/qlwb/news'));
|
|
|
2747
2746
|
router.get('/qlwb/city/:city', lazyloadRouteHandler('./routes/qlwb/city'));
|
|
2748
2747
|
|
|
2749
2748
|
// 蜻蜓FM
|
|
2750
|
-
router.get('/qingting/channel/:id', lazyloadRouteHandler('./routes/qingting/channel'));
|
|
2749
|
+
// router.get('/qingting/channel/:id', lazyloadRouteHandler('./routes/qingting/channel'));
|
|
2751
2750
|
|
|
2752
2751
|
// 金色财经
|
|
2753
2752
|
router.get('/jinse/lives', lazyloadRouteHandler('./routes/jinse/lives'));
|
|
@@ -2919,7 +2918,7 @@ router.get('/changku', lazyloadRouteHandler('./routes/changku/index'));
|
|
|
2919
2918
|
router.get('/changku/cate/:postid', lazyloadRouteHandler('./routes/changku/index'));
|
|
2920
2919
|
|
|
2921
2920
|
// SCMP
|
|
2922
|
-
router.get('/scmp/:category_id', lazyloadRouteHandler('./routes/scmp/index'));
|
|
2921
|
+
// router.get('/scmp/:category_id', lazyloadRouteHandler('./routes/scmp/index'));
|
|
2923
2922
|
|
|
2924
2923
|
// 上海市生态环境局
|
|
2925
2924
|
router.get('/gov/shanghai/sthj', lazyloadRouteHandler('./routes/gov/shanghai/sthj'));
|
|
@@ -3276,8 +3275,8 @@ router.get('/ofweek/news', lazyloadRouteHandler('./routes/ofweek/news'));
|
|
|
3276
3275
|
// 八阕
|
|
3277
3276
|
router.get('/popyard/:caty?', lazyloadRouteHandler('./routes/popyard/index'));
|
|
3278
3277
|
|
|
3279
|
-
// 原神
|
|
3280
|
-
router.get('/yuanshen/:location?/:category?', lazyloadRouteHandler('./routes/yuanshen/index'));
|
|
3278
|
+
// 原神 migrated to v2
|
|
3279
|
+
// router.get('/yuanshen/:location?/:category?', lazyloadRouteHandler('./routes/yuanshen/index'));
|
|
3281
3280
|
|
|
3282
3281
|
// World Trade Organization
|
|
3283
3282
|
router.get('/wto/dispute-settlement/:year?', lazyloadRouteHandler('./routes/wto/dispute-settlement'));
|
|
@@ -3397,7 +3396,7 @@ router.get('/clb/commentary/:lang?', lazyloadRouteHandler('./routes/clb/commenta
|
|
|
3397
3396
|
router.get('/iie/blog', lazyloadRouteHandler('./routes/iie/blog'));
|
|
3398
3397
|
|
|
3399
3398
|
// McKinsey Greater China
|
|
3400
|
-
router.get('/mckinsey/:category?', lazyloadRouteHandler('./routes/mckinsey/index'));
|
|
3399
|
+
// router.get('/mckinsey/:category?', lazyloadRouteHandler('./routes/mckinsey/index'));
|
|
3401
3400
|
|
|
3402
3401
|
// 超理论坛
|
|
3403
3402
|
router.get('/chaoli/:channel?', lazyloadRouteHandler('./routes/chaoli/index'));
|
|
@@ -3682,7 +3681,7 @@ router.get('/mcdonalds/:category', lazyloadRouteHandler('./routes/mcdonalds/news
|
|
|
3682
3681
|
router.get('/gocomics/:name', lazyloadRouteHandler('./routes/gocomics/index'));
|
|
3683
3682
|
|
|
3684
3683
|
// Comics Kingdom
|
|
3685
|
-
router.get('/comicskingdom/:name', lazyloadRouteHandler('./routes/comicskingdom/index'));
|
|
3684
|
+
// router.get('/comicskingdom/:name', lazyloadRouteHandler('./routes/comicskingdom/index'));
|
|
3686
3685
|
|
|
3687
3686
|
// Media Digest
|
|
3688
3687
|
router.get('/mediadigest/:range/:category?', lazyloadRouteHandler('./routes/mediadigest/category'));
|
|
@@ -3812,9 +3811,6 @@ router.get('/furaffinity/favorites/:username/:nsfw?', lazyloadRouteHandler('./ro
|
|
|
3812
3811
|
router.get('/furaffinity/submission_comments/:id', lazyloadRouteHandler('./routes/furaffinity/submission_comments'));
|
|
3813
3812
|
router.get('/furaffinity/journal_comments/:id', lazyloadRouteHandler('./routes/furaffinity/journal_comments'));
|
|
3814
3813
|
|
|
3815
|
-
// Logseq
|
|
3816
|
-
router.get('/logseq/changelog', lazyloadRouteHandler('./routes/logseq/changelog'));
|
|
3817
|
-
|
|
3818
3814
|
// 亿欧网
|
|
3819
3815
|
router.get('/iyiou', lazyloadRouteHandler('./routes/iyiou'));
|
|
3820
3816
|
|
package/lib/routes/cell/cover.js
CHANGED
package/lib/utils/wechat-mp.js
CHANGED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
const { rootUrl, parseNewsList, parseArticle } = require('./utils');
|
|
2
|
+
const asyncPool = require('tiny-async-pool');
|
|
3
|
+
const site_title_mapping = {
|
|
4
|
+
'/': 'News',
|
|
5
|
+
bpol: 'Politics',
|
|
6
|
+
bbiz: 'Business',
|
|
7
|
+
markets: 'Markets',
|
|
8
|
+
technology: 'Technology',
|
|
9
|
+
green: 'Green',
|
|
10
|
+
wealth: 'Wealth',
|
|
11
|
+
pursuits: 'Pursuits',
|
|
12
|
+
bview: 'Opinion',
|
|
13
|
+
equality: 'Equality',
|
|
14
|
+
businessweek: 'Businessweek',
|
|
15
|
+
citylab: 'CityLab',
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
const asyncPoolAll = async (...args) => {
|
|
19
|
+
const results = [];
|
|
20
|
+
for await (const result of asyncPool(...args)) {
|
|
21
|
+
results.push(result);
|
|
22
|
+
}
|
|
23
|
+
return results;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
module.exports = async (ctx) => {
|
|
27
|
+
const { site } = ctx.params;
|
|
28
|
+
const currentUrl = site ? `${rootUrl}/${site}/sitemap_news.xml` : `${rootUrl}/sitemap_news.xml`;
|
|
29
|
+
|
|
30
|
+
const list = await parseNewsList(currentUrl, ctx);
|
|
31
|
+
const items = await asyncPoolAll(1, list, (item) => parseArticle(item, ctx));
|
|
32
|
+
ctx.state.data = {
|
|
33
|
+
title: `Bloomberg - ${site_title_mapping[site ?? '/']}`,
|
|
34
|
+
link: currentUrl,
|
|
35
|
+
item: items,
|
|
36
|
+
};
|
|
37
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<figure>
|
|
2
|
+
<div>
|
|
3
|
+
<img src="{{ img }}">
|
|
4
|
+
<audio controls>
|
|
5
|
+
<source src="{{ src }}" type="audio/mpeg">
|
|
6
|
+
Your browser does not support the audio element.
|
|
7
|
+
</audio>
|
|
8
|
+
</div>
|
|
9
|
+
<figcaption>
|
|
10
|
+
<div class="caption">{{@ caption }}</div>
|
|
11
|
+
<div class="credit">{{@ credit }}</div>
|
|
12
|
+
</figcaption>
|
|
13
|
+
</figure>
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<figure>
|
|
2
|
+
<img src="{{ src }}" alt="{{ alt }}" loading="lazy" style="display:block; margin-left:auto; margin-right:auto;" width:100%;>
|
|
3
|
+
{{if caption}}
|
|
4
|
+
<figcaption>
|
|
5
|
+
<div class="caption">{{@ caption }}</div>
|
|
6
|
+
<div class="credit">{{@ credit }}</div>
|
|
7
|
+
</figcaption>
|
|
8
|
+
{{/if}}
|
|
9
|
+
</figure>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{{if (media.kind =='image') }}
|
|
2
|
+
<figure>
|
|
3
|
+
<img src="{{ media.src }}" alt="{{ media.description }}" loading="lazy" style="display:block; margin-left:auto; margin-right:auto;" width:100%;>
|
|
4
|
+
{{if media.caption}}
|
|
5
|
+
<figcaption>
|
|
6
|
+
<div class="caption">{{@ media.caption }}</div>
|
|
7
|
+
<div class="credit">{{@ media.credit }}</div>
|
|
8
|
+
</figcaption>
|
|
9
|
+
{{/if}}
|
|
10
|
+
</figure>
|
|
11
|
+
{{/if}}
|
|
12
|
+
{{if (media.kind =='video') }}
|
|
13
|
+
{{include './video_media.art' media.video}}
|
|
14
|
+
{{/if}}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
<figure>
|
|
2
|
+
<video controls
|
|
3
|
+
playsinline="true"
|
|
4
|
+
webkit-playsinline="true"
|
|
5
|
+
x5-playsinline="true"
|
|
6
|
+
x5-video-player-type="h5"
|
|
7
|
+
x5-video-orientation="landscape|portrait"
|
|
8
|
+
x5-video-player-fullscreen="true"
|
|
9
|
+
x-webkit-airplay="allow"
|
|
10
|
+
preload="metadata"
|
|
11
|
+
poster="{{ coverUrl }}">
|
|
12
|
+
{{if stream }}
|
|
13
|
+
<source src="{{ stream }}" type="application/x-mpegURL">
|
|
14
|
+
{{/if}}
|
|
15
|
+
{{if mp4 }}
|
|
16
|
+
<source src="{{ mp4 }}" type="video/mp4"/>
|
|
17
|
+
{{/if}}
|
|
18
|
+
|
|
19
|
+
</video>
|
|
20
|
+
{{if caption}}
|
|
21
|
+
<figcaption>
|
|
22
|
+
<div class="caption">{{@ caption }}</div>
|
|
23
|
+
</figcaption>
|
|
24
|
+
{{/if}}
|
|
25
|
+
</figure>
|