rsshub 1.0.0-master.e323cb6 → 1.0.0-master.e3fa702
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 -0
- package/lib/radar-rules.js +11 -62
- package/lib/router.js +24 -24
- package/lib/v2/2cycd/index.js +57 -0
- package/lib/v2/2cycd/maintainer.js +3 -0
- package/lib/v2/2cycd/radar.js +25 -0
- package/lib/v2/2cycd/router.js +3 -0
- package/lib/v2/78dm/index.js +74 -0
- package/lib/v2/78dm/maintainer.js +5 -0
- package/lib/v2/78dm/radar.js +37 -0
- package/lib/v2/78dm/router.js +3 -0
- package/lib/v2/78dm/templates/image.art +1 -0
- package/lib/v2/91porn/author.js +58 -0
- package/lib/v2/91porn/maintainer.js +1 -0
- package/lib/v2/91porn/radar.js +7 -1
- package/lib/v2/91porn/router.js +1 -0
- package/lib/{routes → v2}/agefans/detail.js +3 -6
- package/lib/v2/agefans/maintainer.js +4 -0
- package/lib/v2/agefans/radar.js +19 -0
- package/lib/v2/agefans/router.js +4 -0
- package/lib/{routes → v2}/agefans/update.js +4 -10
- package/lib/v2/baijing/index.js +54 -0
- package/lib/v2/baijing/maintainer.js +3 -0
- package/lib/v2/baijing/radar.js +22 -0
- package/lib/v2/baijing/router.js +3 -0
- package/lib/v2/bangumi/index.js +92 -0
- package/lib/v2/bangumi/maintainer.js +4 -0
- package/lib/v2/bangumi/radar.js +19 -0
- package/lib/v2/bangumi/router.js +3 -0
- package/lib/v2/bilibili/maintainer.js +40 -0
- package/lib/v2/bilibili/popular.js +29 -0
- package/lib/v2/bilibili/radar.js +6 -0
- package/lib/v2/bilibili/router.js +3 -1
- package/lib/v2/bilibili/video-all.js +52 -0
- package/lib/v2/cmde/index.js +58 -30
- package/lib/{routes → v2}/dsndsht23/index.js +40 -46
- package/lib/v2/dsndsht23/maintainer.js +7 -0
- package/lib/v2/dsndsht23/radar.js +19 -0
- package/lib/v2/dsndsht23/router.js +7 -0
- package/lib/v2/economist/full.js +1 -1
- package/lib/v2/fda/cdrh.js +4 -2
- package/lib/v2/fda/radar.js +1 -1
- package/lib/v2/fda/router.js +1 -1
- package/lib/v2/gov/cmse/fxrw.js +40 -0
- package/lib/v2/gov/cmse/index.js +67 -0
- package/lib/v2/gov/cmse/templates/description.art +11 -0
- package/lib/v2/gov/maintainer.js +14 -3
- package/lib/v2/gov/nifdc/index.js +1 -1
- package/lib/v2/gov/radar.js +76 -0
- package/lib/v2/gov/router.js +6 -3
- package/lib/v2/gov/taiyuan/rsj.js +41 -0
- package/lib/v2/hafu/maintainer.js +3 -0
- package/lib/v2/hafu/news.js +15 -0
- package/lib/v2/hafu/radar.js +23 -0
- package/lib/v2/hafu/router.js +3 -0
- package/lib/v2/hafu/templates/hafu.art +3 -0
- package/lib/v2/hafu/utils.js +205 -0
- package/lib/v2/hjedd/article.js +27 -0
- package/lib/v2/hjedd/hot.js +14 -0
- package/lib/v2/hjedd/latest.js +14 -0
- package/lib/v2/hjedd/maintainer.js +10 -0
- package/lib/v2/hjedd/news.js +14 -0
- package/lib/v2/hjedd/notice.js +14 -0
- package/lib/v2/hjedd/original.js +14 -0
- package/lib/v2/hjedd/radar.js +55 -0
- package/lib/v2/hjedd/router.js +10 -0
- package/lib/v2/hjedd/templates/attachment.art +7 -0
- package/lib/v2/hjedd/top.js +14 -0
- package/lib/v2/hjedd/utils.js +111 -0
- package/lib/v2/ifi-audio/download.js +34 -0
- package/lib/v2/ifi-audio/maintainer.js +3 -0
- package/lib/v2/ifi-audio/router.js +3 -0
- package/lib/v2/infoq/maintainer.js +4 -0
- package/lib/v2/infoq/radar.js +19 -0
- package/lib/{routes → v2}/infoq/recommend.js +3 -6
- package/lib/v2/infoq/router.js +4 -0
- package/lib/{routes → v2}/infoq/topic.js +11 -14
- package/lib/{routes → v2}/infoq/utils.js +20 -13
- package/lib/v2/javbus/index.js +2 -1
- package/lib/v2/javbus/maintainer.js +33 -14
- package/lib/v2/javbus/radar.js +75 -39
- package/lib/v2/javbus/router.js +1 -1
- package/lib/v2/javdb/rankings.js +1 -1
- package/lib/v2/leetcode/articles.js +80 -0
- package/lib/v2/leetcode/dailyquestion-cn.js +115 -0
- package/lib/v2/leetcode/maintainer.js +3 -1
- package/lib/v2/leetcode/radar.js +50 -0
- package/lib/v2/leetcode/router.js +2 -0
- package/lib/v2/neu/bmie.js +94 -0
- package/lib/v2/neu/maintainer.js +4 -0
- package/lib/v2/neu/news.js +44 -0
- package/lib/v2/neu/radar.js +21 -0
- package/lib/v2/neu/router.js +4 -0
- package/lib/v2/nju/dafls.js +39 -0
- package/lib/v2/nju/hqjt.js +39 -0
- package/lib/v2/nju/jjc.js +1 -1
- package/lib/v2/nju/maintainer.js +2 -0
- package/lib/v2/nju/radar.js +16 -0
- package/lib/v2/nju/router.js +3 -1
- package/lib/v2/picuki/maintainer.js +1 -1
- package/lib/v2/pts/live.js +49 -0
- package/lib/v2/pts/maintainer.js +1 -0
- package/lib/v2/pts/radar.js +6 -0
- package/lib/v2/pts/router.js +1 -0
- package/lib/v2/pts/templates/live.art +6 -0
- package/lib/v2/seekingalpha/index.js +56 -0
- package/lib/v2/seekingalpha/maintainer.js +3 -0
- package/lib/v2/seekingalpha/radar.js +13 -0
- package/lib/v2/seekingalpha/router.js +3 -0
- package/lib/v2/taoguba/blog.js +59 -0
- package/lib/v2/taoguba/index.js +67 -0
- package/lib/v2/taoguba/maintainer.js +6 -0
- package/lib/v2/taoguba/radar.js +19 -0
- package/lib/v2/taoguba/router.js +6 -0
- package/lib/v2/tencent/maintainer.js +2 -1
- package/lib/{routes → v2}/tencent/pvp/newsindex.js +8 -6
- package/lib/v2/tencent/radar.js +17 -9
- package/lib/v2/tencent/router.js +2 -1
- package/lib/v2/tradingview/blog.js +60 -0
- package/lib/v2/tradingview/maintainer.js +3 -0
- package/lib/v2/tradingview/radar.js +13 -0
- package/lib/v2/tradingview/router.js +3 -0
- package/lib/v2/tradingview/templates/description.art +4 -0
- package/lib/v2/tvb/maintainer.js +3 -0
- package/lib/v2/tvb/news.js +80 -0
- package/lib/v2/tvb/radar.js +13 -0
- package/lib/v2/tvb/router.js +3 -0
- package/lib/v2/tvb/templates/description.art +6 -0
- package/lib/{routes → v2}/twitter/api_fallback_common.js +1 -1
- package/lib/v2/twitter/collection.js +55 -0
- package/lib/{routes → v2}/twitter/developer-api/search.js +1 -1
- package/lib/{routes → v2}/twitter/developer-api/user.js +0 -0
- package/lib/{routes → v2}/twitter/followings.js +0 -0
- package/lib/{routes → v2}/twitter/keyword.js +0 -0
- package/lib/{routes → v2}/twitter/likes.js +0 -0
- package/lib/{routes → v2}/twitter/list.js +0 -0
- package/lib/v2/twitter/maintainer.js +10 -0
- package/lib/{routes → v2}/twitter/media.js +0 -0
- package/lib/v2/twitter/radar.js +73 -0
- package/lib/v2/twitter/router.js +10 -0
- package/lib/{routes → v2}/twitter/trends.js +0 -0
- package/lib/{routes → v2}/twitter/user.js +0 -0
- package/lib/{routes → v2}/twitter/utils.js +2 -0
- package/lib/{routes → v2}/twitter/web-api/media.js +0 -0
- package/lib/{routes → v2}/twitter/web-api/search.js +0 -0
- package/lib/{routes → v2}/twitter/web-api/twitter-api.js +16 -9
- package/lib/{routes → v2}/twitter/web-api/twitter-got.js +0 -0
- package/lib/{routes → v2}/twitter/web-api/user.js +0 -0
- package/lib/v2/tynu/maintainer.js +3 -0
- package/lib/v2/tynu/radar.js +13 -0
- package/lib/v2/tynu/router.js +3 -0
- package/lib/v2/tynu/tynu.js +39 -0
- package/lib/v2/uraaka-joshi/uraaka-joshi-user.js +18 -8
- package/lib/v2/uraaka-joshi/uraaka-joshi.js +20 -9
- package/lib/v2/wallstreetcn/hot.js +56 -0
- package/lib/v2/wallstreetcn/live.js +9 -18
- package/lib/v2/wallstreetcn/maintainer.js +2 -1
- package/lib/v2/wallstreetcn/news.js +22 -9
- package/lib/v2/wallstreetcn/radar.js +6 -0
- package/lib/v2/wallstreetcn/router.js +1 -0
- package/lib/v2/xiaohongshu/user.js +6 -1
- package/lib/v2/xiaohongshu/util.js +6 -0
- package/lib/v2/xueqiu/snb.js +8 -6
- package/lib/v2/yicai/author.js +26 -0
- package/lib/v2/yicai/brief.js +28 -0
- package/lib/v2/yicai/feed.js +26 -0
- package/lib/v2/yicai/headline.js +13 -0
- package/lib/v2/yicai/latest.js +13 -0
- package/lib/v2/yicai/maintainer.js +10 -0
- package/lib/v2/yicai/news.js +39 -0
- package/lib/v2/yicai/radar.js +55 -0
- package/lib/v2/yicai/router.js +10 -0
- package/lib/v2/yicai/templates/description.art +11 -0
- package/lib/v2/yicai/utils.js +51 -0
- package/lib/v2/yicai/video.js +39 -0
- package/lib/v2/yicai/vip.js +26 -0
- package/package.json +9 -9
- package/lib/routes/baijing/index.js +0 -34
- package/lib/routes/leetcode/articles.js +0 -77
- package/lib/routes/taoguba/index.js +0 -46
- package/lib/routes/taoguba/user.js +0 -46
- package/lib/routes/universities/neu/news.js +0 -61
- package/lib/routes/universities/tynu/tynu.js +0 -27
- package/lib/routes/yicai/brief.js +0 -34
package/README.md
CHANGED
|
@@ -58,6 +58,7 @@ Logo designer [sheldonrrr](https://dribbble.com/sheldonrrr)
|
|
|
58
58
|
- [RSSHub Radar](https://github.com/DIYgod/RSSHub-Radar) | 一个可以帮助你快速发现和订阅当前网站 RSS 和 RSSHub 的浏览器扩展
|
|
59
59
|
- [RSSBud](https://github.com/Cay-Zhang/RSSBud) ([TestFlight 公测](https://testflight.apple.com/join/rjCVzzHP)) | iOS 平台的 RSSHub Radar,专为移动生态优化
|
|
60
60
|
- [RSSAid](https://github.com/LeetaoGoooo/RSSAid) | 基于 Flutter 构建的 Android 平台的 RSSHub Radar
|
|
61
|
+
- [DocSearch](https://github.com/Fatpandac/DocSearch) | Link RSSHub DocSearch into Raycast
|
|
61
62
|
|
|
62
63
|
## Join Us
|
|
63
64
|
|
package/lib/radar-rules.js
CHANGED
|
@@ -80,57 +80,6 @@ module.exports = {
|
|
|
80
80
|
},
|
|
81
81
|
],
|
|
82
82
|
},
|
|
83
|
-
'twitter.com': {
|
|
84
|
-
_name: 'Twitter',
|
|
85
|
-
'.': [
|
|
86
|
-
{
|
|
87
|
-
title: '用户时间线',
|
|
88
|
-
docs: 'https://docs.rsshub.app/social-media.html#twitter',
|
|
89
|
-
source: '/:id',
|
|
90
|
-
target: (params) => {
|
|
91
|
-
if (params.id !== 'home' && params.id !== 'explore' && params.id !== 'notifications' && params.id !== 'messages' && params.id !== 'explore' && params.id !== 'search') {
|
|
92
|
-
return '/twitter/user/:id';
|
|
93
|
-
}
|
|
94
|
-
},
|
|
95
|
-
},
|
|
96
|
-
{
|
|
97
|
-
title: '用户关注时间线',
|
|
98
|
-
docs: 'https://docs.rsshub.app/social-media.html#twitter',
|
|
99
|
-
source: '/:id',
|
|
100
|
-
target: (params) => {
|
|
101
|
-
if (params.id !== 'home' && params.id !== 'explore' && params.id !== 'notifications' && params.id !== 'messages' && params.id !== 'explore' && params.id !== 'search') {
|
|
102
|
-
return '/twitter/followings/:id';
|
|
103
|
-
}
|
|
104
|
-
},
|
|
105
|
-
},
|
|
106
|
-
{
|
|
107
|
-
title: '用户喜欢列表',
|
|
108
|
-
docs: 'https://docs.rsshub.app/social-media.html#twitter',
|
|
109
|
-
source: '/:id',
|
|
110
|
-
target: (params) => {
|
|
111
|
-
if (params.id !== 'home' && params.id !== 'explore' && params.id !== 'notifications' && params.id !== 'messages' && params.id !== 'explore' && params.id !== 'search') {
|
|
112
|
-
return '/twitter/likes/:id';
|
|
113
|
-
}
|
|
114
|
-
},
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
title: '列表时间线',
|
|
118
|
-
docs: 'https://docs.rsshub.app/social-media.html#twitter',
|
|
119
|
-
source: '/:id/lists/:name',
|
|
120
|
-
target: (params) => {
|
|
121
|
-
if (params.id !== 'home' && params.id !== 'explore' && params.id !== 'notifications' && params.id !== 'messages' && params.id !== 'explore' && params.id !== 'search') {
|
|
122
|
-
return '/twitter/list/:id/:name';
|
|
123
|
-
}
|
|
124
|
-
},
|
|
125
|
-
},
|
|
126
|
-
{
|
|
127
|
-
title: '关键词',
|
|
128
|
-
docs: 'https://docs.rsshub.app/social-media.html#twitter',
|
|
129
|
-
source: '/search',
|
|
130
|
-
target: (params, url) => `/twitter/keyword/${new URL(url).searchParams.get('q')}`,
|
|
131
|
-
},
|
|
132
|
-
],
|
|
133
|
-
},
|
|
134
83
|
'smzdm.com': {
|
|
135
84
|
_name: '什么值得买',
|
|
136
85
|
www: [
|
|
@@ -635,17 +584,17 @@ module.exports = {
|
|
|
635
584
|
},
|
|
636
585
|
],
|
|
637
586
|
},
|
|
638
|
-
'baijingapp.com': {
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
},
|
|
587
|
+
// 'baijingapp.com': {
|
|
588
|
+
// _name: '白鲸出海',
|
|
589
|
+
// www: [
|
|
590
|
+
// {
|
|
591
|
+
// title: '文章',
|
|
592
|
+
// docs: 'https://docs.rsshub.app/new-media.html#bai-jing-chu-hai',
|
|
593
|
+
// source: '',
|
|
594
|
+
// target: '/baijing',
|
|
595
|
+
// },
|
|
596
|
+
// ],
|
|
597
|
+
// },
|
|
649
598
|
'xiaomi.cn': {
|
|
650
599
|
_name: '小米社区',
|
|
651
600
|
www: [
|
package/lib/router.js
CHANGED
|
@@ -152,13 +152,13 @@ router.get('/jinritoutiao/keyword/:keyword', lazyloadRouteHandler('./routes/jinr
|
|
|
152
152
|
router.get('/disqus/posts/:forum', lazyloadRouteHandler('./routes/disqus/posts'));
|
|
153
153
|
|
|
154
154
|
// Twitter
|
|
155
|
-
router.get('/twitter/user/:id/:routeParams?', lazyloadRouteHandler('./routes/twitter/user'));
|
|
156
|
-
router.get('/twitter/list/:id/:name/:routeParams?', lazyloadRouteHandler('./routes/twitter/list'));
|
|
157
|
-
router.get('/twitter/likes/:id/:routeParams?', lazyloadRouteHandler('./routes/twitter/likes'));
|
|
158
|
-
router.get('/twitter/followings/:id/:routeParams?', lazyloadRouteHandler('./routes/twitter/followings'));
|
|
159
|
-
router.get('/twitter/keyword/:keyword/:routeParams?/:limit?', lazyloadRouteHandler('./routes/twitter/keyword'));
|
|
160
|
-
router.get('/twitter/trends/:woeid?', lazyloadRouteHandler('./routes/twitter/trends'));
|
|
161
|
-
router.get('/twitter/media/:id/:routeParams?', lazyloadRouteHandler('./routes/twitter/media'));
|
|
155
|
+
// router.get('/twitter/user/:id/:routeParams?', lazyloadRouteHandler('./routes/twitter/user'));
|
|
156
|
+
// router.get('/twitter/list/:id/:name/:routeParams?', lazyloadRouteHandler('./routes/twitter/list'));
|
|
157
|
+
// router.get('/twitter/likes/:id/:routeParams?', lazyloadRouteHandler('./routes/twitter/likes'));
|
|
158
|
+
// router.get('/twitter/followings/:id/:routeParams?', lazyloadRouteHandler('./routes/twitter/followings'));
|
|
159
|
+
// router.get('/twitter/keyword/:keyword/:routeParams?/:limit?', lazyloadRouteHandler('./routes/twitter/keyword'));
|
|
160
|
+
// router.get('/twitter/trends/:woeid?', lazyloadRouteHandler('./routes/twitter/trends'));
|
|
161
|
+
// router.get('/twitter/media/:id/:routeParams?', lazyloadRouteHandler('./routes/twitter/media'));
|
|
162
162
|
|
|
163
163
|
// YouTube migrated to v2
|
|
164
164
|
// router.get('/youtube/user/:username/:embed?', lazyloadRouteHandler('./routes/youtube/user'));
|
|
@@ -762,7 +762,7 @@ router.get('/upc/jsj/:type?', lazyloadRouteHandler('./routes/universities/upc/js
|
|
|
762
762
|
// router.get('/ncwu/notice', lazyloadRouteHandler('./routes/universities/ncwu/notice'));
|
|
763
763
|
|
|
764
764
|
// 太原师范学院
|
|
765
|
-
router.get('/tynu', lazyloadRouteHandler('./routes/universities/tynu/tynu'));
|
|
765
|
+
// router.get('/tynu', lazyloadRouteHandler('./routes/universities/tynu/tynu'));
|
|
766
766
|
|
|
767
767
|
// 中北大学
|
|
768
768
|
router.get('/nuc/:type', lazyloadRouteHandler('./routes/universities/nuc/index'));
|
|
@@ -1308,7 +1308,7 @@ router.get('/aisixiang/thinktank/:name/:type?', lazyloadRouteHandler('./routes/a
|
|
|
1308
1308
|
// router.get('/hackernews/:section/:type?', lazyloadRouteHandler('./routes/hackernews/story'));
|
|
1309
1309
|
|
|
1310
1310
|
// LeetCode
|
|
1311
|
-
router.get('/leetcode/articles', lazyloadRouteHandler('./routes/leetcode/articles'));
|
|
1311
|
+
// router.get('/leetcode/articles', lazyloadRouteHandler('./routes/leetcode/articles'));
|
|
1312
1312
|
router.get('/leetcode/submission/us/:user', lazyloadRouteHandler('./routes/leetcode/check-us'));
|
|
1313
1313
|
router.get('/leetcode/submission/cn/:user', lazyloadRouteHandler('./routes/leetcode/check-cn'));
|
|
1314
1314
|
|
|
@@ -1386,8 +1386,8 @@ router.get('/blogs/wordpress/:domain/:https?', lazyloadRouteHandler('./routes/bl
|
|
|
1386
1386
|
router.get('/xici/:id?', lazyloadRouteHandler('./routes/xici'));
|
|
1387
1387
|
|
|
1388
1388
|
// 淘股吧论坛
|
|
1389
|
-
router.get('/taoguba/index', lazyloadRouteHandler('./routes/taoguba/index'));
|
|
1390
|
-
router.get('/taoguba/user/:uid', lazyloadRouteHandler('./routes/taoguba/user'));
|
|
1389
|
+
// router.get('/taoguba/index', lazyloadRouteHandler('./routes/taoguba/index'));
|
|
1390
|
+
// router.get('/taoguba/user/:uid', lazyloadRouteHandler('./routes/taoguba/user'));
|
|
1391
1391
|
|
|
1392
1392
|
// 今日热榜
|
|
1393
1393
|
router.get('/tophub/:id', lazyloadRouteHandler('./routes/tophub'));
|
|
@@ -1466,8 +1466,8 @@ router.get('/zucc/cssearch/latest/:webVpn/:key', lazyloadRouteHandler('./routes/
|
|
|
1466
1466
|
router.get('/ccnu/career', lazyloadRouteHandler('./routes/universities/ccnu/career'));
|
|
1467
1467
|
|
|
1468
1468
|
// Infoq
|
|
1469
|
-
router.get('/infoq/recommend', lazyloadRouteHandler('./routes/infoq/recommend'));
|
|
1470
|
-
router.get('/infoq/topic/:id', lazyloadRouteHandler('./routes/infoq/topic'));
|
|
1469
|
+
// router.get('/infoq/recommend', lazyloadRouteHandler('./routes/infoq/recommend'));
|
|
1470
|
+
// router.get('/infoq/topic/:id', lazyloadRouteHandler('./routes/infoq/topic'));
|
|
1471
1471
|
|
|
1472
1472
|
// checkee
|
|
1473
1473
|
router.get('/checkee/:dispdate', lazyloadRouteHandler('./routes/checkee/index'));
|
|
@@ -1639,11 +1639,11 @@ router.get('/enclavebooks/user/:uid', lazyloadRouteHandler('./routes/enclavebook
|
|
|
1639
1639
|
router.get('/enclavebooks/collection/:uid', lazyloadRouteHandler('./routes/enclavebooks/collection.js'));
|
|
1640
1640
|
|
|
1641
1641
|
// 色花堂
|
|
1642
|
-
router.get('/dsndsht23/picture/:subforumid', lazyloadRouteHandler('./routes/dsndsht23/index'));
|
|
1643
|
-
router.get('/dsndsht23/bt/:subforumid?', lazyloadRouteHandler('./routes/dsndsht23/index'));
|
|
1644
|
-
router.get('/dsndsht23/:subforumid?/:type?', lazyloadRouteHandler('./routes/dsndsht23/index'));
|
|
1645
|
-
router.get('/dsndsht23/:subforumid?', lazyloadRouteHandler('./routes/dsndsht23/index'));
|
|
1646
|
-
router.get('/dsndsht23', lazyloadRouteHandler('./routes/dsndsht23/index'));
|
|
1642
|
+
// router.get('/dsndsht23/picture/:subforumid', lazyloadRouteHandler('./routes/dsndsht23/index'));
|
|
1643
|
+
// router.get('/dsndsht23/bt/:subforumid?', lazyloadRouteHandler('./routes/dsndsht23/index'));
|
|
1644
|
+
// router.get('/dsndsht23/:subforumid?/:type?', lazyloadRouteHandler('./routes/dsndsht23/index'));
|
|
1645
|
+
// router.get('/dsndsht23/:subforumid?', lazyloadRouteHandler('./routes/dsndsht23/index'));
|
|
1646
|
+
// router.get('/dsndsht23', lazyloadRouteHandler('./routes/dsndsht23/index'));
|
|
1647
1647
|
|
|
1648
1648
|
// 数英网最新文章
|
|
1649
1649
|
router.get('/digitaling/index', lazyloadRouteHandler('./routes/digitaling/index'));
|
|
@@ -1836,7 +1836,7 @@ router.get('/simonsfoundation/articles', lazyloadRouteHandler('./routes/simonsfo
|
|
|
1836
1836
|
router.get('/simonsfoundation/recommend', lazyloadRouteHandler('./routes/simonsfoundation/recommend'));
|
|
1837
1837
|
|
|
1838
1838
|
// 王者荣耀
|
|
1839
|
-
router.get('/tencent/pvp/newsindex/:type', lazyloadRouteHandler('./routes/tencent/pvp/newsindex'));
|
|
1839
|
+
// router.get('/tencent/pvp/newsindex/:type', lazyloadRouteHandler('./routes/tencent/pvp/newsindex'));
|
|
1840
1840
|
|
|
1841
1841
|
// 《明日方舟》游戏 (migrated to v2)
|
|
1842
1842
|
// router.get('/arknights/news', lazyloadRouteHandler('./routes/arknights/news'));
|
|
@@ -1872,7 +1872,7 @@ router.get('/zcool/top', lazyloadRouteHandler('./routes/zcool/top')); // 兼容
|
|
|
1872
1872
|
router.get('/zcool/user/:uid', lazyloadRouteHandler('./routes/zcool/user'));
|
|
1873
1873
|
|
|
1874
1874
|
// 第一财经
|
|
1875
|
-
router.get('/yicai/brief', lazyloadRouteHandler('./routes/yicai/brief.js'));
|
|
1875
|
+
// router.get('/yicai/brief', lazyloadRouteHandler('./routes/yicai/brief.js'));
|
|
1876
1876
|
|
|
1877
1877
|
// 一兜糖
|
|
1878
1878
|
router.get('/yidoutang/index', lazyloadRouteHandler('./routes/yidoutang/index.js'));
|
|
@@ -2327,7 +2327,7 @@ router.get('/yahoo-jp-tv/:query', lazyloadRouteHandler('./routes/yahoo-jp-tv/ind
|
|
|
2327
2327
|
router.get('/yahoo-author/:author', lazyloadRouteHandler('./routes/yahoo-author/index'));
|
|
2328
2328
|
|
|
2329
2329
|
// 白鲸出海
|
|
2330
|
-
router.get('/baijing', lazyloadRouteHandler('./routes/baijing'));
|
|
2330
|
+
// router.get('/baijing', lazyloadRouteHandler('./routes/baijing'));
|
|
2331
2331
|
|
|
2332
2332
|
// 低端影视
|
|
2333
2333
|
router.get('/ddrk/update/:name/:season?', lazyloadRouteHandler('./routes/ddrk/index'));
|
|
@@ -2473,7 +2473,7 @@ router.get('/haohaozhu/whole-house/:keyword?', lazyloadRouteHandler('./routes/ha
|
|
|
2473
2473
|
router.get('/haohaozhu/discover/:keyword?', lazyloadRouteHandler('./routes/haohaozhu/discover'));
|
|
2474
2474
|
|
|
2475
2475
|
// 东北大学
|
|
2476
|
-
router.get('/neu/news/:type', lazyloadRouteHandler('./routes/universities/neu/news'));
|
|
2476
|
+
// router.get('/neu/news/:type', lazyloadRouteHandler('./routes/universities/neu/news'));
|
|
2477
2477
|
|
|
2478
2478
|
// 快递100
|
|
2479
2479
|
router.get('/kuaidi100/track/:number/:id/:phone?', lazyloadRouteHandler('./routes/kuaidi100/index'));
|
|
@@ -2638,8 +2638,8 @@ router.get('/hnust/graduate/:type?', lazyloadRouteHandler('./routes/universities
|
|
|
2638
2638
|
router.get('/swjtu/tl/news', lazyloadRouteHandler('./routes/swjtu/tl/news'));
|
|
2639
2639
|
|
|
2640
2640
|
// AGE动漫
|
|
2641
|
-
router.get('/agefans/detail/:id', lazyloadRouteHandler('./routes/agefans/detail'));
|
|
2642
|
-
router.get('/agefans/update', lazyloadRouteHandler('./routes/agefans/update'));
|
|
2641
|
+
// router.get('/agefans/detail/:id', lazyloadRouteHandler('./routes/agefans/detail'));
|
|
2642
|
+
// router.get('/agefans/update', lazyloadRouteHandler('./routes/agefans/update'));
|
|
2643
2643
|
|
|
2644
2644
|
// Checkra1n
|
|
2645
2645
|
router.get('/checkra1n/releases', lazyloadRouteHandler('./routes/checkra1n/releases'));
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
const got = require('@/utils/got');
|
|
2
|
+
const cheerio = require('cheerio');
|
|
3
|
+
const { parseDate } = require('@/utils/parse-date');
|
|
4
|
+
const timezone = require('@/utils/timezone');
|
|
5
|
+
const iconv = require('iconv-lite');
|
|
6
|
+
|
|
7
|
+
// http://www.2cycd.com/forum.php?mod=forumdisplay&fid=43&orderby=dateline
|
|
8
|
+
|
|
9
|
+
module.exports = async (ctx) => {
|
|
10
|
+
const fid = ctx.params.fid ?? '43';
|
|
11
|
+
const sort = ctx.params.sort ?? 'dateline';
|
|
12
|
+
|
|
13
|
+
const rootUrl = 'http://www.2cycd.com/forum.php?mod=forumdisplay';
|
|
14
|
+
const currentUrl = `${rootUrl}&fid=${fid}&orderby=${sort}`;
|
|
15
|
+
|
|
16
|
+
const response = await got(currentUrl, {
|
|
17
|
+
responseType: 'buffer',
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
const $ = cheerio.load(iconv.decode(response.data, 'gbk'));
|
|
21
|
+
|
|
22
|
+
const list = $('tbody[id^="normalthread_"]')
|
|
23
|
+
.map((_, item) => {
|
|
24
|
+
item = $(item);
|
|
25
|
+
const xst = item.find('a.s.xst');
|
|
26
|
+
const author = item.find('td.by cite a').eq(0).text();
|
|
27
|
+
return {
|
|
28
|
+
title: xst.text(),
|
|
29
|
+
link: xst.attr('href'),
|
|
30
|
+
author,
|
|
31
|
+
};
|
|
32
|
+
})
|
|
33
|
+
.get();
|
|
34
|
+
// console.log(list);
|
|
35
|
+
const items = await Promise.all(
|
|
36
|
+
list.map((item) =>
|
|
37
|
+
ctx.cache.tryGet(item.link, async () => {
|
|
38
|
+
const detailResponse = await got(item.link, {
|
|
39
|
+
responseType: 'buffer',
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
const content = cheerio.load(iconv.decode(detailResponse.data, 'gbk'));
|
|
43
|
+
const first_post = content('td[id^="postmessage_"]').first();
|
|
44
|
+
const dateobj = content('em[id^="authorposton"]').first();
|
|
45
|
+
item.description = first_post.html();
|
|
46
|
+
item.pubDate = timezone(parseDate(dateobj.find('span').attr('title'), 'YYYY-M-D HH:mm:ss'), +8);
|
|
47
|
+
|
|
48
|
+
return item;
|
|
49
|
+
})
|
|
50
|
+
)
|
|
51
|
+
);
|
|
52
|
+
ctx.state.data = {
|
|
53
|
+
title: $('title').text(),
|
|
54
|
+
link: currentUrl,
|
|
55
|
+
item: items,
|
|
56
|
+
};
|
|
57
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
'2cycd.com': {
|
|
3
|
+
_name: '二次元虫洞',
|
|
4
|
+
'.': [
|
|
5
|
+
{
|
|
6
|
+
title: '板块',
|
|
7
|
+
docs: 'https://docs.rsshub.app/bbs.html#er-ci-yuan-chong-dong',
|
|
8
|
+
source: '/:path',
|
|
9
|
+
target: (params, url) => {
|
|
10
|
+
let pid, sort;
|
|
11
|
+
const static_matched = params.path.match(/forum-(\d+)-\d+.html/);
|
|
12
|
+
if (static_matched) {
|
|
13
|
+
pid = static_matched[1];
|
|
14
|
+
} else if (params.path === 'forum.php') {
|
|
15
|
+
pid = new URL(url).searchParams.get('fid');
|
|
16
|
+
sort = new URL(url).searchParams.get('orderby');
|
|
17
|
+
} else {
|
|
18
|
+
return false;
|
|
19
|
+
}
|
|
20
|
+
return `/2cycd/${pid}/${sort ? sort : 'dateline'}`;
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
],
|
|
24
|
+
},
|
|
25
|
+
};
|
|
@@ -0,0 +1,74 @@
|
|
|
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
|
+
const { art } = require('@/utils/render');
|
|
6
|
+
const path = require('path');
|
|
7
|
+
|
|
8
|
+
module.exports = async (ctx) => {
|
|
9
|
+
const rootUrl = 'https://www.78dm.net';
|
|
10
|
+
const currentUrl = `${rootUrl}${ctx.path === '/' ? '/news' : /\/[0-9]+$/.test(ctx.path) ? `${ctx.path}.html` : ctx.path}`;
|
|
11
|
+
|
|
12
|
+
const response = await got({
|
|
13
|
+
method: 'get',
|
|
14
|
+
url: currentUrl,
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
const $ = cheerio.load(response.data);
|
|
18
|
+
|
|
19
|
+
let items = $('.card-title')
|
|
20
|
+
.slice(0, ctx.query.limit ? parseInt(ctx.query.limit) : 30)
|
|
21
|
+
.toArray()
|
|
22
|
+
.map((item) => {
|
|
23
|
+
item = $(item);
|
|
24
|
+
|
|
25
|
+
const link = item.attr('href');
|
|
26
|
+
|
|
27
|
+
return {
|
|
28
|
+
title: item.text(),
|
|
29
|
+
link: /^\/\//.test(link) ? `https:${link}` : link,
|
|
30
|
+
};
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
items = await Promise.all(
|
|
34
|
+
items.map((item) =>
|
|
35
|
+
ctx.cache.tryGet(item.link, async () => {
|
|
36
|
+
const detailResponse = await got({
|
|
37
|
+
method: 'get',
|
|
38
|
+
url: item.link,
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
const content = cheerio.load(detailResponse.data);
|
|
42
|
+
|
|
43
|
+
content('.tag, .level').remove();
|
|
44
|
+
content('.lazy').each(function () {
|
|
45
|
+
content(this).replaceWith(
|
|
46
|
+
art(path.join(__dirname, 'templates/image.art'), {
|
|
47
|
+
image: content(this).attr('data-src'),
|
|
48
|
+
})
|
|
49
|
+
);
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
item.author = content('.push-username').first().text().split('楼主')[0];
|
|
53
|
+
item.pubDate = timezone(
|
|
54
|
+
parseDate(
|
|
55
|
+
content('.push-time')
|
|
56
|
+
.first()
|
|
57
|
+
.text()
|
|
58
|
+
.match(/(\d{4}-\d{2}-\d{2} \d{2}:\d{2})/)[1]
|
|
59
|
+
),
|
|
60
|
+
+8
|
|
61
|
+
);
|
|
62
|
+
item.description = content('.image-text-content').first().html();
|
|
63
|
+
|
|
64
|
+
return item;
|
|
65
|
+
})
|
|
66
|
+
)
|
|
67
|
+
);
|
|
68
|
+
|
|
69
|
+
ctx.state.data = {
|
|
70
|
+
title: `78动漫 - ${$('title').text().split('_')[0]} - ${$('.actived').first().text()}`,
|
|
71
|
+
link: currentUrl,
|
|
72
|
+
item: items,
|
|
73
|
+
};
|
|
74
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
'78dm.net': {
|
|
3
|
+
_name: '78动漫',
|
|
4
|
+
'.': [
|
|
5
|
+
{
|
|
6
|
+
title: '新品速递',
|
|
7
|
+
docs: 'https://docs.rsshub.app/anime.html#_78-dong-man-xin-pin-su-di',
|
|
8
|
+
source: ['/news', '/'],
|
|
9
|
+
target: (params, url) =>
|
|
10
|
+
`/78dm${new URL(url)
|
|
11
|
+
.toString()
|
|
12
|
+
.match(/78dm\.net(.*)$/)[1]
|
|
13
|
+
.replace(/\.html$/, '')}`,
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
title: '精彩评测',
|
|
17
|
+
docs: 'https://docs.rsshub.app/anime.html#_78-dong-man-jing-cai-ping-ce',
|
|
18
|
+
source: ['/eval_list', '/'],
|
|
19
|
+
target: (params, url) =>
|
|
20
|
+
`/78dm${new URL(url)
|
|
21
|
+
.toString()
|
|
22
|
+
.match(/78dm\.net(.*)$/)[1]
|
|
23
|
+
.replace(/\.html$/, '')}`,
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
title: '新品速递',
|
|
27
|
+
docs: 'https://docs.rsshub.app/anime.html#_78-dong-man-hao-tie-tui-jian',
|
|
28
|
+
source: ['/ht_list', '/'],
|
|
29
|
+
target: (params, url) =>
|
|
30
|
+
`/78dm${new URL(url)
|
|
31
|
+
.toString()
|
|
32
|
+
.match(/78dm\.net(.*)$/)[1]
|
|
33
|
+
.replace(/\.html$/, '')}`,
|
|
34
|
+
},
|
|
35
|
+
],
|
|
36
|
+
},
|
|
37
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<img src="{{ image }}">
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
const got = require('@/utils/got');
|
|
2
|
+
const cheerio = require('cheerio');
|
|
3
|
+
const { parseDate } = require('@/utils/parse-date');
|
|
4
|
+
const { art } = require('@/utils/render');
|
|
5
|
+
const path = require('path');
|
|
6
|
+
|
|
7
|
+
module.exports = async (ctx) => {
|
|
8
|
+
const { domain = '91porn.com' } = ctx.query;
|
|
9
|
+
const { uid, lang = 'en_US' } = ctx.params;
|
|
10
|
+
const siteUrl = `https://${domain}/uvideos.php?UID=${uid}&type=public`;
|
|
11
|
+
|
|
12
|
+
const response = await got.post(siteUrl, {
|
|
13
|
+
form: {
|
|
14
|
+
session_language: lang,
|
|
15
|
+
},
|
|
16
|
+
headers: {
|
|
17
|
+
referer: siteUrl,
|
|
18
|
+
},
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
const $ = cheerio.load(response.data);
|
|
22
|
+
|
|
23
|
+
let items = $('.row .well')
|
|
24
|
+
.toArray()
|
|
25
|
+
.map((item) => {
|
|
26
|
+
item = $(item);
|
|
27
|
+
return {
|
|
28
|
+
title: item.find('.video-title').text(),
|
|
29
|
+
link: item.find('a').attr('href'),
|
|
30
|
+
poster: item.find('.img-responsive').attr('src'),
|
|
31
|
+
};
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
items = await Promise.all(
|
|
35
|
+
items.map((item) =>
|
|
36
|
+
ctx.cache.tryGet(`91porn:${lang}:${new URL(item.link).searchParams.get('viewkey')}`, async () => {
|
|
37
|
+
const { data } = await got(item.link);
|
|
38
|
+
const $ = cheerio.load(data);
|
|
39
|
+
|
|
40
|
+
item.pubDate = parseDate($('.title-yakov').eq(0).text(), 'YYYY-MM-DD');
|
|
41
|
+
item.description = art(path.join(__dirname, 'templates/index.art'), {
|
|
42
|
+
link: item.link,
|
|
43
|
+
poster: item.poster,
|
|
44
|
+
});
|
|
45
|
+
item.author = $('.title-yakov a span').text();
|
|
46
|
+
delete item.poster;
|
|
47
|
+
|
|
48
|
+
return item;
|
|
49
|
+
})
|
|
50
|
+
)
|
|
51
|
+
);
|
|
52
|
+
|
|
53
|
+
ctx.state.data = {
|
|
54
|
+
title: `${$('.login_register_header').text()} - 91porn`,
|
|
55
|
+
link: siteUrl,
|
|
56
|
+
item: items,
|
|
57
|
+
};
|
|
58
|
+
};
|
package/lib/v2/91porn/radar.js
CHANGED
|
@@ -3,11 +3,17 @@ module.exports = {
|
|
|
3
3
|
_name: '91porn',
|
|
4
4
|
'.': [
|
|
5
5
|
{
|
|
6
|
-
title: '
|
|
6
|
+
title: '今日排行',
|
|
7
7
|
docs: 'https://docs.rsshub.app/multimedia.html#_91porn',
|
|
8
8
|
source: ['/index.php'],
|
|
9
9
|
target: '/91porn',
|
|
10
10
|
},
|
|
11
|
+
{
|
|
12
|
+
title: '作者',
|
|
13
|
+
docs: 'https://docs.rsshub.app/multimedia.html#_91porn',
|
|
14
|
+
source: ['/uvideos.php'],
|
|
15
|
+
target: (_params, url) => `/91porn/author/${new URL(url).searchParams.get('UID')}`,
|
|
16
|
+
},
|
|
11
17
|
],
|
|
12
18
|
},
|
|
13
19
|
};
|
package/lib/v2/91porn/router.js
CHANGED
|
@@ -2,10 +2,7 @@ const got = require('@/utils/got');
|
|
|
2
2
|
const cheerio = require('cheerio');
|
|
3
3
|
|
|
4
4
|
module.exports = async (ctx) => {
|
|
5
|
-
const response = await got({
|
|
6
|
-
method: 'get',
|
|
7
|
-
url: `https://www.agefans.cc/detail/${ctx.params.id}`,
|
|
8
|
-
});
|
|
5
|
+
const response = await got(`https://www.agemys.cc/detail/${ctx.params.id}`);
|
|
9
6
|
const $ = cheerio.load(response.data);
|
|
10
7
|
|
|
11
8
|
const defaultIdx = parseInt($('#DEF_PLAYINDEX').get(0).children[0].data);
|
|
@@ -15,14 +12,14 @@ module.exports = async (ctx) => {
|
|
|
15
12
|
.map((idx, item) => ({
|
|
16
13
|
title: $(item).text(),
|
|
17
14
|
description: $(item).text(),
|
|
18
|
-
link: `https://www.
|
|
15
|
+
link: `https://www.agemys.cc${$(item).attr('href')}`,
|
|
19
16
|
}))
|
|
20
17
|
.get();
|
|
21
18
|
items.reverse();
|
|
22
19
|
|
|
23
20
|
ctx.state.data = {
|
|
24
21
|
title: `AGE动漫 - ${$('.detail_imform_name').text()}`,
|
|
25
|
-
link: `https://www.
|
|
22
|
+
link: `https://www.agemys.cc/detail/${ctx.params.id}`,
|
|
26
23
|
description: $('.detail_imform_desc_pre').text(),
|
|
27
24
|
item: items,
|
|
28
25
|
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
'agemys.cc': {
|
|
3
|
+
_name: 'AGE动漫',
|
|
4
|
+
'.': [
|
|
5
|
+
{
|
|
6
|
+
title: '最近更新',
|
|
7
|
+
docs: 'https://docs.rsshub.app/anime.html#age-dong-man',
|
|
8
|
+
source: ['/update', '/'],
|
|
9
|
+
target: '/agefans/update',
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
title: '番剧详情',
|
|
13
|
+
docs: 'https://docs.rsshub.app/anime.html#age-dong-man',
|
|
14
|
+
source: ['/detail/:id'],
|
|
15
|
+
target: '/agefans/detail/:id',
|
|
16
|
+
},
|
|
17
|
+
],
|
|
18
|
+
},
|
|
19
|
+
};
|
|
@@ -2,22 +2,19 @@ const got = require('@/utils/got');
|
|
|
2
2
|
const cheerio = require('cheerio');
|
|
3
3
|
|
|
4
4
|
module.exports = async (ctx) => {
|
|
5
|
-
const rootUrl = 'https://www.agemys.
|
|
5
|
+
const rootUrl = 'https://www.agemys.cc';
|
|
6
6
|
const currentUrl = `${rootUrl}/update`;
|
|
7
|
-
const response = await got(
|
|
8
|
-
method: 'get',
|
|
9
|
-
url: currentUrl,
|
|
10
|
-
});
|
|
7
|
+
const response = await got(currentUrl);
|
|
11
8
|
|
|
12
9
|
const $ = cheerio.load(response.data);
|
|
13
10
|
|
|
14
11
|
const list = $('.anime_icon2_name a')
|
|
15
|
-
.slice(0, 15)
|
|
16
12
|
.map((_, item) => {
|
|
17
13
|
item = $(item);
|
|
18
14
|
return {
|
|
19
15
|
title: item.text(),
|
|
20
16
|
link: `${rootUrl}${item.attr('href')}`,
|
|
17
|
+
guid: `${rootUrl}${item.attr('href')}#${item.parent().prev().find('.anime_icon1_name1').text()}`,
|
|
21
18
|
};
|
|
22
19
|
})
|
|
23
20
|
.get();
|
|
@@ -25,10 +22,7 @@ module.exports = async (ctx) => {
|
|
|
25
22
|
const items = await Promise.all(
|
|
26
23
|
list.map((item) =>
|
|
27
24
|
ctx.cache.tryGet(item.link, async () => {
|
|
28
|
-
const detailResponse = await got(
|
|
29
|
-
method: 'get',
|
|
30
|
-
url: item.link,
|
|
31
|
-
});
|
|
25
|
+
const detailResponse = await got(item.link);
|
|
32
26
|
const content = cheerio.load(detailResponse.data);
|
|
33
27
|
|
|
34
28
|
item.description = content('.div_left').html();
|