rsshub 1.0.0-master.e85a713 → 1.0.0-master.e95a862
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 +1 -1
- package/lib/middleware/parameter.js +1 -1
- package/lib/radar-rules.js +0 -36
- package/lib/router.js +19 -15
- package/lib/routes/aeon/category.js +18 -27
- package/lib/routes/bookwalkertw/news.js +2 -2
- package/lib/routes/coolapk/utils.js +2 -0
- package/lib/routes/copymanga/comic.js +3 -2
- package/lib/routes/dilbert/strip.js +7 -4
- package/lib/routes/dykszx/news.js +5 -2
- package/lib/routes/futunn/highlights.js +39 -37
- package/lib/routes/hackerone/hacktivity.js +16 -14
- package/lib/routes/hexo/fluid.js +45 -0
- package/lib/routes/kbs/today.js +56 -0
- package/lib/routes/manhuagui/comic.js +74 -28
- package/lib/routes/mhgui/comic.js +74 -28
- package/lib/routes/novel/axdzs.js +22 -12
- package/lib/routes/novel/biquge.js +1 -1
- package/lib/routes/picuki/profile.js +53 -14
- package/lib/routes/tencent/wechat/tgchannel.js +47 -10
- package/lib/routes/twmanhuagui/comic.js +74 -28
- package/lib/routes/vgn/index.js +1 -1
- package/lib/routes/weibo/super_index.js +2 -1
- package/lib/routes/weibo/user.js +26 -2
- package/lib/routes/youzhiyouxing/materials.js +29 -0
- package/lib/v2/423down/index.js +114 -0
- package/lib/v2/423down/maintainer.js +3 -0
- package/lib/v2/423down/radar.js +193 -0
- package/lib/v2/423down/router.js +3 -0
- package/lib/v2/ahjzu/maintainer.js +3 -0
- package/lib/v2/ahjzu/news.js +57 -0
- package/lib/v2/ahjzu/radar.js +13 -0
- package/lib/v2/ahjzu/router.js +3 -0
- package/lib/v2/ajmide/index.js +29 -0
- package/lib/v2/ajmide/maintainer.js +3 -0
- package/lib/v2/ajmide/radar.js +16 -0
- package/lib/v2/ajmide/router.js +3 -0
- package/lib/v2/barronschina/index.js +70 -0
- package/lib/v2/barronschina/maintainer.js +3 -0
- package/lib/v2/barronschina/radar.js +13 -0
- package/lib/v2/barronschina/router.js +3 -0
- package/lib/v2/cbirc/index.js +119 -0
- package/lib/v2/cbirc/maintainer.js +3 -0
- package/lib/v2/cbirc/radar.js +13 -0
- package/lib/v2/cbirc/router.js +3 -0
- package/lib/v2/chaoxing/maintainer.js +3 -0
- package/lib/v2/chaoxing/qk.js +59 -0
- package/lib/v2/chaoxing/radar.js +13 -0
- package/lib/v2/chaoxing/router.js +3 -0
- package/lib/v2/chaoxing/templates/description.art +3 -0
- package/lib/v2/cnki/debut.js +62 -0
- package/lib/v2/cnki/journals.js +74 -0
- package/lib/v2/cnki/maintainer.js +4 -0
- package/lib/v2/cnki/radar.js +19 -0
- package/lib/v2/cnki/router.js +4 -0
- package/lib/v2/cnki/templates/desc.art +5 -0
- package/lib/{routes → v2}/cool18/index.js +17 -13
- package/lib/v2/cool18/maintainer.js +3 -0
- package/lib/v2/cool18/radar.js +13 -0
- package/lib/v2/cool18/router.js +3 -0
- package/lib/v2/cpcey/index.js +60 -0
- package/lib/v2/cpcey/maintainer.js +3 -0
- package/lib/v2/cpcey/radar.js +27 -0
- package/lib/v2/cpcey/router.js +3 -0
- package/lib/v2/cqwu/index.js +46 -0
- package/lib/v2/cqwu/maintainer.js +3 -0
- package/lib/v2/cqwu/radar.js +27 -0
- package/lib/v2/cqwu/router.js +3 -0
- package/lib/{routes/everything → v2}/eventernote/actors.js +0 -0
- package/lib/v2/eventernote/maintainer.js +3 -0
- package/lib/v2/eventernote/radar.js +13 -0
- package/lib/v2/eventernote/router.js +3 -0
- package/lib/v2/filmdeepfocus/index.js +58 -0
- package/lib/v2/filmdeepfocus/maintainer.js +3 -0
- package/lib/v2/filmdeepfocus/radar.js +13 -0
- package/lib/v2/filmdeepfocus/router.js +3 -0
- package/lib/v2/fortunechina/index.js +70 -0
- package/lib/v2/fortunechina/maintainer.js +3 -0
- package/lib/v2/fortunechina/radar.js +13 -0
- package/lib/v2/fortunechina/router.js +3 -0
- package/lib/v2/gamersecret/index.js +60 -0
- package/lib/v2/gamersecret/maintainer.js +3 -0
- package/lib/v2/gamersecret/radar.js +31 -0
- package/lib/v2/gamersecret/router.js +3 -0
- package/lib/v2/gov/maintainer.js +2 -0
- package/lib/v2/gov/radar.js +22 -0
- package/lib/v2/gov/router.js +2 -0
- package/lib/v2/gov/shenzhen/hrss/szksy/index.js +41 -0
- package/lib/v2/gov/shenzhen/zzb/index.js +40 -0
- package/lib/v2/guduodata/daily.js +63 -0
- package/lib/v2/guduodata/maintainer.js +3 -0
- package/lib/v2/guduodata/radar.js +13 -0
- package/lib/v2/guduodata/router.js +3 -0
- package/lib/v2/guduodata/templates/daily.art +26 -0
- package/lib/v2/hackernews/index.js +97 -0
- package/lib/v2/hackernews/maintainer.js +3 -0
- package/lib/v2/hackernews/radar.js +13 -0
- package/lib/v2/hackernews/router.js +3 -0
- package/lib/v2/heu/job/list.js +2 -2
- package/lib/v2/iwara/index.js +42 -0
- package/lib/v2/iwara/maintainer.js +3 -0
- package/lib/v2/iwara/radar.js +19 -0
- package/lib/v2/iwara/router.js +3 -0
- package/lib/v2/kemono/index.js +99 -0
- package/lib/v2/kemono/maintainer.js +4 -0
- package/lib/v2/kemono/radar.js +13 -0
- package/lib/v2/kemono/router.js +3 -0
- package/lib/v2/lanqiao/author.js +63 -0
- package/lib/v2/lanqiao/courses.js +45 -0
- package/lib/v2/lanqiao/maintainer.js +5 -0
- package/lib/v2/lanqiao/questions.js +52 -0
- package/lib/v2/lanqiao/radar.js +25 -0
- package/lib/v2/lanqiao/router.js +5 -0
- package/lib/v2/lanqiao/templates/courseDesc.art +1 -0
- package/lib/v2/lanqiao/utils.js +12 -0
- package/lib/v2/lativ/index.js +42 -0
- package/lib/v2/lativ/maintainer.js +3 -0
- package/lib/v2/lativ/radar.js +13 -0
- package/lib/v2/lativ/router.js +3 -0
- package/lib/v2/lativ/templates/detail.art +9 -0
- package/lib/v2/leiphone/index.js +25 -0
- package/lib/v2/leiphone/maintainer.js +5 -0
- package/lib/v2/leiphone/newsflash.js +19 -0
- package/lib/v2/leiphone/radar.js +25 -0
- package/lib/v2/leiphone/router.js +4 -0
- package/lib/v2/leiphone/utils.js +41 -0
- package/lib/v2/line/maintainer.js +3 -0
- package/lib/v2/line/radar.js +13 -0
- package/lib/v2/line/router.js +3 -0
- package/lib/v2/line/today.js +80 -0
- package/lib/v2/medsci/index.js +67 -0
- package/lib/v2/medsci/maintainer.js +3 -0
- package/lib/v2/medsci/radar.js +13 -0
- package/lib/v2/medsci/router.js +3 -0
- package/lib/v2/netease/maintainer.js +1 -0
- package/lib/v2/netease/radar.js +10 -2
- package/lib/v2/netease/router.js +1 -0
- package/lib/v2/netease/today.js +55 -0
- package/lib/v2/nikkei-cn/index.js +77 -0
- package/lib/v2/nikkei-cn/maintainer.js +3 -0
- package/lib/v2/nikkei-cn/radar.js +21 -0
- package/lib/v2/nikkei-cn/router.js +3 -0
- package/lib/v2/now/maintainer.js +3 -0
- package/lib/v2/now/news.js +66 -0
- package/lib/v2/now/radar.js +13 -0
- package/lib/v2/now/router.js +3 -0
- package/lib/v2/qidiantu/index.js +87 -0
- package/lib/v2/qidiantu/maintainer.js +4 -0
- package/lib/v2/qidiantu/radar.js +19 -0
- package/lib/v2/qidiantu/router.js +3 -0
- package/lib/v2/ruc/hr.js +22 -16
- package/lib/v2/shmeea/index.js +44 -0
- package/lib/v2/shmeea/maintainer.js +3 -0
- package/lib/v2/shmeea/radar.js +13 -0
- package/lib/v2/shmeea/router.js +3 -0
- package/lib/v2/ssm/maintainer.js +3 -0
- package/lib/v2/ssm/news.js +38 -0
- package/lib/v2/ssm/radar.js +13 -0
- package/lib/v2/ssm/router.js +3 -0
- package/lib/v2/ssm/templates/news.art +1 -0
- package/lib/v2/swissinfo/index.js +1 -0
- package/lib/v2/ucas/index.js +59 -0
- package/lib/v2/ucas/maintainer.js +3 -0
- package/lib/v2/ucas/rader.js +47 -0
- package/lib/v2/ucas/router.js +3 -0
- package/lib/v2/uibe/hr.js +19 -15
- package/lib/v2/ulapia/index.js +47 -0
- package/lib/v2/ulapia/maintainer.js +3 -0
- package/lib/v2/ulapia/radar.js +55 -0
- package/lib/v2/ulapia/research.js +38 -0
- package/lib/v2/ulapia/router.js +4 -0
- package/lib/v2/wallstreetcn/live.js +40 -0
- package/lib/v2/wallstreetcn/maintainer.js +5 -0
- package/lib/v2/wallstreetcn/news.js +61 -0
- package/lib/v2/wallstreetcn/radar.js +19 -0
- package/lib/v2/wallstreetcn/router.js +5 -0
- package/lib/v2/xaut/index.js +72 -0
- package/lib/v2/xaut/jwc.js +65 -0
- package/lib/v2/xaut/maintainer.js +5 -0
- package/lib/v2/xaut/radar.js +23 -0
- package/lib/v2/xaut/router.js +5 -0
- package/lib/v2/xaut/rsc.js +67 -0
- package/lib/v2/zjgtjy/index.js +46 -0
- package/lib/v2/zjgtjy/maintainer.js +3 -0
- package/lib/v2/zjgtjy/radar.js +31 -0
- package/lib/v2/zjgtjy/router.js +3 -0
- package/package.json +1 -1
- package/lib/routes/hackernews/story.js +0 -60
- package/lib/routes/medsci/recommend.js +0 -51
- package/lib/routes/universities/cqwu/news.js +0 -39
- package/lib/routes/wallstreetcn/live.js +0 -44
- package/lib/routes/wallstreetcn/news.js +0 -33
package/README.md
CHANGED
|
@@ -37,7 +37,7 @@ RSSHub 是一个开源、简单易用、易于扩展的 RSS 生成器,可以
|
|
|
37
37
|
|
|
38
38
|
### Sponsors
|
|
39
39
|
|
|
40
|
-
[Sayori Studio](https://t.me/SayoriStudio) . [Sion Kazama](https://blog.sion.moe) . [琚致远](https://
|
|
40
|
+
[Sayori Studio](https://t.me/SayoriStudio) . [Sion Kazama](https://blog.sion.moe) . [琚致远](https://wineso.me/) . [Rolly RSS 阅读器](https://www.coolapk.com/apk/239500) . [mokeyjay](https://www.mokeyjay.com/) . [萌开源联盟](https://www.moeunion.com) . [hooke007](https://github.com/hooke007/MPV_lazy) . [feeds.pub](https://feeds.pub)
|
|
41
41
|
|
|
42
42
|
[](https://docs.rsshub.app/en/support/)
|
|
43
43
|
|
|
@@ -112,7 +112,7 @@ module.exports = async (ctx, next) => {
|
|
|
112
112
|
$ele.removeAttr(e);
|
|
113
113
|
});
|
|
114
114
|
});
|
|
115
|
-
item.description =
|
|
115
|
+
item.description = $('body').html() + '' + (config.suffix || '');
|
|
116
116
|
}
|
|
117
117
|
return item;
|
|
118
118
|
};
|
package/lib/radar-rules.js
CHANGED
|
@@ -2708,17 +2708,6 @@ module.exports = {
|
|
|
2708
2708
|
},
|
|
2709
2709
|
],
|
|
2710
2710
|
},
|
|
2711
|
-
'eventernote.com': {
|
|
2712
|
-
_name: 'Eventernote',
|
|
2713
|
-
www: [
|
|
2714
|
-
{
|
|
2715
|
-
title: '声优活动及演唱会',
|
|
2716
|
-
docs: 'https://docs.rsshub.app/anime.html#eventernote',
|
|
2717
|
-
source: '/actors/:name/:id/events',
|
|
2718
|
-
target: '/eventernote/actors/:name/:id',
|
|
2719
|
-
},
|
|
2720
|
-
],
|
|
2721
|
-
},
|
|
2722
2711
|
'instagram.com': {
|
|
2723
2712
|
_name: 'Instagram',
|
|
2724
2713
|
www: [
|
|
@@ -2799,31 +2788,6 @@ module.exports = {
|
|
|
2799
2788
|
},
|
|
2800
2789
|
],
|
|
2801
2790
|
},
|
|
2802
|
-
'cqwu.net': {
|
|
2803
|
-
_name: '重庆文理学院',
|
|
2804
|
-
www: [
|
|
2805
|
-
{
|
|
2806
|
-
title: '通知',
|
|
2807
|
-
docs: 'https://docs.rsshub.app/university.html#chong-qing-wen-li-xue-yuan',
|
|
2808
|
-
source: '/:type',
|
|
2809
|
-
target: (params) => {
|
|
2810
|
-
if (params.type === 'channel_7721.html') {
|
|
2811
|
-
return '/cqwu/news/notify';
|
|
2812
|
-
}
|
|
2813
|
-
},
|
|
2814
|
-
},
|
|
2815
|
-
{
|
|
2816
|
-
title: '学术活动',
|
|
2817
|
-
docs: 'https://docs.rsshub.app/university.html#chong-qing-wen-li-xue-yuan',
|
|
2818
|
-
source: '/:type',
|
|
2819
|
-
target: (params) => {
|
|
2820
|
-
if (params.type === 'channel_7722.html') {
|
|
2821
|
-
return '/cqwu/news/academiceve';
|
|
2822
|
-
}
|
|
2823
|
-
},
|
|
2824
|
-
},
|
|
2825
|
-
],
|
|
2826
|
-
},
|
|
2827
2791
|
'trakt.tv': {
|
|
2828
2792
|
_name: 'Trakt.tv',
|
|
2829
2793
|
'.': [
|
package/lib/router.js
CHANGED
|
@@ -89,7 +89,7 @@ router.get('/twreporter/category/:cid', lazyloadRouteHandler('./routes/twreporte
|
|
|
89
89
|
router.get('/weibo/user/:uid/:routeParams?', lazyloadRouteHandler('./routes/weibo/user'));
|
|
90
90
|
router.get('/weibo/keyword/:keyword/:routeParams?', lazyloadRouteHandler('./routes/weibo/keyword'));
|
|
91
91
|
router.get('/weibo/search/hot', lazyloadRouteHandler('./routes/weibo/search/hot'));
|
|
92
|
-
router.get('/weibo/super_index/:id/:routeParams?', lazyloadRouteHandler('./routes/weibo/super_index'));
|
|
92
|
+
router.get('/weibo/super_index/:id/:type?/:routeParams?', lazyloadRouteHandler('./routes/weibo/super_index'));
|
|
93
93
|
router.get('/weibo/oasis/user/:userid', lazyloadRouteHandler('./routes/weibo/oasis/user'));
|
|
94
94
|
|
|
95
95
|
// 贴吧
|
|
@@ -406,6 +406,7 @@ router.get('/tuicool/mags/:type', lazyloadRouteHandler('./routes/tuicool/mags'))
|
|
|
406
406
|
// Hexo
|
|
407
407
|
router.get('/hexo/next/:url', lazyloadRouteHandler('./routes/hexo/next'));
|
|
408
408
|
router.get('/hexo/yilia/:url', lazyloadRouteHandler('./routes/hexo/yilia'));
|
|
409
|
+
router.get('/hexo/fluid/:url', lazyloadRouteHandler('./routes/hexo/fluid'));
|
|
409
410
|
|
|
410
411
|
// cpython
|
|
411
412
|
router.get('/cpython/:pre?', lazyloadRouteHandler('./routes/cpython'));
|
|
@@ -511,7 +512,7 @@ router.get('/wechat/csm/:id', lazyloadRouteHandler('./routes/tencent/wechat/csm'
|
|
|
511
512
|
router.get('/wechat/ce/:id', lazyloadRouteHandler('./routes/tencent/wechat/ce'));
|
|
512
513
|
router.get('/wechat/announce', lazyloadRouteHandler('./routes/tencent/wechat/announce'));
|
|
513
514
|
router.get('/wechat/miniprogram/plugins', lazyloadRouteHandler('./routes/tencent/wechat/miniprogram/plugins'));
|
|
514
|
-
router.get('/wechat/tgchannel/:id', lazyloadRouteHandler('./routes/tencent/wechat/tgchannel'));
|
|
515
|
+
router.get('/wechat/tgchannel/:id/:mpName?', lazyloadRouteHandler('./routes/tencent/wechat/tgchannel'));
|
|
515
516
|
router.get('/wechat/uread/:userid', lazyloadRouteHandler('./routes/tencent/wechat/uread'));
|
|
516
517
|
router.get('/wechat/ershicimi/:id', lazyloadRouteHandler('./routes/tencent/wechat/ershcimi'));
|
|
517
518
|
router.get('/wechat/wjdn/:id', lazyloadRouteHandler('./routes/tencent/wechat/wjdn'));
|
|
@@ -719,9 +720,6 @@ router.get('/cqu/youth/:category', lazyloadRouteHandler('./routes/universities/c
|
|
|
719
720
|
router.get('/cqu/sci/:category', lazyloadRouteHandler('./routes/universities/cqu/sci/info'));
|
|
720
721
|
router.get('/cqu/net/:category', lazyloadRouteHandler('./routes/universities/cqu/net/info'));
|
|
721
722
|
|
|
722
|
-
// 重庆文理学院
|
|
723
|
-
router.get('/cqwu/news/:type?', lazyloadRouteHandler('./routes/universities/cqwu/news'));
|
|
724
|
-
|
|
725
723
|
// 南京信息工程大学
|
|
726
724
|
router.get('/nuist/bulletin/:category?', lazyloadRouteHandler('./routes/universities/nuist/bulletin'));
|
|
727
725
|
router.get('/nuist/jwc/:category?', lazyloadRouteHandler('./routes/universities/nuist/jwc'));
|
|
@@ -1121,9 +1119,11 @@ router.get('/eeo/:column?/:category?', lazyloadRouteHandler('./routes/eeo/index'
|
|
|
1121
1119
|
router.get('/tencentvideo/playlist/:id', lazyloadRouteHandler('./routes/tencent/video/playlist'));
|
|
1122
1120
|
|
|
1123
1121
|
// 看漫画
|
|
1124
|
-
router.get('/manhuagui/comic/:id', lazyloadRouteHandler('./routes/manhuagui/comic'));
|
|
1125
|
-
router.get('/mhgui/comic/:id', lazyloadRouteHandler('./routes/mhgui/comic'));
|
|
1126
|
-
router.get('/twmanhuagui/comic/:id', lazyloadRouteHandler('./routes/twmanhuagui/comic'));
|
|
1122
|
+
router.get('/manhuagui/comic/:id/:chapterCnt?', lazyloadRouteHandler('./routes/manhuagui/comic'));
|
|
1123
|
+
router.get('/mhgui/comic/:id/:chapterCnt?', lazyloadRouteHandler('./routes/mhgui/comic'));
|
|
1124
|
+
router.get('/twmanhuagui/comic/:id/:chapterCnt?', lazyloadRouteHandler('./routes/twmanhuagui/comic'));
|
|
1125
|
+
// 拷贝漫画
|
|
1126
|
+
router.get('/copymanga/comic/:id/:chapterCnt?', lazyloadRouteHandler('./routes/copymanga/comic'));
|
|
1127
1127
|
|
|
1128
1128
|
// 拷贝漫画
|
|
1129
1129
|
router.get('/copymanga/comic/:id', lazyloadRouteHandler('./routes/copymanga/comic'));
|
|
@@ -1286,8 +1286,8 @@ router.get('/taobao/zhongchou/:type?', lazyloadRouteHandler('./routes/taobao/zho
|
|
|
1286
1286
|
router.get('/allpoetry/:order?', lazyloadRouteHandler('./routes/allpoetry/order'));
|
|
1287
1287
|
|
|
1288
1288
|
// 华尔街见闻
|
|
1289
|
-
router.get('/wallstreetcn/news/global', lazyloadRouteHandler('./routes/wallstreetcn/news'));
|
|
1290
|
-
router.get('/wallstreetcn/live/:channel?', lazyloadRouteHandler('./routes/wallstreetcn/live'));
|
|
1289
|
+
// router.get('/wallstreetcn/news/global', lazyloadRouteHandler('./routes/wallstreetcn/news'));
|
|
1290
|
+
// router.get('/wallstreetcn/live/:channel?', lazyloadRouteHandler('./routes/wallstreetcn/live'));
|
|
1291
1291
|
|
|
1292
1292
|
// 多抓鱼搜索
|
|
1293
1293
|
router.get('/duozhuayu/search/:wd', lazyloadRouteHandler('./routes/duozhuayu/search'));
|
|
@@ -1434,7 +1434,7 @@ router.get('/aisixiang/ranking/:type?/:range?', lazyloadRouteHandler('./routes/a
|
|
|
1434
1434
|
router.get('/aisixiang/thinktank/:name/:type?', lazyloadRouteHandler('./routes/aisixiang/thinktank'));
|
|
1435
1435
|
|
|
1436
1436
|
// Hacker News
|
|
1437
|
-
router.get('/hackernews/:section/:type?', lazyloadRouteHandler('./routes/hackernews/story'));
|
|
1437
|
+
// router.get('/hackernews/:section/:type?', lazyloadRouteHandler('./routes/hackernews/story'));
|
|
1438
1438
|
|
|
1439
1439
|
// LeetCode
|
|
1440
1440
|
router.get('/leetcode/articles', lazyloadRouteHandler('./routes/leetcode/articles'));
|
|
@@ -2126,6 +2126,8 @@ router.get('/weidian/goods/:id', lazyloadRouteHandler('./routes/weidian/goods'))
|
|
|
2126
2126
|
|
|
2127
2127
|
// 有赞
|
|
2128
2128
|
router.get('/youzan/goods/:id', lazyloadRouteHandler('./routes/youzan/goods'));
|
|
2129
|
+
// 有知有行
|
|
2130
|
+
router.get('/youzhiyouxing/materials', lazyloadRouteHandler('./routes/youzhiyouxing/materials'));
|
|
2129
2131
|
// 币世界快讯
|
|
2130
2132
|
router.get('/bishijie/kuaixun', lazyloadRouteHandler('./routes/bishijie/kuaixun'));
|
|
2131
2133
|
|
|
@@ -2599,6 +2601,8 @@ router.get('/ifeng/feng/:id/:type', lazyloadRouteHandler('./routes/ifeng/feng'))
|
|
|
2599
2601
|
router.get('/novel/d1bz/:category/:id', lazyloadRouteHandler('./routes/d1bz/novel'));
|
|
2600
2602
|
|
|
2601
2603
|
// 爱下电子书
|
|
2604
|
+
router.get('/axdzs/:novel', lazyloadRouteHandler('./routes/novel/axdzs'));
|
|
2605
|
+
// deprecated
|
|
2602
2606
|
router.get('/axdzs/:id1/:id2', lazyloadRouteHandler('./routes/novel/axdzs'));
|
|
2603
2607
|
|
|
2604
2608
|
// HackerOne
|
|
@@ -3460,9 +3464,6 @@ router.get('/npc/:caty', lazyloadRouteHandler('./routes/npc/index'));
|
|
|
3460
3464
|
// 高科技行业门户
|
|
3461
3465
|
router.get('/ofweek/news', lazyloadRouteHandler('./routes/ofweek/news'));
|
|
3462
3466
|
|
|
3463
|
-
// eventernote
|
|
3464
|
-
router.get('/eventernote/actors/:name/:id', lazyloadRouteHandler('./routes/eventernote/actors'));
|
|
3465
|
-
|
|
3466
3467
|
// 八阕
|
|
3467
3468
|
router.get('/popyard/:caty?', lazyloadRouteHandler('./routes/popyard/index'));
|
|
3468
3469
|
|
|
@@ -3728,7 +3729,7 @@ router.get('/proletar/:type?/:id?', lazyloadRouteHandler('./routes/proletar/inde
|
|
|
3728
3729
|
router.get('/qttabbar/change-log', lazyloadRouteHandler('./routes/qttabbar/change-log'));
|
|
3729
3730
|
|
|
3730
3731
|
// 酷18
|
|
3731
|
-
router.get('/cool18/:id?/:type?/:keyword?', lazyloadRouteHandler('./routes/cool18/index'));
|
|
3732
|
+
// router.get('/cool18/:id?/:type?/:keyword?', lazyloadRouteHandler('./routes/cool18/index'));
|
|
3732
3733
|
|
|
3733
3734
|
// 美国贸易代表办公室
|
|
3734
3735
|
router.get('/ustr/press-releases/:year?/:month?', lazyloadRouteHandler('./routes/us/ustr/press-releases'));
|
|
@@ -4254,4 +4255,7 @@ router.get('/fashionnetwork/headline/:country?', lazyloadRouteHandler('./routes/
|
|
|
4254
4255
|
|
|
4255
4256
|
// Deprecated: DO NOT ADD ROUTE HERE
|
|
4256
4257
|
|
|
4258
|
+
// KBS
|
|
4259
|
+
router.get('/kbs/today/:language?', lazyloadRouteHandler('./routes/kbs/today'));
|
|
4260
|
+
|
|
4257
4261
|
module.exports = router;
|
|
@@ -6,15 +6,15 @@ module.exports = async (ctx) => {
|
|
|
6
6
|
|
|
7
7
|
const res = await got.get(url);
|
|
8
8
|
const $ = cheerio.load(res.data);
|
|
9
|
-
const list = $('.
|
|
9
|
+
const list = $('.cYolgs > a').get();
|
|
10
10
|
|
|
11
11
|
const out = await Promise.all(
|
|
12
12
|
list.map(async (item) => {
|
|
13
13
|
const $ = cheerio.load(item);
|
|
14
|
-
const title = $('.
|
|
15
|
-
const partial = $('
|
|
14
|
+
const title = $('.styled__Title-sc-14lmmht-10').text();
|
|
15
|
+
const partial = $('a').attr('href');
|
|
16
16
|
const address = `https://aeon.co${partial}`;
|
|
17
|
-
const author = $('.
|
|
17
|
+
const author = $('.styled__Author-sc-14lmmht-12').text();
|
|
18
18
|
|
|
19
19
|
const cache = await ctx.cache.get(address);
|
|
20
20
|
if (cache) {
|
|
@@ -23,7 +23,7 @@ module.exports = async (ctx) => {
|
|
|
23
23
|
|
|
24
24
|
const res = await got.get(address);
|
|
25
25
|
const capture = cheerio.load(res.data);
|
|
26
|
-
const time = capture('.
|
|
26
|
+
const time = capture('.article__PublishedDate-br4ey4-14').text();
|
|
27
27
|
|
|
28
28
|
capture('div.newsletter-signup').remove();
|
|
29
29
|
capture('p.pullquote').remove();
|
|
@@ -31,34 +31,25 @@ module.exports = async (ctx) => {
|
|
|
31
31
|
capture('div.article__shares').remove();
|
|
32
32
|
|
|
33
33
|
let bio;
|
|
34
|
-
const authorInfo = '.
|
|
34
|
+
const authorInfo = '.VEKKL';
|
|
35
35
|
if (capture(authorInfo).html() !== null) {
|
|
36
|
-
bio =
|
|
37
|
-
|
|
36
|
+
bio =
|
|
37
|
+
`<br><br><hr><span><p>` +
|
|
38
|
+
capture(authorInfo)
|
|
39
|
+
.html()
|
|
40
|
+
.replace(/<\/?span[^>]*>/g, '')
|
|
41
|
+
.replace(/<\/?p[^>]*>/g, ' ') +
|
|
42
|
+
`</p></span><hr>`;
|
|
38
43
|
} else {
|
|
39
44
|
bio = '';
|
|
40
45
|
}
|
|
41
46
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
banner = `<img src="${imgLink}">`;
|
|
47
|
-
}
|
|
48
|
-
if (capture('.article__image__wrapper').html() !== null) {
|
|
49
|
-
banner = '';
|
|
50
|
-
capture('img').each((index, item) => {
|
|
51
|
-
item = $(item);
|
|
52
|
-
item.removeAttr('alt');
|
|
53
|
-
});
|
|
54
|
-
capture('.display-article').remove;
|
|
55
|
-
}
|
|
56
|
-
if (capture('.video__embed').html() !== null) {
|
|
57
|
-
banner = capture('div.video__embed').html();
|
|
58
|
-
capture('.article__header__subtitle').remove();
|
|
59
|
-
}
|
|
47
|
+
const imgLink = capture("head meta[property='og:image']").attr('content');
|
|
48
|
+
const banner = `<img src="${imgLink}">`;
|
|
49
|
+
|
|
50
|
+
// Currently this route is not perfectly compatible with '/videos'
|
|
60
51
|
|
|
61
|
-
const contents = banner + capture('.
|
|
52
|
+
const contents = banner + capture('.has-dropcap').html() + bio;
|
|
62
53
|
const single = {
|
|
63
54
|
title,
|
|
64
55
|
author,
|
|
@@ -20,10 +20,10 @@ module.exports = async (ctx) => {
|
|
|
20
20
|
list
|
|
21
21
|
.map((index, item) => {
|
|
22
22
|
item = $(item);
|
|
23
|
-
bookid = item.find('img').attr('data-src').split('/')[
|
|
23
|
+
bookid = item.find('img').attr('data-src').split('/')[4];
|
|
24
24
|
return {
|
|
25
25
|
title: item.find('.bookname').text(),
|
|
26
|
-
description: `${item.find('.booknamesub').text()} | ${item.find('.bprice').text()}<br><img src="https://image.bookwalker.com.tw/
|
|
26
|
+
description: `${item.find('.booknamesub').text()} | ${item.find('.bprice').text()}<br><img src="https://taiwan-image.bookwalker.com.tw/product/${bookid}/zoom_big_${bookid}.jpg">`,
|
|
27
27
|
link: item.find('a').attr('href'),
|
|
28
28
|
};
|
|
29
29
|
})
|
|
@@ -58,6 +58,8 @@ const parseDynamic = async (item, ctx) => {
|
|
|
58
58
|
const pubDate = new Date(item.lastupdate * 1000).toUTCString();
|
|
59
59
|
if (item.entityType === 'sponsorCard') {
|
|
60
60
|
return;
|
|
61
|
+
} else if (item.shareUrl === undefined) {
|
|
62
|
+
return;
|
|
61
63
|
}
|
|
62
64
|
const itemUrl = item.shareUrl.split('?')[0];
|
|
63
65
|
let description, title;
|
|
@@ -4,7 +4,8 @@ const got = require('@/utils/got');
|
|
|
4
4
|
// 直接调用拷贝漫画的接口
|
|
5
5
|
module.exports = async (ctx) => {
|
|
6
6
|
const { id } = ctx.params;
|
|
7
|
-
|
|
7
|
+
// 用于控制返回的章节数量
|
|
8
|
+
const chapterCnt = Number(ctx.params.chapterCnt || 0);
|
|
8
9
|
// 获取漫画列表
|
|
9
10
|
let bHasNextPage = false;
|
|
10
11
|
const iReqLimit = (ctx.queries && ctx.queries.limit) || 100;
|
|
@@ -62,6 +63,6 @@ module.exports = async (ctx) => {
|
|
|
62
63
|
title: `拷贝漫画 - ${bookTitle}`,
|
|
63
64
|
link: `https://copymanga.com/comic/${id}`,
|
|
64
65
|
description: bookIntro,
|
|
65
|
-
item: chapterArray.map(genResult),
|
|
66
|
+
item: chapterArray.map(genResult).slice(0, chapterCnt),
|
|
66
67
|
};
|
|
67
68
|
};
|
|
@@ -9,12 +9,15 @@ async function load(link, id) {
|
|
|
9
9
|
|
|
10
10
|
const context = $('.comic-item-container > .meta-info-container');
|
|
11
11
|
const img = context.find('img.img-comic');
|
|
12
|
-
const transcript = context.find('.
|
|
12
|
+
const transcript = context.find('.comic-transcript p').html();
|
|
13
13
|
|
|
14
14
|
const title = img.attr('alt').replace('Dilbert by Scott Adams', id);
|
|
15
|
-
const src =
|
|
15
|
+
const src = img.attr('src');
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
let description = `<img src="${src}">`;
|
|
18
|
+
if (transcript) {
|
|
19
|
+
description += `<br/><p>${transcript}</p>`;
|
|
20
|
+
}
|
|
18
21
|
|
|
19
22
|
return {
|
|
20
23
|
title,
|
|
@@ -29,7 +32,7 @@ module.exports = async (ctx) => {
|
|
|
29
32
|
const feed = await parser.parseURL(feed_url);
|
|
30
33
|
const items = await Promise.all(
|
|
31
34
|
feed.items.slice(0, 7).map(async (item) => {
|
|
32
|
-
const link =
|
|
35
|
+
const link = item.link;
|
|
33
36
|
|
|
34
37
|
const single = {
|
|
35
38
|
pubDate: item.pubDate,
|
|
@@ -4,10 +4,13 @@ const { parseDate } = require('@/utils/parse-date');
|
|
|
4
4
|
const timezone = require('@/utils/timezone');
|
|
5
5
|
const host = 'https://www.dykszx.com';
|
|
6
6
|
|
|
7
|
+
// disable ssl check
|
|
8
|
+
const options = { https: { rejectUnauthorized: false } };
|
|
9
|
+
|
|
7
10
|
const getContent = (href, caches) => {
|
|
8
11
|
const newsPage = `${host}${href}`;
|
|
9
12
|
return caches.tryGet(newsPage, async () => {
|
|
10
|
-
const response = await got.get(newsPage);
|
|
13
|
+
const response = await got.get(newsPage, options);
|
|
11
14
|
const data = response.data;
|
|
12
15
|
const $ = cheerio.load(data);
|
|
13
16
|
const newsTime = $('body > div:nth-child(3) > div.page.w > div.shuxing.w')
|
|
@@ -31,7 +34,7 @@ const newsTypeObj = {
|
|
|
31
34
|
|
|
32
35
|
module.exports = async (ctx) => {
|
|
33
36
|
const newsType = ctx.params.type || 'all';
|
|
34
|
-
const response = await got
|
|
37
|
+
const response = await got(host, options);
|
|
35
38
|
const data = response.data;
|
|
36
39
|
const $ = cheerio.load(data);
|
|
37
40
|
const newsList = $(newsTypeObj[newsType].selector).toArray();
|
|
@@ -1,56 +1,58 @@
|
|
|
1
1
|
const got = require('@/utils/got');
|
|
2
2
|
const cheerio = require('cheerio');
|
|
3
|
-
const
|
|
3
|
+
const timezone = require('@/utils/timezone');
|
|
4
|
+
const { parseDate } = require('@/utils/parse-date');
|
|
4
5
|
|
|
5
6
|
module.exports = async (ctx) => {
|
|
6
7
|
const link = `https://news.futunn.com/main`;
|
|
7
8
|
|
|
8
9
|
const response = await got.get(link);
|
|
9
10
|
const $ = cheerio.load(response.data);
|
|
10
|
-
|
|
11
|
-
const
|
|
11
|
+
|
|
12
|
+
const contents = $('script:not([src]):contains("window._params")');
|
|
13
|
+
const params = contents.html().trim().slice(17, -1);
|
|
12
14
|
|
|
13
15
|
const newslist = JSON.parse(params).preList;
|
|
14
16
|
|
|
15
17
|
const out = await Promise.all(
|
|
16
|
-
newslist
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
18
|
+
newslist
|
|
19
|
+
.filter((info) => {
|
|
20
|
+
const url = new URL(info.url);
|
|
21
|
+
if (url.hostname !== 'news.futunn.com') {
|
|
22
|
+
// ignore videos.futunn.com
|
|
23
|
+
return false;
|
|
24
|
+
} else if (url.searchParams.get('src') !== '3') {
|
|
25
|
+
// ignore src=12 redirecting to mp.weixin.qq.com
|
|
26
|
+
return false;
|
|
27
|
+
}
|
|
28
|
+
return true;
|
|
29
|
+
})
|
|
30
|
+
.map((info) =>
|
|
31
|
+
ctx.cache.tryGet(info.url, async () => {
|
|
32
|
+
const response = await got({
|
|
33
|
+
url: info.url,
|
|
34
|
+
method: 'get',
|
|
35
|
+
headers: {
|
|
36
|
+
Referer: link,
|
|
37
|
+
},
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
const $ = cheerio.load(response.data);
|
|
41
|
+
const description = $('div.newsDetailBox div.main div.inner').html();
|
|
42
|
+
const date = $('div.timeBar').children().remove().end().text().trim();
|
|
43
|
+
|
|
44
|
+
info.link = info.url;
|
|
45
|
+
info.description = description;
|
|
46
|
+
info.pubDate = timezone(parseDate(date, 'YYYY/MM/DD HH:mm'), +8);
|
|
47
|
+
|
|
48
|
+
return info;
|
|
49
|
+
})
|
|
50
|
+
)
|
|
48
51
|
);
|
|
49
|
-
const outfilter = out.filter((t) => t.description !== '原文已被删除');
|
|
50
52
|
|
|
51
53
|
ctx.state.data = {
|
|
52
54
|
title: `富途牛牛要闻`,
|
|
53
55
|
link,
|
|
54
|
-
item:
|
|
56
|
+
item: out,
|
|
55
57
|
};
|
|
56
58
|
};
|
|
@@ -27,19 +27,21 @@ module.exports = async (ctx) => {
|
|
|
27
27
|
ctx.state.data = {
|
|
28
28
|
title: 'HackerOne Hacker Activity',
|
|
29
29
|
link: 'https://hackerone.com/hacktivity',
|
|
30
|
-
item: response.data.data.hacktivity_items.edges
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
30
|
+
item: response.data.data.hacktivity_items.edges
|
|
31
|
+
.filter((item) => item.node.type === 'Disclosed')
|
|
32
|
+
.map((item) => {
|
|
33
|
+
const author = item.node.reporter ? item.node.reporter.username : 'Someone';
|
|
34
|
+
const vendor = item.node.team.name;
|
|
35
|
+
const state = item.node.report.substate.replace(/^[a-z]/g, (L) => L.toUpperCase());
|
|
36
|
+
const severity = item.node.severity_rating ? item.node.severity_rating.replace(/^[a-z]/g, (L) => L.toUpperCase()) : 'No Rating';
|
|
37
|
+
const awarded = item.node.total_awarded_amount ? item.node.total_awarded_amount : 0;
|
|
38
|
+
return {
|
|
39
|
+
title: item.node.report.title,
|
|
40
|
+
description: `By ${author} to ${vendor} | ${state} | ${severity} | $${awarded}`,
|
|
41
|
+
author,
|
|
42
|
+
pubDate: new Date(item.node.latest_disclosable_activity_at).toUTCString(),
|
|
43
|
+
link: `https://hackerone.com/reports/${item.node.databaseId}`,
|
|
44
|
+
};
|
|
45
|
+
}),
|
|
44
46
|
};
|
|
45
47
|
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
const cheerio = require('cheerio');
|
|
2
|
+
const got = require('@/utils/got');
|
|
3
|
+
|
|
4
|
+
module.exports = async (ctx) => {
|
|
5
|
+
const url = `http://${ctx.params.url}`;
|
|
6
|
+
const res = await got.get(`${url}/archives/`);
|
|
7
|
+
const $ = cheerio.load(res.data);
|
|
8
|
+
|
|
9
|
+
const list = $('.list-group-item');
|
|
10
|
+
|
|
11
|
+
const count = [];
|
|
12
|
+
for (let i = 0; i < Math.min(list.length, 5); i++) {
|
|
13
|
+
count.push(i);
|
|
14
|
+
}
|
|
15
|
+
const out = await Promise.all(
|
|
16
|
+
count.map(async (i) => {
|
|
17
|
+
const each = $(list[i]);
|
|
18
|
+
const storyLink = each.attr('href');
|
|
19
|
+
const item = {
|
|
20
|
+
title: each.find('.archive-post-title').text(),
|
|
21
|
+
link: new URL(storyLink, url),
|
|
22
|
+
};
|
|
23
|
+
const key = item.link;
|
|
24
|
+
const value = await ctx.cache.get(key);
|
|
25
|
+
|
|
26
|
+
if (value) {
|
|
27
|
+
item.description = value;
|
|
28
|
+
} else {
|
|
29
|
+
const storyDeatil = await got.get(item.link);
|
|
30
|
+
const data = storyDeatil.data;
|
|
31
|
+
const $ = cheerio.load(data);
|
|
32
|
+
item.pubDate = $('time').attr('datetime');
|
|
33
|
+
item.description = $('.markdown-body').html();
|
|
34
|
+
ctx.cache.set(key, item.description);
|
|
35
|
+
}
|
|
36
|
+
return Promise.resolve(item);
|
|
37
|
+
})
|
|
38
|
+
);
|
|
39
|
+
ctx.state.data = {
|
|
40
|
+
title: $('.navbar-brand strong').text(),
|
|
41
|
+
link: url,
|
|
42
|
+
description: $('[name=description]').attr('content'),
|
|
43
|
+
item: out,
|
|
44
|
+
};
|
|
45
|
+
};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
const got = require('@/utils/got');
|
|
2
|
+
const cheerio = require('cheerio');
|
|
3
|
+
const timezone = require('@/utils/timezone');
|
|
4
|
+
const { parseDate } = require('@/utils/parse-date');
|
|
5
|
+
|
|
6
|
+
module.exports = async (ctx) => {
|
|
7
|
+
const language = ctx.params.language || 'e';
|
|
8
|
+
|
|
9
|
+
const rootUrl = 'http://world.kbs.co.kr';
|
|
10
|
+
const currentUrl = `${rootUrl}/service/news_today.htm?lang=${language}`;
|
|
11
|
+
|
|
12
|
+
const response = await got({
|
|
13
|
+
method: 'get',
|
|
14
|
+
url: currentUrl,
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
const $ = cheerio.load(response.data);
|
|
18
|
+
|
|
19
|
+
const list = $('.comp_text_1x article')
|
|
20
|
+
.map((_, item) => {
|
|
21
|
+
item = $(item);
|
|
22
|
+
|
|
23
|
+
const a = item.find('h2 a');
|
|
24
|
+
|
|
25
|
+
return {
|
|
26
|
+
title: a.text(),
|
|
27
|
+
category: item.find('.cate').text(),
|
|
28
|
+
link: `${rootUrl}/service${a.attr('href').replace('./', '/')}`,
|
|
29
|
+
pubDate: timezone(parseDate(item.find('.date').text()), +9),
|
|
30
|
+
};
|
|
31
|
+
})
|
|
32
|
+
.get();
|
|
33
|
+
|
|
34
|
+
const items = await Promise.all(
|
|
35
|
+
list.map((item) =>
|
|
36
|
+
ctx.cache.tryGet(item.link, async () => {
|
|
37
|
+
const detailResponse = await got({
|
|
38
|
+
method: 'get',
|
|
39
|
+
url: item.link,
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
const content = cheerio.load(detailResponse.data);
|
|
43
|
+
|
|
44
|
+
item.description = content('.body_txt').html();
|
|
45
|
+
|
|
46
|
+
return item;
|
|
47
|
+
})
|
|
48
|
+
)
|
|
49
|
+
);
|
|
50
|
+
|
|
51
|
+
ctx.state.data = {
|
|
52
|
+
title: `Latest News | KBS WORLD`,
|
|
53
|
+
link: currentUrl,
|
|
54
|
+
item: items,
|
|
55
|
+
};
|
|
56
|
+
};
|