rsshub 1.0.0-master.e0d44f2 → 1.0.0-master.e149ee6
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/lib/middleware/cache/index.js +7 -1
- package/lib/router.js +54 -20
- package/lib/routes/apnews/topics.js +1 -1
- package/lib/routes/arknights/japan.js +26 -0
- package/lib/routes/asiantolick/index.js +64 -0
- package/lib/routes/copymanga/comic.js +67 -0
- package/lib/routes/coronavirus/yahoo-japan.js +77 -0
- package/lib/routes/dekudeals/index.js +1 -1
- package/lib/routes/discuss/index.js +71 -0
- package/lib/routes/ehentai/search.js +6 -1
- package/lib/routes/ehentai/tag.js +1 -1
- package/lib/routes/gov/beijing/eea.js +12 -6
- package/lib/routes/hkej/index.js +132 -0
- package/lib/routes/hkgolden/index.js +110 -0
- package/lib/routes/initium/full.js +5 -7
- package/lib/routes/instagram/index.js +1 -1
- package/lib/routes/jandan/pic.js +1 -1
- package/lib/routes/lofter/tag.js +41 -37
- package/lib/routes/micmicidol/article.js +28 -0
- package/lib/routes/micmicidol/latest.js +3 -0
- package/lib/routes/micmicidol/parse.js +22 -0
- package/lib/routes/micmicidol/search.js +7 -0
- package/lib/routes/netflix/newsroom.js +82 -0
- package/lib/routes/now/rank.js +31 -0
- package/lib/routes/sbs/chinese.js +70 -0
- package/lib/routes/secrss/author.js +22 -0
- package/lib/routes/secrss/category.js +25 -0
- package/lib/routes/universities/scut/jwc/school.js +121 -0
- package/lib/routes/universities/ynnu/edu/base64.js +351 -0
- package/lib/routes/universities/ynnu/edu/news.js +109 -0
- package/lib/routes/uwants/index.js +70 -0
- package/lib/routes/who/speeches.js +45 -0
- package/lib/routes/yuzu-emu/entry.js +1 -1
- package/lib/v2/2048/index.js +91 -0
- package/lib/v2/2048/maintainer.js +3 -0
- package/lib/v2/2048/radar.js +0 -0
- package/lib/v2/2048/router.js +3 -0
- package/lib/v2/2048/templates/download.art +1 -0
- package/lib/v2/ash-maurya/index.js +54 -0
- package/lib/v2/ash-maurya/maintainer.js +3 -0
- package/lib/v2/ash-maurya/radar.js +13 -0
- package/lib/v2/ash-maurya/router.js +3 -0
- package/lib/v2/bit/maintainer.js +3 -0
- package/lib/v2/bit/radar.js +13 -0
- package/lib/v2/bit/router.js +3 -0
- package/lib/v2/bit/rszhaopin.js +30 -0
- package/lib/{routes/szse/rule.js → v2/bnu/bs.js} +16 -9
- package/lib/v2/bnu/maintainer.js +3 -0
- package/lib/v2/bnu/radar.js +13 -0
- package/lib/v2/bnu/router.js +3 -0
- package/lib/v2/bupt/maintainer.js +3 -0
- package/lib/v2/bupt/radar.js +13 -0
- package/lib/v2/bupt/rczp.js +51 -0
- package/lib/v2/bupt/router.js +3 -0
- package/lib/v2/ccac/maintainer.js +3 -0
- package/lib/v2/ccac/news.js +47 -0
- package/lib/v2/ccac/radar.js +13 -0
- package/lib/v2/ccac/router.js +3 -0
- package/lib/v2/ccac/utils.js +32 -0
- package/lib/v2/cebbank/all.js +48 -0
- package/lib/v2/cebbank/history.js +49 -0
- package/lib/v2/cebbank/maintainer.js +4 -0
- package/lib/v2/cebbank/radar.js +19 -0
- package/lib/v2/cebbank/router.js +4 -0
- package/lib/v2/cebbank/templates/allDes.art +2 -0
- package/lib/v2/cebbank/templates/historyDes.art +3 -0
- package/lib/v2/cebbank/utils.js +70 -0
- package/lib/v2/furstar/utils.js +1 -1
- package/lib/v2/getdr/index.js +47 -0
- package/lib/v2/getdr/maintainer.js +3 -0
- package/lib/v2/getdr/radar.js +13 -0
- package/lib/v2/getdr/router.js +3 -0
- package/lib/v2/hbr/maintainer.js +3 -0
- package/lib/v2/hbr/radar.js +13 -0
- package/lib/v2/hbr/router.js +3 -0
- package/lib/v2/hbr/topic.js +56 -0
- package/lib/v2/hkej/index.js +154 -0
- package/lib/v2/hkej/maintainer.js +3 -0
- package/lib/v2/hkej/radar.js +13 -0
- package/lib/v2/hkej/router.js +3 -0
- package/lib/v2/hkej/templates/articleImg.art +3 -0
- package/lib/v2/hkej/templates/description.art +2 -0
- package/lib/v2/hket/index.js +114 -0
- package/lib/v2/hket/maintainer.js +3 -0
- package/lib/v2/hket/radar.js +45 -0
- package/lib/v2/hket/router.js +3 -0
- package/lib/v2/hket/templates/description.art +1 -0
- package/lib/v2/hket/templates/image.art +1 -0
- package/lib/v2/hkjunkcall/index.js +53 -0
- package/lib/v2/hkjunkcall/maintainer.js +3 -0
- package/lib/v2/hkjunkcall/radar.js +13 -0
- package/lib/v2/hkjunkcall/router.js +3 -0
- package/lib/v2/hotchina/index.js +55 -0
- package/lib/v2/hotchina/maintainer.js +5 -0
- package/lib/v2/hotchina/radar.js +25 -0
- package/lib/v2/hotchina/router.js +3 -0
- package/lib/v2/icac/news.js +2 -3
- package/lib/v2/ithome/maintainer.js +3 -0
- package/lib/v2/ithome/radar.js +13 -0
- package/lib/v2/ithome/router.js +3 -0
- package/lib/v2/ithome/zt.js +54 -0
- package/lib/v2/lfsyd/home.js +42 -0
- package/lib/v2/lfsyd/maintainer.js +7 -0
- package/lib/v2/lfsyd/old_home.js +29 -0
- package/lib/v2/lfsyd/radar.js +39 -0
- package/lib/v2/lfsyd/router.js +6 -0
- package/lib/{routes → v2}/lfsyd/tag.js +7 -7
- package/lib/v2/lfsyd/templates/card.art +1 -0
- package/lib/{routes → v2}/lfsyd/user.js +7 -7
- package/lib/{routes → v2}/lfsyd/utils.js +47 -29
- package/lib/v2/literotica/category.js +55 -0
- package/lib/v2/literotica/maintainer.js +4 -0
- package/lib/v2/literotica/new.js +59 -0
- package/lib/v2/literotica/radar.js +19 -0
- package/lib/v2/literotica/router.js +4 -0
- package/lib/v2/mingpao/index.js +94 -0
- package/lib/v2/mingpao/maintainer.js +3 -0
- package/lib/v2/mingpao/radar.js +36 -0
- package/lib/v2/mingpao/router.js +3 -0
- package/lib/v2/mingpao/templates/description.art +2 -0
- package/lib/v2/mingpao/templates/fancybox.art +3 -0
- package/lib/v2/mvm/index.js +55 -0
- package/lib/v2/mvm/maintainer.js +3 -0
- package/lib/v2/mvm/radar.js +13 -0
- package/lib/v2/mvm/router.js +3 -0
- package/lib/v2/mydrivers/index.js +110 -0
- package/lib/v2/mydrivers/maintainer.js +3 -0
- package/lib/v2/mydrivers/radar.js +13 -0
- package/lib/v2/mydrivers/router.js +3 -0
- package/lib/v2/netease/maintainer.js +3 -0
- package/lib/v2/netease/radar.js +13 -0
- package/lib/{routes/netease/news → v2/netease}/rank.js +27 -20
- package/lib/v2/netease/router.js +3 -0
- package/lib/v2/ngocn2/index.js +56 -0
- package/lib/v2/ngocn2/maintainer.js +3 -0
- package/lib/v2/ngocn2/radar.js +13 -0
- package/lib/v2/ngocn2/router.js +3 -0
- package/lib/v2/people/liuyan.js +54 -0
- package/lib/v2/people/maintainer.js +3 -0
- package/lib/v2/people/radar.js +13 -0
- package/lib/v2/people/router.js +3 -0
- package/lib/v2/ruc/hr.js +52 -0
- package/lib/v2/ruc/maintainer.js +3 -0
- package/lib/v2/ruc/radar.js +13 -0
- package/lib/v2/ruc/router.js +3 -0
- package/lib/v2/sciencedirect/journal.js +62 -0
- package/lib/v2/sciencedirect/maintainer.js +3 -0
- package/lib/v2/sciencedirect/radar.js +13 -0
- package/lib/v2/sciencedirect/router.js +3 -0
- package/lib/v2/secnews/index.js +27 -0
- package/lib/v2/secnews/maintainer.js +3 -0
- package/lib/v2/secnews/radar.js +13 -0
- package/lib/v2/secnews/router.js +3 -0
- package/lib/v2/startuplatte/index.js +56 -0
- package/lib/v2/startuplatte/maintainer.js +3 -0
- package/lib/v2/startuplatte/radar.js +13 -0
- package/lib/v2/startuplatte/router.js +3 -0
- package/lib/v2/szse/maintainer.js +3 -0
- package/lib/v2/szse/radar.js +13 -0
- package/lib/v2/szse/router.js +3 -0
- package/lib/v2/szse/rule.js +51 -0
- package/lib/v2/timednews/maintainer.js +3 -0
- package/lib/v2/timednews/news.js +106 -0
- package/lib/v2/timednews/radar.js +57 -0
- package/lib/v2/timednews/router.js +3 -0
- package/lib/v2/uibe/hr.js +54 -0
- package/lib/v2/uibe/maintainer.js +3 -0
- package/lib/v2/uibe/radar.js +13 -0
- package/lib/v2/uibe/router.js +3 -0
- package/lib/v2/wangqiutiyu/anchor.js +42 -0
- package/lib/v2/wangqiutiyu/maintainer.js +3 -0
- package/lib/v2/wangqiutiyu/radar.js +13 -0
- package/lib/v2/wangqiutiyu/router.js +3 -0
- package/package.json +1 -1
- package/lib/routes/2048/bbs.js +0 -100
- package/lib/routes/hket/index.js +0 -129
- package/lib/routes/lfsyd/index.js +0 -50
|
@@ -114,7 +114,13 @@ module.exports = function (app) {
|
|
|
114
114
|
|
|
115
115
|
// Doesn't hit the cache? We need to let others know!
|
|
116
116
|
await globalCache.set(controlKey, '1', config.cache.requestTimeout);
|
|
117
|
-
|
|
117
|
+
|
|
118
|
+
try {
|
|
119
|
+
await next();
|
|
120
|
+
} catch (e) {
|
|
121
|
+
await globalCache.set(controlKey, '0', config.cache.requestTimeout);
|
|
122
|
+
throw e;
|
|
123
|
+
}
|
|
118
124
|
|
|
119
125
|
if (ctx.response.get('Cache-Control') !== 'no-cache' && ctx.state && ctx.state.data) {
|
|
120
126
|
ctx.state.data.lastBuildDate = new Date().toUTCString();
|
package/lib/router.js
CHANGED
|
@@ -325,11 +325,6 @@ router.get('/nytimes/:lang?', lazyloadRouteHandler('./routes/nytimes/index'));
|
|
|
325
325
|
router.get('/3dm/:name/:type', lazyloadRouteHandler('./routes/3dm/game'));
|
|
326
326
|
router.get('/3dm/news', lazyloadRouteHandler('./routes/3dm/news_center'));
|
|
327
327
|
|
|
328
|
-
// 旅法师营地
|
|
329
|
-
router.get('/lfsyd/:typecode', lazyloadRouteHandler('./routes/lfsyd/index'));
|
|
330
|
-
router.get('/lfsyd/user/:id', lazyloadRouteHandler('./routes/lfsyd/user'));
|
|
331
|
-
router.get('/lfsyd/tag/:tag', lazyloadRouteHandler('./routes/lfsyd/tag'));
|
|
332
|
-
|
|
333
328
|
// 喜马拉雅
|
|
334
329
|
router.get('/ximalaya/album/:id/:all?', lazyloadRouteHandler('./routes/ximalaya/album'));
|
|
335
330
|
router.get('/ximalaya/album/:id/:all/:shownote?', lazyloadRouteHandler('./routes/ximalaya/album'));
|
|
@@ -368,7 +363,7 @@ router.get('/mihoyo/bh2/:type', lazyloadRouteHandler('./routes/mihoyo/bh2'));
|
|
|
368
363
|
router.get('/cctv/xwlb', lazyloadRouteHandler('./routes/cctv/xwlb'));
|
|
369
364
|
|
|
370
365
|
// 央视新闻
|
|
371
|
-
router.get('/cctv/lm/:id?',
|
|
366
|
+
router.get('/cctv/lm/:id?', lazyloadRouteHandler('./routes/cctv/lm'));
|
|
372
367
|
router.get('/cctv/:category', lazyloadRouteHandler('./routes/cctv/category'));
|
|
373
368
|
router.get('/cctv/photo/jx', lazyloadRouteHandler('./routes/cctv/jx'));
|
|
374
369
|
router.get('/cctv-special/:id?', lazyloadRouteHandler('./routes/cctv/special'));
|
|
@@ -803,6 +798,9 @@ router.get('/ynu/grs/qttz/:category', lazyloadRouteHandler('./routes/universitie
|
|
|
803
798
|
router.get('/ynu/jwc/:category', lazyloadRouteHandler('./routes/universities/ynu/jwc/zytz'));
|
|
804
799
|
router.get('/ynu/home', lazyloadRouteHandler('./routes/universities/ynu/home/main'));
|
|
805
800
|
|
|
801
|
+
// 云南师范大学
|
|
802
|
+
router.get('/ynnu/edu/news', lazyloadRouteHandler('./routes/universities/ynnu/edu/news'));
|
|
803
|
+
|
|
806
804
|
// 昆明理工大学
|
|
807
805
|
router.get('/kmust/jwc/:type?', lazyloadRouteHandler('./routes/universities/kmust/jwc'));
|
|
808
806
|
router.get('/kmust/job/careers/:type?', lazyloadRouteHandler('./routes/universities/kmust/job/careers'));
|
|
@@ -846,6 +844,7 @@ router.get('/tju/sse/:type?', lazyloadRouteHandler('./routes/universities/tju/ss
|
|
|
846
844
|
|
|
847
845
|
// 华南理工大学
|
|
848
846
|
router.get('/scut/jwc/notice/:category?', lazyloadRouteHandler('./routes/universities/scut/jwc/notice'));
|
|
847
|
+
router.get('/scut/jwc/school/:category?', lazyloadRouteHandler('./routes/universities/scut/jwc/school'));
|
|
849
848
|
router.get('/scut/jwc/news', lazyloadRouteHandler('./routes/universities/scut/jwc/news'));
|
|
850
849
|
|
|
851
850
|
// 温州商学院
|
|
@@ -1133,6 +1132,9 @@ router.get('/manhuagui/comic/:id', lazyloadRouteHandler('./routes/manhuagui/comi
|
|
|
1133
1132
|
router.get('/mhgui/comic/:id', lazyloadRouteHandler('./routes/mhgui/comic'));
|
|
1134
1133
|
router.get('/twmanhuagui/comic/:id', lazyloadRouteHandler('./routes/twmanhuagui/comic'));
|
|
1135
1134
|
|
|
1135
|
+
// 拷贝漫画
|
|
1136
|
+
router.get('/copymanga/comic/:id', lazyloadRouteHandler('./routes/copymanga/comic'));
|
|
1137
|
+
|
|
1136
1138
|
// 動漫狂
|
|
1137
1139
|
router.get('/cartoonmad/comic/:id', lazyloadRouteHandler('./routes/cartoonmad/comic'));
|
|
1138
1140
|
// Vol
|
|
@@ -1692,7 +1694,8 @@ router.get('/nintendo/system-update', lazyloadRouteHandler('./routes/nintendo/sy
|
|
|
1692
1694
|
|
|
1693
1695
|
// 世界卫生组织
|
|
1694
1696
|
router.get('/who/news-room/:type', lazyloadRouteHandler('./routes/who/news-room'));
|
|
1695
|
-
router.get('/who/
|
|
1697
|
+
router.get('/who/speeches/:language?', lazyloadRouteHandler('./routes/who/speeches'));
|
|
1698
|
+
router.get('/who/news/:language?', lazyloadRouteHandler('./routes/who/news'));
|
|
1696
1699
|
|
|
1697
1700
|
// 福利资源-met.red
|
|
1698
1701
|
router.get('/metred/fuli', lazyloadRouteHandler('./routes/metred/fuli'));
|
|
@@ -1983,6 +1986,8 @@ router.get('/tencent/pvp/newsindex/:type', lazyloadRouteHandler('./routes/tencen
|
|
|
1983
1986
|
|
|
1984
1987
|
// 《明日方舟》游戏
|
|
1985
1988
|
router.get('/arknights/news', lazyloadRouteHandler('./routes/arknights/news'));
|
|
1989
|
+
// アークナイツ(明日方舟日服)
|
|
1990
|
+
router.get('/arknights/japan', lazyloadRouteHandler('./routes/arknights/japan'));
|
|
1986
1991
|
// 塞壬唱片
|
|
1987
1992
|
router.get('/siren/news', lazyloadRouteHandler('./routes/siren/index'));
|
|
1988
1993
|
|
|
@@ -2158,7 +2163,6 @@ router.get('/sse/disclosure/:query?', lazyloadRouteHandler('./routes/sse/disclos
|
|
|
2158
2163
|
// 深圳证券交易所
|
|
2159
2164
|
router.get('/szse/notice', lazyloadRouteHandler('./routes/szse/notice'));
|
|
2160
2165
|
router.get('/szse/inquire/:type', lazyloadRouteHandler('./routes/szse/inquire'));
|
|
2161
|
-
router.get('/szse/rule', lazyloadRouteHandler('./routes/szse/rule'));
|
|
2162
2166
|
router.get('/szse/projectdynamic/:type?/:stage?/:status?', lazyloadRouteHandler('./routes/szse/projectdynamic'));
|
|
2163
2167
|
|
|
2164
2168
|
// 前端艺术家每日整理&&飞冰早报
|
|
@@ -2245,7 +2249,7 @@ router.get('/taptap/changelog/:id', lazyloadRouteHandler('./routes/taptap/change
|
|
|
2245
2249
|
router.get('/taptap/review/:id/:order?', lazyloadRouteHandler('./routes/taptap/review'));
|
|
2246
2250
|
|
|
2247
2251
|
// lofter
|
|
2248
|
-
router.get('/lofter/tag/:name
|
|
2252
|
+
router.get('/lofter/tag/:name?/:type?', lazyloadRouteHandler('./routes/lofter/tag'));
|
|
2249
2253
|
router.get('/lofter/user/:username', lazyloadRouteHandler('./routes/lofter/posts'));
|
|
2250
2254
|
|
|
2251
2255
|
// 米坛社区表盘
|
|
@@ -2561,6 +2565,7 @@ router.get('/coronavirus/nhc', lazyloadRouteHandler('./routes/coronavirus/nhc'))
|
|
|
2561
2565
|
router.get('/coronavirus/mogov-2019ncov/:lang', lazyloadRouteHandler('./routes/coronavirus/mogov-2019ncov'));
|
|
2562
2566
|
router.get('/coronavirus/qq/fact', lazyloadRouteHandler('./routes/tencent/factcheck'));
|
|
2563
2567
|
router.get('/coronavirus/sg-moh', lazyloadRouteHandler('./routes/coronavirus/sg-moh'));
|
|
2568
|
+
router.get('/coronavirus/yahoo-japan/:tdfk?', lazyloadRouteHandler('./routes/coronavirus/yahoo-japan'));
|
|
2564
2569
|
|
|
2565
2570
|
// 南京林业大学教务处
|
|
2566
2571
|
router.get('/njfu/jwc/:category?', lazyloadRouteHandler('./routes/universities/njfu/jwc'));
|
|
@@ -2611,7 +2616,7 @@ router.get('/hackerone/search/:search', lazyloadRouteHandler('./routes/hackerone
|
|
|
2611
2616
|
router.get('/cowlevel/element/:id', lazyloadRouteHandler('./routes/cowlevel/element'));
|
|
2612
2617
|
|
|
2613
2618
|
// 2048
|
|
2614
|
-
router.get('/2048/bbs/:fid', lazyloadRouteHandler('./routes/2048/bbs'));
|
|
2619
|
+
// router.get('/2048/bbs/:fid', lazyloadRouteHandler('./routes/2048/bbs'));
|
|
2615
2620
|
|
|
2616
2621
|
// Google News
|
|
2617
2622
|
router.get('/google/news/:category/:locale', lazyloadRouteHandler('./routes/google/news'));
|
|
@@ -3082,7 +3087,7 @@ router.get('/jike/topic/text/:id', lazyloadRouteHandler('./routes/jike/topicText
|
|
|
3082
3087
|
router.get('/jike/user/:id', lazyloadRouteHandler('./routes/jike/user'));
|
|
3083
3088
|
|
|
3084
3089
|
// 网易新闻
|
|
3085
|
-
router.get('/netease/news/rank/:category?/:type?/:time?', lazyloadRouteHandler('./routes/netease/news/rank'));
|
|
3090
|
+
// router.get('/netease/news/rank/:category?/:type?/:time?', lazyloadRouteHandler('./routes/netease/news/rank'));
|
|
3086
3091
|
router.get('/netease/news/special/:type?', lazyloadRouteHandler('./routes/netease/news/special'));
|
|
3087
3092
|
|
|
3088
3093
|
// 网易 - 网易号
|
|
@@ -4064,7 +4069,7 @@ router.get('/wainao-reads/all-articles', lazyloadRouteHandler('./routes/wainao/i
|
|
|
4064
4069
|
router.get('/react/react-native-weekly', lazyloadRouteHandler('./routes/react/react-native-weekly'));
|
|
4065
4070
|
|
|
4066
4071
|
// dbaplus 社群
|
|
4067
|
-
router.get('/dbaplus/activity/:type?',
|
|
4072
|
+
router.get('/dbaplus/activity/:type?', lazyloadRouteHandler('./routes/dbaplus/activity.js'));
|
|
4068
4073
|
router.get('/dbaplus/:tab?', lazyloadRouteHandler('./routes/dbaplus/tab'));
|
|
4069
4074
|
|
|
4070
4075
|
// 梨园
|
|
@@ -4203,30 +4208,59 @@ router.get('/x410/news', lazyloadRouteHandler('./routes/x410/news'));
|
|
|
4203
4208
|
// 恩山无线论坛
|
|
4204
4209
|
router.get('/right/forum/:id?', lazyloadRouteHandler('./routes/right/forum'));
|
|
4205
4210
|
|
|
4206
|
-
// 香港經濟日報
|
|
4207
|
-
router.get('/hket/:category?', lazyloadRouteHandler('./routes/hket/index'));
|
|
4211
|
+
// 香港經濟日報 migrated to v2
|
|
4212
|
+
// router.get('/hket/:category?', lazyloadRouteHandler('./routes/hket/index'));
|
|
4213
|
+
|
|
4214
|
+
// micmicidol
|
|
4215
|
+
router.get('/micmicidol', lazyloadRouteHandler('./routes/micmicidol/latest'));
|
|
4216
|
+
router.get('/micmicidol/search/:label', lazyloadRouteHandler('./routes/micmicidol/search'));
|
|
4217
|
+
|
|
4218
|
+
// 香港高登
|
|
4219
|
+
router.get('/hkgolden/:id?/:limit?/:sort?', lazyloadRouteHandler('./routes/hkgolden'));
|
|
4220
|
+
|
|
4221
|
+
// 香港討論區
|
|
4222
|
+
router.get('/discuss/:fid', lazyloadRouteHandler('./routes/discuss'));
|
|
4223
|
+
|
|
4224
|
+
// Uwants
|
|
4225
|
+
router.get('/uwants/:fid', lazyloadRouteHandler('./routes/uwants'));
|
|
4226
|
+
|
|
4227
|
+
// Now新聞
|
|
4228
|
+
router.get('/now/news/rank', lazyloadRouteHandler('./routes/now/rank'));
|
|
4208
4229
|
|
|
4209
4230
|
// s-hentai
|
|
4210
4231
|
router.get('/s-hentai/:id?', lazyloadRouteHandler('./routes/s-hentai'));
|
|
4211
4232
|
|
|
4233
|
+
// Netflix
|
|
4234
|
+
router.get('/netflix/newsroom/:category?/:region?', lazyloadRouteHandler('./routes/netflix/newsroom'));
|
|
4235
|
+
|
|
4236
|
+
// SBS
|
|
4237
|
+
router.get('/sbs/chinese/:category?/:id?/:dialect?/:language?', lazyloadRouteHandler('./routes/sbs/chinese'));
|
|
4238
|
+
|
|
4239
|
+
// Asian to lick
|
|
4240
|
+
router.get('/asiantolick/:category?/:keyword?', lazyloadRouteHandler('./routes/asiantolick'));
|
|
4241
|
+
|
|
4212
4242
|
// Deprecated: DO NOT ADD ROUTE HERE
|
|
4213
4243
|
|
|
4214
4244
|
// Research Gate
|
|
4215
|
-
router.get('/researchgate/publications/:id',
|
|
4245
|
+
router.get('/researchgate/publications/:id', lazyloadRouteHandler('./routes/researchgate/publications'));
|
|
4216
4246
|
|
|
4217
4247
|
// QuestMobile
|
|
4218
|
-
router.get('/questmobile/report/:category?/:label?',
|
|
4248
|
+
router.get('/questmobile/report/:category?/:label?', lazyloadRouteHandler('./routes/questmobile/report'));
|
|
4219
4249
|
|
|
4220
4250
|
// RSS3
|
|
4221
|
-
router.get('/rss3/blog',
|
|
4251
|
+
router.get('/rss3/blog', lazyloadRouteHandler('./routes/rss3/blog'));
|
|
4222
4252
|
|
|
4223
4253
|
// 星球日报
|
|
4224
|
-
router.get('/odaily/activity',
|
|
4254
|
+
router.get('/odaily/activity', lazyloadRouteHandler('./routes/odaily/activity'));
|
|
4225
4255
|
|
|
4226
4256
|
// Fashion Network
|
|
4227
|
-
router.get('/fashionnetwork/news/:sectors?/:categories?/:language?',
|
|
4257
|
+
router.get('/fashionnetwork/news/:sectors?/:categories?/:language?', lazyloadRouteHandler('./routes/fashionnetwork/news.js'));
|
|
4228
4258
|
|
|
4229
4259
|
// dykszx
|
|
4230
|
-
router.get('/dykszx/news/:type?',
|
|
4260
|
+
router.get('/dykszx/news/:type?', lazyloadRouteHandler('./routes/dykszx/news'));
|
|
4261
|
+
|
|
4262
|
+
// 安全内参
|
|
4263
|
+
router.get('/secrss/category/:category?', lazyloadRouteHandler('./routes/secrss/category'));
|
|
4264
|
+
router.get('/secrss/author/:author?', lazyloadRouteHandler('./routes/secrss/author'));
|
|
4231
4265
|
|
|
4232
4266
|
module.exports = router;
|
|
@@ -23,7 +23,7 @@ module.exports = async (ctx) => {
|
|
|
23
23
|
.slice(0, 5)
|
|
24
24
|
.map((index, item) => {
|
|
25
25
|
item = $(item);
|
|
26
|
-
const title = item.find('
|
|
26
|
+
const title = item.find('h3[class^=Component-heading-]').text();
|
|
27
27
|
const link = item.find('a[class^=Component-headline-]').attr('href');
|
|
28
28
|
const pubDate = item.find('span[class^=Timestamp]').attr('title');
|
|
29
29
|
const text = item.find('div[class^=content]').text();
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
const got = require('@/utils/got');
|
|
2
|
+
|
|
3
|
+
module.exports = async (ctx) => {
|
|
4
|
+
|
|
5
|
+
const response = await got({
|
|
6
|
+
method: 'get',
|
|
7
|
+
url: 'https://www.arknights.jp:10014/news?lang=ja&limit=9&page=1',
|
|
8
|
+
});
|
|
9
|
+
|
|
10
|
+
const items = response.data.data.items;
|
|
11
|
+
const newsList = items.map((item) => ({
|
|
12
|
+
title: item.title,
|
|
13
|
+
description: item.content[0].value,
|
|
14
|
+
pubDate: item.publishedAt,
|
|
15
|
+
link: `https://www.arknights.jp/news/${item.id}`
|
|
16
|
+
}));
|
|
17
|
+
|
|
18
|
+
ctx.state.data = {
|
|
19
|
+
title: 'アークナイツ',
|
|
20
|
+
link: 'https://www.arknights.jp/news',
|
|
21
|
+
description: 'アークナイツ ニュース',
|
|
22
|
+
language: 'ja',
|
|
23
|
+
item: newsList,
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
};
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
const got = require('@/utils/got');
|
|
2
|
+
const cheerio = require('cheerio');
|
|
3
|
+
const { parseDate } = require('@/utils/parse-date');
|
|
4
|
+
|
|
5
|
+
module.exports = async (ctx) => {
|
|
6
|
+
const category = ctx.params.category ?? '';
|
|
7
|
+
const keyword = ctx.params.keyword ?? '';
|
|
8
|
+
|
|
9
|
+
const rootUrl = 'https://asiantolick.com';
|
|
10
|
+
const currentUrl = `${rootUrl}${category === 'category' ? `/category-${keyword}` : ''}${category === 'tag' ? `/tag-${keyword}` : ''}${category === 'search' ? `/search/${keyword}` : ''}`;
|
|
11
|
+
|
|
12
|
+
const response = await got({
|
|
13
|
+
method: 'get',
|
|
14
|
+
url: currentUrl,
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
const $ = cheerio.load(response.data);
|
|
18
|
+
|
|
19
|
+
const list = $('.miniatura')
|
|
20
|
+
.map((_, item) => {
|
|
21
|
+
item = $(item);
|
|
22
|
+
|
|
23
|
+
return {
|
|
24
|
+
link: item.attr('href'),
|
|
25
|
+
title: item.find('.titulo_video').text(),
|
|
26
|
+
};
|
|
27
|
+
})
|
|
28
|
+
.get();
|
|
29
|
+
|
|
30
|
+
const items = await Promise.all(
|
|
31
|
+
list.map((item) =>
|
|
32
|
+
ctx.cache.tryGet(item.link, async () => {
|
|
33
|
+
const detailResponse = await got({
|
|
34
|
+
method: 'get',
|
|
35
|
+
url: item.link,
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
const downloadResponse = await got({
|
|
39
|
+
method: 'get',
|
|
40
|
+
url: `${rootUrl}/ajax/download_post.php?ver=1&dir=/down/3_750&post_id=${item.link.match(/post-\d+\//)[1]}&post_name=${item.title}`,
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
const content = cheerio.load(detailResponse.data);
|
|
44
|
+
|
|
45
|
+
item.enclosure_url = `${rootUrl}/temp_dl/${downloadResponse.data}`;
|
|
46
|
+
item.description = `<p>${content('meta[name="description"]').attr('content')}</p><a href=${item.enclosure_url}>Download ZIP</a>`;
|
|
47
|
+
|
|
48
|
+
content('.gallery_img').each(function () {
|
|
49
|
+
item.description += `<div><img src="${content(this).attr('data-src')}"></div>`;
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
item.pubDate = parseDate(detailResponse.data.match(/"pubDate": "(.*)",/)[1]);
|
|
53
|
+
|
|
54
|
+
return item;
|
|
55
|
+
})
|
|
56
|
+
)
|
|
57
|
+
);
|
|
58
|
+
|
|
59
|
+
ctx.state.data = {
|
|
60
|
+
title: $('title').text(),
|
|
61
|
+
link: currentUrl,
|
|
62
|
+
item: items,
|
|
63
|
+
};
|
|
64
|
+
};
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
const cheerio = require('cheerio');
|
|
2
|
+
const got = require('@/utils/got');
|
|
3
|
+
|
|
4
|
+
// 直接调用拷贝漫画的接口
|
|
5
|
+
module.exports = async (ctx) => {
|
|
6
|
+
const { id } = ctx.params;
|
|
7
|
+
|
|
8
|
+
// 获取漫画列表
|
|
9
|
+
let bHasNextPage = false;
|
|
10
|
+
const iReqLimit = (ctx.queries && ctx.queries.limit) || 100;
|
|
11
|
+
let iReqOffSet = 0;
|
|
12
|
+
const strBaseUrl = `https://api.copymanga.com/api/v3/comic/${id}/group/default/chapters?`;
|
|
13
|
+
let chapterArray = [];
|
|
14
|
+
|
|
15
|
+
do {
|
|
16
|
+
bHasNextPage = false;
|
|
17
|
+
// eslint-disable-next-line no-await-in-loop
|
|
18
|
+
const { data } = await got.get(strBaseUrl + 'limit=' + iReqLimit + '&offset=' + iReqOffSet);
|
|
19
|
+
const { code, results } = data;
|
|
20
|
+
|
|
21
|
+
if (code !== 200) {
|
|
22
|
+
break;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
if (results.limit + results.offset < results.total) {
|
|
26
|
+
bHasNextPage = true;
|
|
27
|
+
}
|
|
28
|
+
iReqOffSet += iReqLimit;
|
|
29
|
+
|
|
30
|
+
chapterArray = chapterArray.concat(results.list);
|
|
31
|
+
} while (bHasNextPage);
|
|
32
|
+
|
|
33
|
+
chapterArray = chapterArray
|
|
34
|
+
.map(({ comic_path_word, uuid, name, size, datetime_created, index }) => ({
|
|
35
|
+
link: 'https://copymanga.com/comic/' + comic_path_word + '/chapter/' + uuid,
|
|
36
|
+
title: name,
|
|
37
|
+
num: size,
|
|
38
|
+
updateTime: datetime_created,
|
|
39
|
+
index,
|
|
40
|
+
}))
|
|
41
|
+
.reverse();
|
|
42
|
+
|
|
43
|
+
// 获取漫画标题、介绍
|
|
44
|
+
const { bookTitle, bookIntro } = await ctx.cache.tryGet(`https://copymanga.com/comic/${id}`, async () => {
|
|
45
|
+
const { data } = await got.get(`https://copymanga.com/comic/${id}`);
|
|
46
|
+
const $ = cheerio.load(data);
|
|
47
|
+
return {
|
|
48
|
+
bookTitle: $('.comicParticulars-title-right > ul > li > h6').text(),
|
|
49
|
+
bookIntro: $('.intro').text(),
|
|
50
|
+
};
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
const genResult = (chapter) => ({
|
|
54
|
+
link: chapter.link,
|
|
55
|
+
title: chapter.title,
|
|
56
|
+
description: `
|
|
57
|
+
<h1>${chapter.num}p</h1>
|
|
58
|
+
`.trim(),
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
ctx.state.data = {
|
|
62
|
+
title: `拷贝漫画 - ${bookTitle}`,
|
|
63
|
+
link: `https://copymanga.com/comic/${id}`,
|
|
64
|
+
description: bookIntro,
|
|
65
|
+
item: chapterArray.map(genResult),
|
|
66
|
+
};
|
|
67
|
+
};
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
const got = require('@/utils/got');
|
|
2
|
+
const cheerio = require('cheerio');
|
|
3
|
+
const dayjs = require('dayjs');
|
|
4
|
+
|
|
5
|
+
module.exports = async (ctx) => {
|
|
6
|
+
const tdfk = ctx.params.tdfk || false;
|
|
7
|
+
const uri = tdfk ? `https://news.yahoo.co.jp/pages/article/covid19${tdfk}` : `https://news.yahoo.co.jp/pages/article/20200207`;
|
|
8
|
+
const req_header = { 'User-Agent': 'Mozilla/5.0 (Linux; Android 9; SM-G960F Build/PPR1.180610.011; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/74.0.3729.157 Mobile Safari/537.36' };
|
|
9
|
+
|
|
10
|
+
const resp = await got({
|
|
11
|
+
method: 'get',
|
|
12
|
+
url: uri,
|
|
13
|
+
headers: req_header,
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
const $ = cheerio.load(resp.data);
|
|
17
|
+
|
|
18
|
+
const this_year = dayjs().year();
|
|
19
|
+
const this_month = dayjs().month() + 1;
|
|
20
|
+
|
|
21
|
+
const art_uri = [];
|
|
22
|
+
$('#layoutFooter ul.dlpThumbLink a').each((i, e) => {
|
|
23
|
+
const link = $(e).attr('href');
|
|
24
|
+
const text = $(e).find('.dlpThumbText span').eq(0).text();
|
|
25
|
+
const author = $(e).find('.dlpQuote').text();
|
|
26
|
+
const date = $(e).find('.dlpDate').text() + ' +9'; // explicit timezone
|
|
27
|
+
|
|
28
|
+
let date_obj = dayjs(date).year(this_year);
|
|
29
|
+
|
|
30
|
+
if (date_obj.month() + 1 > this_month) {
|
|
31
|
+
// if the article is from the last year
|
|
32
|
+
date_obj = date_obj.year(this_year - 1);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
art_uri.push({ l: link, t: text, a: author, d: date_obj.toString() });
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
const getNews = async (uri) => {
|
|
39
|
+
const ret = {
|
|
40
|
+
link: uri.l,
|
|
41
|
+
title: uri.t,
|
|
42
|
+
author: uri.a,
|
|
43
|
+
pubDate: uri.d,
|
|
44
|
+
description: null,
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
if (!uri.l.includes('//news.yahoo.co.jp')) {
|
|
48
|
+
return ret; // do not process uncertain pages
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
const page_data = await ctx.cache.tryGet(uri.l, async () => {
|
|
52
|
+
const resp = await got({
|
|
53
|
+
method: 'get',
|
|
54
|
+
url: uri.l,
|
|
55
|
+
headers: req_header,
|
|
56
|
+
});
|
|
57
|
+
return resp.data;
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
const $doc = cheerio.load(page_data);
|
|
61
|
+
|
|
62
|
+
const iso_date = $doc('meta[name="pubdate"]').attr('content');
|
|
63
|
+
ret.pubDate = dayjs(iso_date).toString();
|
|
64
|
+
ret.description = $doc('div.article_body').html() || $doc('meta[name="description"]').attr('content');
|
|
65
|
+
|
|
66
|
+
return ret;
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
const items = await Promise.all(art_uri.map(getNews));
|
|
70
|
+
|
|
71
|
+
ctx.state.data = {
|
|
72
|
+
title: $('title').text(),
|
|
73
|
+
link: uri,
|
|
74
|
+
description: $('meta[name="description"]').attr('content'),
|
|
75
|
+
item: items,
|
|
76
|
+
};
|
|
77
|
+
};
|
|
@@ -12,7 +12,7 @@ module.exports = async (ctx) => {
|
|
|
12
12
|
const $ = cheerio.load(response.data);
|
|
13
13
|
|
|
14
14
|
const title = $('#search-title').text();
|
|
15
|
-
const list = $('.search-main > .item-grid2 > div');
|
|
15
|
+
const list = $('.search-main > .item-grid2 > div.cell');
|
|
16
16
|
|
|
17
17
|
const out = await Promise.all(
|
|
18
18
|
list
|
|
@@ -0,0 +1,71 @@
|
|
|
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 fid = ctx.params.fid;
|
|
8
|
+
|
|
9
|
+
const rootUrl = 'https://www.discuss.com.hk';
|
|
10
|
+
const currentUrl = `${rootUrl}/archiver/?fid-${fid}.html`;
|
|
11
|
+
|
|
12
|
+
const response = await got({
|
|
13
|
+
method: 'get',
|
|
14
|
+
url: currentUrl,
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
const $ = cheerio.load(response.data);
|
|
18
|
+
|
|
19
|
+
const list = $('li a')
|
|
20
|
+
.slice(0, ctx.query.limit ? parseInt(ctx.query.limit) : 15)
|
|
21
|
+
.map((_, item) => {
|
|
22
|
+
item = $(item);
|
|
23
|
+
|
|
24
|
+
return {
|
|
25
|
+
title: item.text(),
|
|
26
|
+
link: `${rootUrl}/${item.attr('href')}`,
|
|
27
|
+
};
|
|
28
|
+
})
|
|
29
|
+
.get();
|
|
30
|
+
|
|
31
|
+
const items = await Promise.all(
|
|
32
|
+
list.map((item) =>
|
|
33
|
+
ctx.cache.tryGet(item.link, async () => {
|
|
34
|
+
const detailResponse = await got({
|
|
35
|
+
method: 'get',
|
|
36
|
+
url: item.link,
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
const data = detailResponse.data
|
|
40
|
+
.replace(/\[img\]https:\/\/www\.discuss\.com\.hk\/images\/common\/back\.gif\[\/img\]/g, '')
|
|
41
|
+
.replace(/\[url=(.*?)\]/gm, '<a href="$1">')
|
|
42
|
+
.replace(/\[(\w+)=(.*?)\]/gm, '<span style="$1: $2;">')
|
|
43
|
+
.replace(/\[\/(color|size)\]/gm, '</span>')
|
|
44
|
+
.replace(/\[\/url\]/gm, '</a>')
|
|
45
|
+
.replace(/\[(\w+)\]/gm, '<$1>')
|
|
46
|
+
.replace(/\[\/(\w+)\]/gm, '</$1>');
|
|
47
|
+
|
|
48
|
+
const content = cheerio.load(data);
|
|
49
|
+
|
|
50
|
+
const cite = content('cite');
|
|
51
|
+
item.author = cite.eq(0).text();
|
|
52
|
+
const firstAuthorParent = cite.eq(0).parent();
|
|
53
|
+
|
|
54
|
+
item.description = content('.archiver_post').html();
|
|
55
|
+
|
|
56
|
+
cite.remove();
|
|
57
|
+
|
|
58
|
+
item.link = `${rootUrl}/viewthread.php?tid=${item.link.match(/tid-(\d+)\.html/)[1]}`;
|
|
59
|
+
item.pubDate = timezone(parseDate(firstAuthorParent.text().trim(), 'YYYY-M-D hh:mm A'), +8);
|
|
60
|
+
|
|
61
|
+
return item;
|
|
62
|
+
})
|
|
63
|
+
)
|
|
64
|
+
);
|
|
65
|
+
|
|
66
|
+
ctx.state.data = {
|
|
67
|
+
title: `${$('h1 a').text().replace('查看完整版本 : ', '')} - 香港討論區`,
|
|
68
|
+
link: `${rootUrl}/forumdisplay.php?fid=${fid}`,
|
|
69
|
+
item: items,
|
|
70
|
+
};
|
|
71
|
+
};
|
|
@@ -12,8 +12,13 @@ module.exports = async (ctx) => {
|
|
|
12
12
|
} else {
|
|
13
13
|
items = await EhAPI.getSearchItems(ctx.cache, params, undefined, bittorrent);
|
|
14
14
|
}
|
|
15
|
+
let title = params;
|
|
16
|
+
const match = /f_search=([^&]+)/.exec(title);
|
|
17
|
+
if (match !== null) {
|
|
18
|
+
title = match[1];
|
|
19
|
+
}
|
|
15
20
|
ctx.state.data = {
|
|
16
|
-
title: 'E-Hentai Search',
|
|
21
|
+
title: title + ' - E-Hentai Search ',
|
|
17
22
|
link: `https://e-hentai.org/?${params}`,
|
|
18
23
|
item: items,
|
|
19
24
|
};
|
|
@@ -6,7 +6,7 @@ module.exports = async (ctx) => {
|
|
|
6
6
|
const bittorrent = ctx.params.bittorrent || false;
|
|
7
7
|
const items = await EhAPI.getTagItems(ctx.cache, tag, page, bittorrent);
|
|
8
8
|
ctx.state.data = {
|
|
9
|
-
title: 'E-Hentai
|
|
9
|
+
title: tag + ' - E-Hentai Tag',
|
|
10
10
|
link: `https://e-hentai.org/tag/${tag}`,
|
|
11
11
|
item: items,
|
|
12
12
|
};
|
|
@@ -17,7 +17,7 @@ async function load(link) {
|
|
|
17
17
|
// 加载文章内容
|
|
18
18
|
const $ = cheerio.load(response.data);
|
|
19
19
|
// 提取文章内容
|
|
20
|
-
const description = $('.
|
|
20
|
+
const description = $('div.info-txt').html();
|
|
21
21
|
// 返回解析的结果
|
|
22
22
|
return { description };
|
|
23
23
|
}
|
|
@@ -37,7 +37,7 @@ module.exports = async (ctx) => {
|
|
|
37
37
|
const $ = cheerio.load(response.data);
|
|
38
38
|
|
|
39
39
|
// 获取当前页面的 list
|
|
40
|
-
const list = $('
|
|
40
|
+
const list = $('ul.com-list>li');
|
|
41
41
|
|
|
42
42
|
const result = await Promise.all(
|
|
43
43
|
// 遍历每一篇文章
|
|
@@ -57,7 +57,7 @@ module.exports = async (ctx) => {
|
|
|
57
57
|
|
|
58
58
|
const $title = $('a').text(); // 获取每个的标题
|
|
59
59
|
|
|
60
|
-
const date_txt =
|
|
60
|
+
const date_txt = $('span').text(); // 匹配 yyyy-mm-dd格式时间
|
|
61
61
|
const $pubdate = new Date(date_txt); // 正则匹配发布时间 然后转换成时间
|
|
62
62
|
|
|
63
63
|
// 列表上提取到的信息
|
|
@@ -67,12 +67,18 @@ module.exports = async (ctx) => {
|
|
|
67
67
|
pubDate: $pubdate,
|
|
68
68
|
link: $item_url,
|
|
69
69
|
guid: $item_url,
|
|
70
|
+
description: $title,
|
|
70
71
|
};
|
|
71
72
|
|
|
72
73
|
// 对于列表的每一项, 单独获取 时间与详细内容
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
74
|
+
try {
|
|
75
|
+
// 文章可能存在404错误,错误则直接使用title当作内容
|
|
76
|
+
const other = $is_interior ? await ctx.cache.tryGet($item_url, () => load($item_url)) : $title;
|
|
77
|
+
// 合并解析后的结果集作为该篇文章最终的输出结果
|
|
78
|
+
return Promise.resolve(Object.assign({}, single, other));
|
|
79
|
+
} catch (e) {
|
|
80
|
+
return Promise.resolve(single);
|
|
81
|
+
}
|
|
76
82
|
})
|
|
77
83
|
.get()
|
|
78
84
|
);
|