rsshub 1.0.0-master.e348914 → 1.0.0-master.e3f3ce8

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.
Files changed (915) hide show
  1. package/README.md +6 -24
  2. package/lib/api_router.js +1 -1
  3. package/lib/config.js +10 -0
  4. package/lib/maintainer.js +25 -0
  5. package/lib/middleware/cache/memory.js +2 -2
  6. package/lib/middleware/parameter.js +1 -1
  7. package/lib/radar-rules.js +0 -237
  8. package/lib/radar.js +79 -0
  9. package/lib/router.js +89 -95
  10. package/lib/routes/everything/changes.js +1 -1
  11. package/lib/routes/gov/hunan/notice.js +1 -1
  12. package/lib/utils/puppeteer.js +1 -1
  13. package/lib/utils/wechat-mp.js +1 -1
  14. package/lib/v2/0818tuan/index.js +47 -0
  15. package/lib/v2/0818tuan/maintainer.js +3 -0
  16. package/lib/v2/0818tuan/radar.js +13 -0
  17. package/lib/v2/0818tuan/router.js +3 -0
  18. package/lib/v2/18comic/templates/description.art +4 -0
  19. package/lib/v2/18comic/utils.js +9 -5
  20. package/lib/v2/1point3acres/blog.js +67 -0
  21. package/lib/v2/1point3acres/category.js +17 -0
  22. package/lib/v2/1point3acres/maintainer.js +9 -0
  23. package/lib/v2/1point3acres/offer.js +69 -0
  24. package/lib/v2/1point3acres/radar.js +53 -0
  25. package/lib/v2/1point3acres/router.js +10 -0
  26. package/lib/v2/1point3acres/section.js +28 -0
  27. package/lib/v2/1point3acres/templates/image.art +1 -0
  28. package/lib/v2/1point3acres/templates/offer.art +11 -0
  29. package/lib/v2/1point3acres/thread.js +15 -0
  30. package/lib/v2/1point3acres/utils.js +79 -0
  31. package/lib/v2/2048/radar.js +13 -0
  32. package/lib/v2/50forum/radar.js +1 -1
  33. package/lib/v2/50forum/zhuanjia.js +1 -1
  34. package/lib/v2/591/maintainer.js +3 -0
  35. package/lib/{routes → v2}/6park/index.js +20 -12
  36. package/lib/v2/6park/maintainer.js +8 -0
  37. package/lib/v2/6park/news.js +76 -0
  38. package/lib/v2/6park/radar.js +65 -0
  39. package/lib/v2/6park/router.js +4 -0
  40. package/lib/v2/6v123/latestMovies.js +14 -0
  41. package/lib/v2/6v123/latestTVSeries.js +14 -0
  42. package/lib/v2/6v123/maintainer.js +4 -0
  43. package/lib/v2/6v123/radar.js +23 -0
  44. package/lib/v2/6v123/router.js +4 -0
  45. package/lib/v2/6v123/utils.js +83 -0
  46. package/lib/v2/acfun/radar.js +1 -1
  47. package/lib/v2/aijishu/index.js +26 -0
  48. package/lib/v2/aijishu/maintainer.js +5 -0
  49. package/lib/v2/aijishu/radar.js +25 -0
  50. package/lib/v2/aijishu/router.js +3 -0
  51. package/lib/v2/aijishu/utils.js +36 -0
  52. package/lib/v2/aliyundrive/files.js +10 -14
  53. package/lib/v2/amazon/awsblogs.js +27 -0
  54. package/lib/v2/amazon/kindle-software-updates.js +48 -0
  55. package/lib/v2/amazon/maintainer.js +4 -0
  56. package/lib/v2/amazon/radar.js +24 -0
  57. package/lib/v2/amazon/router.js +4 -0
  58. package/lib/v2/amazon/templates/software-description.art +4 -0
  59. package/lib/v2/apache/apisix/blog.js +32 -0
  60. package/lib/v2/apache/maintainer.js +3 -0
  61. package/lib/v2/apache/radar.js +13 -0
  62. package/lib/v2/apache/router.js +3 -0
  63. package/lib/v2/apiseven/blog.js +46 -0
  64. package/lib/v2/apiseven/maintainer.js +3 -0
  65. package/lib/v2/apiseven/radar.js +13 -0
  66. package/lib/v2/apiseven/router.js +3 -0
  67. package/lib/v2/apkpure/maintainer.js +3 -0
  68. package/lib/v2/apkpure/radar.js +13 -0
  69. package/lib/v2/apkpure/router.js +3 -0
  70. package/lib/v2/apkpure/versions.js +48 -0
  71. package/lib/v2/apnews/topics.js +2 -1
  72. package/lib/v2/aqara/community.js +32 -0
  73. package/lib/v2/aqara/maintainer.js +4 -0
  74. package/lib/v2/aqara/news.js +53 -0
  75. package/lib/v2/aqara/radar.js +21 -0
  76. package/lib/v2/aqara/router.js +4 -0
  77. package/lib/v2/arcteryx/maintainer.js +5 -0
  78. package/lib/v2/arcteryx/new-arrivals.js +38 -0
  79. package/lib/v2/arcteryx/outlet.js +40 -0
  80. package/lib/v2/arcteryx/radar.js +29 -0
  81. package/lib/v2/arcteryx/regear-new-arrivals.js +53 -0
  82. package/lib/v2/arcteryx/router.js +5 -0
  83. package/lib/v2/arcteryx/templates/product-description.art +12 -0
  84. package/lib/v2/arcteryx/templates/regear-product-description.art +16 -0
  85. package/lib/v2/arcteryx/utils.js +23 -0
  86. package/lib/v2/arknights/radar.js +1 -1
  87. package/lib/v2/atcoder/radar.js +1 -1
  88. package/lib/v2/bast/index.js +74 -0
  89. package/lib/v2/bast/maintainer.js +3 -0
  90. package/lib/v2/bast/radar.js +13 -0
  91. package/lib/v2/bast/router.js +3 -0
  92. package/lib/v2/bellroy/maintainer.js +3 -0
  93. package/lib/v2/bellroy/new-releases.js +26 -0
  94. package/lib/v2/bellroy/radar.js +13 -0
  95. package/lib/v2/bellroy/router.js +3 -0
  96. package/lib/v2/bgmlist/maintainer.js +3 -0
  97. package/lib/v2/bgmlist/onair.js +32 -0
  98. package/lib/v2/bgmlist/radar.js +13 -0
  99. package/lib/v2/bgmlist/router.js +3 -0
  100. package/lib/v2/bgmlist/templates/description.art +4 -0
  101. package/lib/v2/bilibili/bangumi.js +4 -4
  102. package/lib/v2/bilibili/cache.js +8 -3
  103. package/lib/v2/bilibili/dynamic.js +2 -2
  104. package/lib/v2/bilibili/followings_dynamic.js +3 -3
  105. package/lib/v2/bilibili/hotSearch.js +25 -0
  106. package/lib/v2/bilibili/maintainer.js +1 -0
  107. package/lib/v2/bilibili/radar.js +13 -1
  108. package/lib/v2/bilibili/router.js +1 -0
  109. package/lib/v2/bilibili/topic.js +2 -2
  110. package/lib/v2/bilibili/utils.js +6 -4
  111. package/lib/v2/bilibili/video-all.js +2 -2
  112. package/lib/v2/bilibili/video.js +1 -1
  113. package/lib/v2/biquge/radar.js +1 -1
  114. package/lib/{routes/universities → v2}/bit/cs/cs.js +4 -6
  115. package/lib/v2/bit/cs/utils.js +53 -0
  116. package/lib/{routes/universities → v2}/bit/jwc/jwc.js +4 -6
  117. package/lib/v2/bit/jwc/utils.js +49 -0
  118. package/lib/v2/bit/maintainer.js +3 -0
  119. package/lib/v2/bit/radar.js +25 -1
  120. package/lib/v2/bit/router.js +3 -0
  121. package/lib/v2/bit/yjs.js +27 -0
  122. package/lib/v2/bjsk/keti.js +54 -0
  123. package/lib/v2/bjsk/maintainer.js +1 -0
  124. package/lib/v2/bjsk/radar.js +8 -0
  125. package/lib/v2/bjsk/router.js +1 -0
  126. package/lib/v2/caai/index.js +22 -0
  127. package/lib/v2/caai/maintainer.js +3 -0
  128. package/lib/v2/caai/radar.js +13 -0
  129. package/lib/v2/caai/router.js +3 -0
  130. package/lib/v2/caai/utils.js +46 -0
  131. package/lib/{routes/openai/blog.js → v2/camchina/index.js} +16 -16
  132. package/lib/v2/camchina/maintainer.js +3 -0
  133. package/lib/v2/camchina/radar.js +13 -0
  134. package/lib/v2/camchina/router.js +3 -0
  135. package/lib/v2/cankaoxiaoxi/index.js +44 -57
  136. package/lib/v2/cankaoxiaoxi/maintainer.js +2 -1
  137. package/lib/v2/cankaoxiaoxi/radar.js +7 -52
  138. package/lib/v2/cankaoxiaoxi/router.js +2 -1
  139. package/lib/v2/cankaoxiaoxi/templates/description.art +5 -0
  140. package/lib/{routes/universities/zkyyjs/zkyyjs.js → v2/cas/ia/yjs.js} +10 -8
  141. package/lib/v2/cas/maintainer.js +1 -0
  142. package/lib/v2/cas/radar.js +9 -1
  143. package/lib/v2/cas/router.js +1 -0
  144. package/lib/v2/cau/ele.js +42 -0
  145. package/lib/v2/cau/maintainer.js +4 -0
  146. package/lib/v2/cau/radar.js +21 -0
  147. package/lib/v2/cau/router.js +4 -0
  148. package/lib/v2/cau/yjs.js +42 -0
  149. package/lib/v2/{ccfcv → ccf/ccfcv}/index.js +2 -2
  150. package/lib/v2/ccf/maintainer.js +5 -0
  151. package/lib/{routes → v2}/ccf/news.js +8 -14
  152. package/lib/v2/ccf/radar.js +41 -0
  153. package/lib/v2/ccf/router.js +5 -0
  154. package/lib/v2/ccf/templates/tfbd/description.art +1 -0
  155. package/lib/v2/ccf/tfbd/index.js +22 -0
  156. package/lib/v2/ccf/tfbd/utils.js +47 -0
  157. package/lib/v2/ccnu/career.js +31 -0
  158. package/lib/v2/ccnu/cs.js +28 -0
  159. package/lib/v2/ccnu/maintainer.js +6 -0
  160. package/lib/v2/ccnu/radar.js +40 -0
  161. package/lib/v2/ccnu/router.js +6 -0
  162. package/lib/v2/ccnu/wu.js +27 -0
  163. package/lib/v2/ccnu/yjs.js +27 -0
  164. package/lib/v2/cebbank/all.js +5 -2
  165. package/lib/v2/cebbank/history.js +1 -0
  166. package/lib/v2/cebbank/radar.js +6 -6
  167. package/lib/v2/cgtn/maintainer.js +3 -0
  168. package/lib/v2/cgtn/podcast.js +35 -0
  169. package/lib/v2/cgtn/radar.js +13 -0
  170. package/lib/v2/cgtn/router.js +3 -0
  171. package/lib/v2/chiculture/maintainer.js +3 -0
  172. package/lib/v2/chiculture/radar.js +16 -0
  173. package/lib/v2/chiculture/router.js +3 -0
  174. package/lib/{routes → v2}/chiculture/topic.js +7 -5
  175. package/lib/v2/chinathinktanks/radar.js +1 -1
  176. package/lib/v2/chsi/hotnews.js +56 -0
  177. package/lib/v2/chsi/kyzx.js +51 -0
  178. package/lib/v2/chsi/maintainer.js +2 -0
  179. package/lib/v2/chsi/radar.js +12 -0
  180. package/lib/v2/chsi/router.js +2 -0
  181. package/lib/v2/civitai/discussions.js +42 -0
  182. package/lib/v2/civitai/maintainer.js +4 -0
  183. package/lib/v2/civitai/models.js +26 -0
  184. package/lib/v2/civitai/radar.js +19 -0
  185. package/lib/v2/civitai/router.js +4 -0
  186. package/lib/v2/cloudnative/blog.js +34 -0
  187. package/lib/v2/cloudnative/maintainer.js +3 -0
  188. package/lib/v2/cloudnative/radar.js +13 -0
  189. package/lib/v2/cloudnative/router.js +3 -0
  190. package/lib/v2/cls/depth.js +82 -0
  191. package/lib/v2/cls/hot.js +45 -0
  192. package/lib/v2/cls/maintainer.js +5 -0
  193. package/lib/v2/cls/radar.js +25 -0
  194. package/lib/v2/cls/router.js +5 -0
  195. package/lib/{routes → v2}/cls/telegraph.js +21 -3
  196. package/lib/v2/cls/templates/depth.art +10 -0
  197. package/lib/v2/cls/templates/telegraph.art +10 -0
  198. package/lib/v2/cls/utils.js +15 -0
  199. package/lib/v2/cntheory/paper.js +25 -29
  200. package/lib/v2/codeforces/contests.js +13 -5
  201. package/lib/v2/codeforces/templates/contest.art +2 -3
  202. package/lib/v2/coindesk/index.js +5 -7
  203. package/lib/v2/cpuid/maintainer.js +3 -0
  204. package/lib/v2/cqgas/maintainer.js +3 -0
  205. package/lib/v2/cqgas/radar.js +13 -0
  206. package/lib/v2/cqgas/router.js +3 -0
  207. package/lib/v2/cqgas/tqtz.js +36 -0
  208. package/lib/v2/cssn/iolaw.js +38 -0
  209. package/lib/v2/cssn/maintainer.js +3 -0
  210. package/lib/v2/cssn/radar.js +11 -0
  211. package/lib/v2/cssn/router.js +3 -0
  212. package/lib/v2/cste/index.js +56 -0
  213. package/lib/v2/cste/maintainer.js +3 -0
  214. package/lib/v2/cste/radar.js +13 -0
  215. package/lib/v2/cste/router.js +3 -0
  216. package/lib/v2/cuc/radar.js +2 -2
  217. package/lib/v2/cuc/yz.js +16 -20
  218. package/lib/v2/cztv/daily.js +41 -0
  219. package/lib/v2/cztv/maintainer.js +4 -0
  220. package/lib/v2/cztv/radar.js +19 -0
  221. package/lib/v2/cztv/router.js +4 -0
  222. package/lib/v2/cztv/templates/daily.art +4 -0
  223. package/lib/v2/cztv/templates/zjxwlb.art +3 -0
  224. package/lib/v2/cztv/zjxwlb.js +38 -0
  225. package/lib/v2/dahecube/radar.js +3 -2
  226. package/lib/v2/ddosi/radar.js +2 -2
  227. package/lib/v2/discord/channel.js +38 -0
  228. package/lib/v2/discord/discord-api.js +61 -0
  229. package/lib/v2/discord/maintainer.js +3 -0
  230. package/lib/v2/discord/radar.js +13 -0
  231. package/lib/v2/discord/router.js +3 -0
  232. package/lib/v2/discord/templates/message.art +47 -0
  233. package/lib/v2/disinformationindex/maintainer.js +1 -1
  234. package/lib/v2/disinformationindex/radar.js +1 -1
  235. package/lib/v2/dlsite/ci-en/article.js +64 -0
  236. package/lib/v2/dlsite/index.js +5 -0
  237. package/lib/v2/dlsite/maintainer.js +2 -0
  238. package/lib/v2/dlsite/radar.js +14 -0
  239. package/lib/v2/dlsite/router.js +2 -0
  240. package/lib/v2/dlsite/templates/description.art +158 -0
  241. package/lib/v2/dlsite/utils.js +176 -0
  242. package/lib/v2/domp4/detail.js +1 -3
  243. package/lib/v2/domp4/latest.js +3 -2
  244. package/lib/v2/domp4/utils.js +3 -0
  245. package/lib/v2/douban/maintainer.js +1 -0
  246. package/lib/v2/douban/other/list.js +40 -0
  247. package/lib/v2/douban/people/wish.js +3 -24
  248. package/lib/v2/douban/radar.js +6 -0
  249. package/lib/v2/douban/router.js +1 -0
  250. package/lib/v2/douban/templates/list_description.art +25 -0
  251. package/lib/v2/earthquake/radar.js +2 -2
  252. package/lib/v2/eastmoney/maintainer.js +4 -0
  253. package/lib/v2/eastmoney/radar.js +8 -0
  254. package/lib/v2/eastmoney/router.js +1 -0
  255. package/lib/v2/eastmoney/search/index.js +55 -0
  256. package/lib/v2/ecust/e/news.js +44 -0
  257. package/lib/v2/ecust/gschool/yjs.js +27 -0
  258. package/lib/v2/ecust/maintainer.js +4 -0
  259. package/lib/v2/ecust/radar.js +21 -0
  260. package/lib/v2/ecust/router.js +4 -0
  261. package/lib/v2/embassy/radar.js +1 -1
  262. package/lib/v2/epicgames/radar.js +13 -0
  263. package/lib/v2/feng/maintainer.js +3 -0
  264. package/lib/v2/ff14/radar.js +30 -0
  265. package/lib/v2/fishshell/index.js +27 -0
  266. package/lib/v2/fishshell/maintainer.js +3 -0
  267. package/lib/v2/fishshell/radar.js +13 -0
  268. package/lib/v2/flyert/creditcard.js +3 -0
  269. package/lib/v2/flyert/utils.js +14 -8
  270. package/lib/v2/fortnite/maintainer.js +3 -0
  271. package/lib/v2/fortnite/news.js +58 -0
  272. package/lib/v2/fortnite/radar.js +16 -0
  273. package/lib/v2/fortnite/router.js +3 -0
  274. package/lib/v2/freebuf/index.js +41 -0
  275. package/lib/v2/freebuf/maintainer.js +3 -0
  276. package/lib/v2/freebuf/radar.js +13 -0
  277. package/lib/v2/freebuf/router.js +3 -0
  278. package/lib/v2/freecomputerbooks/index.js +94 -0
  279. package/lib/v2/freecomputerbooks/maintainer.js +4 -0
  280. package/lib/v2/freecomputerbooks/radar.js +31 -0
  281. package/lib/v2/freecomputerbooks/router.js +3 -0
  282. package/lib/v2/freecomputerbooks/templates/desc.art +3 -0
  283. package/lib/v2/gameapps/index.js +32 -13
  284. package/lib/v2/gamebase/maintainer.js +3 -0
  285. package/lib/v2/gamebase/news.js +74 -0
  286. package/lib/v2/gamebase/radar.js +13 -0
  287. package/lib/v2/gamebase/router.js +3 -0
  288. package/lib/v2/gcores/maintainer.js +1 -0
  289. package/lib/v2/gcores/radar.js +12 -0
  290. package/lib/v2/gcores/radio.js +90 -0
  291. package/lib/v2/gcores/router.js +1 -0
  292. package/lib/v2/gcores/templates/content.art +16 -0
  293. package/lib/v2/geocaching/blogs.js +30 -0
  294. package/lib/v2/geocaching/maintainer.js +3 -0
  295. package/lib/v2/geocaching/radar.js +13 -0
  296. package/lib/v2/geocaching/router.js +3 -0
  297. package/lib/v2/geocaching/templates/blogs.art +6 -0
  298. package/lib/v2/gitee/radar.js +4 -4
  299. package/lib/v2/github/comments.js +14 -15
  300. package/lib/v2/github/maintainer.js +3 -2
  301. package/lib/v2/github/notifications.js +47 -0
  302. package/lib/v2/github/radar.js +6 -0
  303. package/lib/v2/github/router.js +1 -0
  304. package/lib/v2/github/trending.js +8 -10
  305. package/lib/v2/gov/chongqing/rsks.js +38 -0
  306. package/lib/v2/gov/csrc/auditstatus.js +54 -0
  307. package/lib/v2/gov/csrc/news.js +69 -0
  308. package/lib/v2/gov/csrc/templates/attachment.art +3 -0
  309. package/lib/v2/gov/jinan/healthcommission/medical_exam_notice.js +49 -0
  310. package/lib/v2/gov/maintainer.js +8 -2
  311. package/lib/v2/gov/news/index.js +114 -0
  312. package/lib/v2/gov/radar.js +90 -3
  313. package/lib/v2/gov/router.js +7 -1
  314. package/lib/v2/gov/sichuan/deyang/govpublicinfo.js +92 -0
  315. package/lib/v2/gov/sichuan/deyang/mztoday.js +134 -0
  316. package/lib/v2/gov/sichuan/deyang/templates/govPublicInfo.art +42 -37
  317. package/lib/v2/gov/sichuan/deyang/templates/mztoday.art +6 -0
  318. package/lib/v2/gov/stats/index.js +101 -8
  319. package/lib/v2/gov/stats/templates/description.art +12 -0
  320. package/lib/v2/gq/tw/index.js +1 -1
  321. package/lib/v2/gxmzu/ai.js +18 -0
  322. package/lib/v2/gxmzu/maintainer.js +4 -0
  323. package/lib/v2/gxmzu/radar.js +21 -0
  324. package/lib/v2/gxmzu/router.js +4 -0
  325. package/lib/v2/gxmzu/utils/index.js +55 -0
  326. package/lib/v2/gxmzu/yjs.js +18 -0
  327. package/lib/v2/gz-cmc/index.js +137 -0
  328. package/lib/v2/gz-cmc/maintainer.js +3 -0
  329. package/lib/v2/gz-cmc/radar.js +12 -0
  330. package/lib/v2/gz-cmc/router.js +3 -0
  331. package/lib/v2/gz-cmc/templates/description.art +3 -0
  332. package/lib/v2/gzdaily/app.js +53 -0
  333. package/lib/v2/gzdaily/maintainer.js +3 -0
  334. package/lib/v2/gzdaily/radar.js +12 -0
  335. package/lib/v2/gzdaily/router.js +3 -0
  336. package/lib/v2/gzdaily/templates/description.art +3 -0
  337. package/lib/v2/gzhu/maintainer.js +3 -0
  338. package/lib/v2/gzhu/radar.js +13 -0
  339. package/lib/v2/gzhu/router.js +3 -0
  340. package/lib/v2/gzhu/yjs.js +31 -0
  341. package/lib/v2/hackertalk/radar.js +1 -1
  342. package/lib/v2/hackmd/radar.js +1 -1
  343. package/lib/v2/hk01/channel.js +2 -2
  344. package/lib/v2/hk01/latest.js +20 -0
  345. package/lib/v2/hk01/maintainer.js +1 -0
  346. package/lib/v2/hk01/radar.js +11 -5
  347. package/lib/v2/hk01/router.js +1 -0
  348. package/lib/v2/hkepc/data.js +62 -0
  349. package/lib/v2/hkepc/index.js +55 -164
  350. package/lib/v2/hnu/careers.js +33 -0
  351. package/lib/v2/hnu/maintainer.js +3 -0
  352. package/lib/v2/hnu/radar.js +12 -0
  353. package/lib/v2/hnu/router.js +3 -0
  354. package/lib/v2/hust/aia/news.js +26 -0
  355. package/lib/v2/hust/aia/notice.js +29 -0
  356. package/lib/v2/hust/maintainer.js +7 -0
  357. package/lib/v2/hust/radar.js +27 -0
  358. package/lib/v2/hust/router.js +7 -0
  359. package/lib/v2/hust/yjs.js +27 -0
  360. package/lib/v2/icac/radar.js +2 -2
  361. package/lib/v2/idolypride/maintainer.js +3 -0
  362. package/lib/v2/idolypride/news.js +29 -0
  363. package/lib/v2/idolypride/radar.js +13 -0
  364. package/lib/v2/idolypride/router.js +3 -0
  365. package/lib/v2/ieee/earlyaccess.js +77 -0
  366. package/lib/v2/ieee/maintainer.js +1 -0
  367. package/lib/v2/ieee/radar.js +6 -0
  368. package/lib/v2/ieee/router.js +2 -1
  369. package/lib/v2/ifi-audio/radar.js +11 -0
  370. package/lib/v2/infoq/utils.js +2 -1
  371. package/lib/v2/inoreader/maintainer.js +1 -0
  372. package/lib/v2/inoreader/radar.js +6 -0
  373. package/lib/v2/inoreader/router.js +1 -0
  374. package/lib/v2/inoreader/rss.js +47 -0
  375. package/lib/v2/instagram/common-utils.js +59 -0
  376. package/lib/v2/instagram/maintainer.js +4 -0
  377. package/lib/v2/instagram/private-api/index.js +94 -0
  378. package/lib/v2/instagram/private-api/utils.js +37 -0
  379. package/lib/v2/instagram/radar.js +19 -0
  380. package/lib/v2/instagram/router.js +4 -0
  381. package/lib/v2/instagram/templates/images.art +5 -0
  382. package/lib/v2/instagram/templates/video.art +5 -0
  383. package/lib/v2/instagram/web-api/index.js +70 -0
  384. package/lib/v2/instagram/web-api/utils.js +99 -0
  385. package/lib/v2/instructables/maintainer.js +3 -0
  386. package/lib/v2/instructables/projects.js +56 -0
  387. package/lib/v2/instructables/radar.js +19 -0
  388. package/lib/v2/instructables/router.js +3 -0
  389. package/lib/{routes/3k8 → v2/iqnew}/latest.js +19 -12
  390. package/lib/v2/iqnew/maintainer.js +3 -0
  391. package/lib/v2/iqnew/radar.js +13 -0
  392. package/lib/v2/iqnew/router.js +3 -0
  393. package/lib/v2/iresearch/radar.js +2 -2
  394. package/lib/v2/ithome/radar.js +3 -3
  395. package/lib/v2/iwara/radar.js +3 -3
  396. package/lib/v2/jou/home.js +18 -0
  397. package/lib/v2/jou/maintainer.js +4 -0
  398. package/lib/v2/jou/radar.js +21 -0
  399. package/lib/v2/jou/router.js +6 -0
  400. package/lib/v2/jou/utils/index.js +60 -0
  401. package/lib/v2/jou/yz.js +18 -0
  402. package/lib/v2/kemono/index.js +21 -17
  403. package/lib/v2/kemono/templates/discord.art +22 -0
  404. package/lib/v2/kunchengblog/essay.js +50 -0
  405. package/lib/v2/kunchengblog/maintainer.js +3 -0
  406. package/lib/v2/kunchengblog/radar.js +13 -0
  407. package/lib/v2/kunchengblog/router.js +3 -0
  408. package/lib/v2/layer3/maintainer.js +3 -0
  409. package/lib/v2/layer3/quests.js +37 -0
  410. package/lib/v2/layer3/radar.js +13 -0
  411. package/lib/v2/layer3/router.js +3 -0
  412. package/lib/v2/layer3/templates/description.art +24 -0
  413. package/lib/v2/line/maintainer.js +1 -0
  414. package/lib/v2/line/publisher.js +53 -0
  415. package/lib/v2/line/radar.js +8 -2
  416. package/lib/v2/line/router.js +1 -0
  417. package/lib/v2/line/today.js +5 -41
  418. package/lib/v2/line/utils.js +43 -0
  419. package/lib/v2/logonews/router.js +1 -1
  420. package/lib/v2/macmenubar/maintainer.js +3 -0
  421. package/lib/v2/macmenubar/radar.js +13 -0
  422. package/lib/v2/macmenubar/recently.js +47 -0
  423. package/lib/v2/macmenubar/router.js +3 -0
  424. package/lib/v2/magazinelib/latest-magazine.js +55 -0
  425. package/lib/v2/magazinelib/maintainer.js +3 -0
  426. package/lib/v2/magazinelib/radar.js +19 -0
  427. package/lib/v2/magazinelib/router.js +3 -0
  428. package/lib/v2/magazinelib/templates/magazine-description.art +3 -0
  429. package/lib/v2/mckinsey/maintainer.js +3 -0
  430. package/lib/v2/mihoyo/templates/ys.art +4 -0
  431. package/lib/v2/mihoyo/ys/news.js +132 -52
  432. package/lib/v2/modelscope/community.js +55 -0
  433. package/lib/v2/modelscope/datasets.js +55 -0
  434. package/lib/v2/modelscope/maintainer.js +6 -0
  435. package/lib/v2/modelscope/models.js +45 -0
  436. package/lib/v2/modelscope/radar.js +33 -0
  437. package/lib/v2/modelscope/router.js +6 -0
  438. package/lib/v2/modelscope/studios.js +57 -0
  439. package/lib/v2/modelscope/templates/community.art +11 -0
  440. package/lib/v2/modelscope/templates/desc.art +9 -0
  441. package/lib/v2/mrdx/radar.js +1 -1
  442. package/lib/v2/natgeo/radar.js +1 -1
  443. package/lib/v2/nature/radar.js +1 -1
  444. package/lib/v2/nber/index.js +48 -0
  445. package/lib/v2/nber/maintainer.js +4 -0
  446. package/lib/v2/nber/radar.js +19 -0
  447. package/lib/v2/nber/router.js +4 -0
  448. package/lib/v2/nber/template/description.art +6 -0
  449. package/lib/v2/ncepu/radar.js +1 -1
  450. package/lib/{routes → v2}/newrank/douyin.js +4 -1
  451. package/lib/v2/newrank/maintainer.js +4 -0
  452. package/lib/v2/newrank/radar.js +15 -0
  453. package/lib/v2/newrank/router.js +4 -0
  454. package/lib/v2/newrank/wechat.js +65 -0
  455. package/lib/v2/newzmz/index.js +90 -0
  456. package/lib/v2/newzmz/maintainer.js +4 -0
  457. package/lib/v2/newzmz/radar.js +19 -0
  458. package/lib/v2/newzmz/router.js +5 -0
  459. package/lib/v2/newzmz/templates/description.art +7 -0
  460. package/lib/v2/newzmz/view.js +57 -0
  461. package/lib/v2/nhentai/maintainer.js +4 -0
  462. package/lib/v2/nhentai/other.js +30 -0
  463. package/lib/v2/nhentai/radar.js +19 -0
  464. package/lib/v2/nhentai/router.js +4 -0
  465. package/lib/v2/nhentai/search.js +23 -0
  466. package/lib/v2/nhentai/templates/desc.art +4 -0
  467. package/lib/v2/nhentai/util.js +146 -0
  468. package/lib/v2/nhk/maintainer.js +4 -0
  469. package/lib/v2/{nikkei-asia → nikkei/asia}/index.js +16 -3
  470. package/lib/v2/nikkei/cn/index.js +91 -0
  471. package/lib/v2/nikkei/index.js +36 -0
  472. package/lib/v2/nikkei/maintainer.js +6 -0
  473. package/lib/v2/nikkei/news.js +90 -0
  474. package/lib/v2/nikkei/radar.js +59 -0
  475. package/lib/v2/nikkei/router.js +7 -0
  476. package/lib/v2/nikkei/templates/news.art +4 -0
  477. package/lib/v2/njglyy/maintainer.js +3 -0
  478. package/lib/v2/njglyy/radar.js +13 -0
  479. package/lib/v2/njglyy/router.js +3 -0
  480. package/lib/v2/njglyy/utils/index.js +50 -0
  481. package/lib/v2/njglyy/ygbjypx.js +18 -0
  482. package/lib/v2/njucm/grabs.js +18 -0
  483. package/lib/v2/njucm/maintainer.js +3 -0
  484. package/lib/v2/njucm/radar.js +13 -0
  485. package/lib/v2/njucm/router.js +3 -0
  486. package/lib/v2/njucm/utils/index.js +47 -0
  487. package/lib/v2/njxzc/home.js +13 -53
  488. package/lib/v2/njxzc/lib.js +26 -0
  489. package/lib/v2/njxzc/maintainer.js +1 -0
  490. package/lib/v2/njxzc/radar.js +9 -1
  491. package/lib/v2/njxzc/router.js +3 -1
  492. package/lib/v2/njxzc/utils/index.js +48 -0
  493. package/lib/v2/oeeee/app/channel.js +36 -0
  494. package/lib/v2/oeeee/app/reporter.js +30 -0
  495. package/lib/v2/oeeee/maintainer.js +5 -0
  496. package/lib/v2/oeeee/radar.js +12 -0
  497. package/lib/v2/oeeee/router.js +5 -0
  498. package/lib/v2/oeeee/templates/description.art +7 -0
  499. package/lib/v2/oeeee/utils.js +41 -0
  500. package/lib/v2/oeeee/web.js +36 -0
  501. package/lib/v2/openai/blog.js +97 -0
  502. package/lib/v2/openai/chatgpt.js +98 -0
  503. package/lib/v2/openai/maintainer.js +3 -0
  504. package/lib/v2/openai/radar.js +27 -0
  505. package/lib/v2/openai/router.js +4 -0
  506. package/lib/v2/openai/templates/article.art +2 -0
  507. package/lib/v2/oshwhub/explore.js +116 -0
  508. package/lib/v2/oshwhub/maintainer.js +3 -0
  509. package/lib/v2/oshwhub/radar.js +16 -0
  510. package/lib/v2/oshwhub/router.js +3 -0
  511. package/lib/v2/oshwhub/templates/description.art +58 -0
  512. package/lib/v2/ouc/it-postgraduate.js +27 -0
  513. package/lib/v2/ouc/it.js +43 -0
  514. package/lib/v2/ouc/maintainer.js +5 -0
  515. package/lib/v2/ouc/radar.js +27 -0
  516. package/lib/v2/ouc/router.js +5 -0
  517. package/lib/v2/ouc/yjs.js +27 -0
  518. package/lib/v2/patagonia/maintainer.js +3 -0
  519. package/lib/v2/patagonia/new-arrivals.js +61 -0
  520. package/lib/v2/patagonia/radar.js +23 -0
  521. package/lib/v2/patagonia/router.js +3 -0
  522. package/lib/v2/patagonia/templates/product-description.art +4 -0
  523. package/lib/v2/people/router.js +1 -1
  524. package/lib/v2/picnob/maintainer.js +3 -0
  525. package/lib/v2/picnob/radar.js +13 -0
  526. package/lib/v2/picnob/router.js +3 -0
  527. package/lib/v2/picnob/templates/desc.art +13 -0
  528. package/lib/v2/picnob/user.js +61 -0
  529. package/lib/v2/pingwest/maintainer.js +5 -0
  530. package/lib/v2/pingwest/radar.js +25 -0
  531. package/lib/v2/pingwest/router.js +5 -0
  532. package/lib/{routes → v2}/pingwest/status.js +12 -5
  533. package/lib/{routes → v2}/pingwest/tag.js +13 -20
  534. package/lib/{routes → v2}/pingwest/user.js +8 -4
  535. package/lib/v2/pingwest/utils.js +92 -0
  536. package/lib/v2/pixabay/maintainer.js +3 -0
  537. package/lib/v2/pixabay/radar.js +13 -0
  538. package/lib/v2/pixabay/router.js +3 -0
  539. package/lib/v2/pixabay/search.js +50 -0
  540. package/lib/v2/pixabay/templates/img.art +1 -0
  541. package/lib/v2/pnas/index.js +101 -0
  542. package/lib/v2/pnas/maintainer.js +3 -0
  543. package/lib/v2/pnas/radar.js +13 -0
  544. package/lib/v2/pnas/router.js +3 -0
  545. package/lib/v2/pnas/templates/article.art +8 -0
  546. package/lib/v2/pumc/maintainer.js +3 -0
  547. package/lib/v2/pumc/mdadmission.js +62 -0
  548. package/lib/v2/pumc/radar.js +13 -0
  549. package/lib/v2/pumc/router.js +3 -0
  550. package/lib/v2/qdaily/index.js +87 -0
  551. package/lib/v2/qdaily/maintainer.js +3 -0
  552. package/lib/v2/qdaily/radar.js +25 -0
  553. package/lib/v2/qdaily/router.js +3 -0
  554. package/lib/v2/qdaily/templates/article.art +5 -0
  555. package/lib/v2/qdu/jwc.js +58 -0
  556. package/lib/v2/qdu/maintainer.js +3 -0
  557. package/lib/v2/qdu/radar.js +13 -0
  558. package/lib/v2/qdu/router.js +3 -0
  559. package/lib/v2/qianp/maintainer.js +3 -0
  560. package/lib/v2/qianp/news.js +48 -0
  561. package/lib/v2/qianp/radar.js +13 -0
  562. package/lib/v2/qianp/router.js +3 -0
  563. package/lib/v2/qweather/3days.js +1 -1
  564. package/lib/v2/qweather/maintainer.js +2 -2
  565. package/lib/v2/qweather/now.js +1 -1
  566. package/lib/v2/qweather/radar.js +15 -0
  567. package/lib/v2/readhub/index.js +4 -4
  568. package/lib/v2/readhub/maintainer.js +1 -1
  569. package/lib/v2/rsshub/radar.js +2 -2
  570. package/lib/v2/sass/gs/index.js +55 -0
  571. package/lib/v2/sass/maintainer.js +3 -0
  572. package/lib/v2/sass/radar.js +13 -0
  573. package/lib/v2/sass/router.js +3 -0
  574. package/lib/v2/scau/maintainer.js +3 -0
  575. package/lib/v2/scau/radar.js +13 -0
  576. package/lib/v2/scau/router.js +3 -0
  577. package/lib/v2/scau/yjs.js +27 -0
  578. package/lib/v2/scnu/cs/match.js +36 -0
  579. package/lib/v2/scnu/jw.js +33 -0
  580. package/lib/v2/scnu/library.js +33 -0
  581. package/lib/v2/scnu/maintainer.js +10 -0
  582. package/lib/v2/scnu/physics_school_announcements_and_news.js +94 -0
  583. package/lib/v2/scnu/radar.js +65 -0
  584. package/lib/v2/scnu/router.js +10 -0
  585. package/lib/v2/scnu/ss.js +28 -0
  586. package/lib/{routes/universities/scnu/scnuyjs.js → v2/scnu/yjs.js} +9 -8
  587. package/lib/v2/scut/maintainer.js +8 -0
  588. package/lib/v2/scut/radar.js +33 -0
  589. package/lib/v2/scut/router.js +8 -0
  590. package/lib/v2/scut/scet/notice.js +31 -0
  591. package/lib/{routes/universities → v2}/scut/seie/news_center.js +12 -17
  592. package/lib/v2/scut/yjs.js +30 -0
  593. package/lib/v2/sdust/maintainer.js +3 -0
  594. package/lib/v2/sdust/radar.js +13 -0
  595. package/lib/v2/sdust/router.js +3 -0
  596. package/lib/v2/sdust/yjsy/zhaosheng.js +52 -0
  597. package/lib/v2/segmentfault/channel.js +2 -2
  598. package/lib/v2/sehuatang/index.js +131 -0
  599. package/lib/v2/{dsndsht23 → sehuatang}/radar.js +2 -2
  600. package/lib/v2/setn/index.js +100 -0
  601. package/lib/v2/setn/maintainer.js +3 -0
  602. package/lib/v2/setn/radar.js +53 -0
  603. package/lib/v2/setn/router.js +3 -0
  604. package/lib/v2/slowmist/maintainer.js +3 -0
  605. package/lib/v2/snowpeak/maintainer.js +3 -0
  606. package/lib/v2/snowpeak/radar.js +13 -0
  607. package/lib/v2/snowpeak/router.js +3 -0
  608. package/lib/v2/snowpeak/templates/new-arrivals.art +11 -0
  609. package/lib/v2/snowpeak/us-new-arrivals.js +45 -0
  610. package/lib/v2/sony/downloads.js +48 -0
  611. package/lib/v2/sony/maintainer.js +3 -0
  612. package/lib/v2/sony/radar.js +13 -0
  613. package/lib/v2/sony/router.js +3 -0
  614. package/lib/v2/sony/templates/software-description.art +4 -0
  615. package/lib/v2/southcn/maintainer.js +4 -0
  616. package/lib/v2/southcn/nfapp/column.js +45 -0
  617. package/lib/v2/southcn/nfapp/reporter.js +33 -0
  618. package/lib/v2/southcn/nfapp/utils.js +23 -0
  619. package/lib/v2/southcn/radar.js +12 -0
  620. package/lib/v2/southcn/router.js +4 -0
  621. package/lib/v2/southcn/templates/description.art +6 -0
  622. package/lib/v2/sspai/radar.js +1 -1
  623. package/lib/v2/stdaily/digitalpaper.js +125 -0
  624. package/lib/v2/stdaily/maintainer.js +3 -0
  625. package/lib/v2/stdaily/radar.js +11 -0
  626. package/lib/v2/stdaily/router.js +3 -0
  627. package/lib/v2/stdaily/templates/description.art +16 -0
  628. package/lib/v2/studygolang/go.js +5 -0
  629. package/lib/v2/studygolang/jobs.js +3 -33
  630. package/lib/v2/studygolang/maintainer.js +3 -1
  631. package/lib/v2/studygolang/radar.js +14 -2
  632. package/lib/v2/studygolang/router.js +2 -0
  633. package/lib/v2/studygolang/utils.js +74 -0
  634. package/lib/v2/studygolang/weekly.js +7 -0
  635. package/lib/v2/sustech/bidding.js +34 -0
  636. package/lib/v2/sustech/maintainer.js +5 -0
  637. package/lib/v2/sustech/newshub-zh.js +39 -0
  638. package/lib/v2/sustech/radar.js +29 -0
  639. package/lib/v2/sustech/router.js +5 -0
  640. package/lib/v2/sustech/yjs.js +29 -0
  641. package/lib/v2/swjtu/jwc.js +67 -0
  642. package/lib/v2/swjtu/jyzpxx.js +2 -1
  643. package/lib/v2/swjtu/maintainer.js +2 -0
  644. package/lib/v2/swjtu/radar.js +16 -0
  645. package/lib/v2/swjtu/router.js +2 -0
  646. package/lib/v2/swjtu/xg.js +79 -0
  647. package/lib/v2/szu/maintainer.js +3 -0
  648. package/lib/v2/szu/radar.js +19 -0
  649. package/lib/v2/szu/router.js +3 -0
  650. package/lib/{routes/universities → v2}/szu/yz/index.js +4 -4
  651. package/lib/{routes/universities → v2}/szu/yz/utils.js +24 -28
  652. package/lib/v2/taiwannews/radar.js +1 -1
  653. package/lib/v2/techcrunch/maintainer.js +3 -0
  654. package/lib/v2/techcrunch/news.js +38 -0
  655. package/lib/v2/techcrunch/radar.js +13 -0
  656. package/lib/v2/techcrunch/router.js +3 -0
  657. package/lib/v2/telecompaper/maintainer.js +4 -0
  658. package/lib/{routes → v2}/telecompaper/news.js +1 -0
  659. package/lib/v2/telecompaper/radar.js +15 -0
  660. package/lib/v2/telecompaper/router.js +4 -0
  661. package/lib/v2/tencent/maintainer.js +1 -0
  662. package/lib/v2/tencent/news/author.js +44 -0
  663. package/lib/v2/tencent/radar.js +8 -2
  664. package/lib/v2/tencent/router.js +1 -0
  665. package/lib/v2/theatlantic/maintainer.js +3 -0
  666. package/lib/v2/theatlantic/news.js +32 -0
  667. package/lib/v2/theatlantic/radar.js +13 -0
  668. package/lib/v2/theatlantic/router.js +3 -0
  669. package/lib/v2/theatlantic/templates/article-description.art +19 -0
  670. package/lib/v2/theatlantic/utils.js +54 -0
  671. package/lib/v2/themoviedb/api-key.js +23 -0
  672. package/lib/v2/themoviedb/collection.js +21 -0
  673. package/lib/v2/themoviedb/episodes.js +27 -0
  674. package/lib/v2/themoviedb/maintainer.js +7 -0
  675. package/lib/v2/themoviedb/radar.js +73 -0
  676. package/lib/v2/themoviedb/router.js +7 -0
  677. package/lib/v2/themoviedb/seasons.js +31 -0
  678. package/lib/v2/themoviedb/sheet.js +45 -0
  679. package/lib/v2/themoviedb/templates/description.art +6 -0
  680. package/lib/v2/themoviedb/trending.js +24 -0
  681. package/lib/v2/themoviedb/utils.js +34 -0
  682. package/lib/v2/tingshuitz/xiaoshan.js +3 -3
  683. package/lib/v2/tongji/maintainer.js +4 -0
  684. package/lib/v2/tongji/radar.js +21 -0
  685. package/lib/v2/tongji/router.js +4 -0
  686. package/lib/v2/tongji/sse/_article.js +25 -0
  687. package/lib/v2/tongji/sse/notice.js +46 -0
  688. package/lib/v2/tongji/yjs.js +27 -0
  689. package/lib/v2/twitter/utils.js +18 -37
  690. package/lib/v2/ucas/ai.js +28 -0
  691. package/lib/v2/ucas/maintainer.js +1 -0
  692. package/lib/v2/ucas/radar.js +41 -0
  693. package/lib/v2/ucas/router.js +1 -0
  694. package/lib/v2/uchicago/current.js +80 -0
  695. package/lib/v2/uchicago/maintainer.js +3 -0
  696. package/lib/v2/uchicago/radar.js +13 -0
  697. package/lib/v2/uchicago/router.js +3 -0
  698. package/lib/v2/uestc/auto.js +45 -0
  699. package/lib/v2/uestc/cqe.js +60 -0
  700. package/lib/{routes/universities → v2}/uestc/gr.js +14 -12
  701. package/lib/v2/uestc/jwc.js +52 -0
  702. package/lib/v2/uestc/maintainer.js +12 -0
  703. package/lib/v2/uestc/news.js +51 -0
  704. package/lib/v2/uestc/radar.js +69 -0
  705. package/lib/v2/uestc/router.js +12 -0
  706. package/lib/v2/uestc/scse.js +90 -0
  707. package/lib/{routes/universities → v2}/uestc/sice.js +8 -5
  708. package/lib/v2/uestc/sise.js +80 -0
  709. package/lib/v2/upc/jsj.js +77 -0
  710. package/lib/v2/upc/main.js +72 -0
  711. package/lib/v2/upc/maintainer.js +5 -0
  712. package/lib/v2/upc/radar.js +53 -0
  713. package/lib/v2/upc/router.js +5 -0
  714. package/lib/v2/upc/yjs.js +28 -0
  715. package/lib/v2/uraaka-joshi/radar.js +2 -2
  716. package/lib/v2/urbandictionary/maintainer.js +3 -0
  717. package/lib/v2/urbandictionary/radar.js +13 -0
  718. package/lib/v2/urbandictionary/random.js +24 -0
  719. package/lib/v2/urbandictionary/router.js +3 -0
  720. package/lib/v2/urbandictionary/templates/definition.art +11 -0
  721. package/lib/v2/ustb/maintainer.js +3 -22
  722. package/lib/v2/ustb/radar.js +16 -0
  723. package/lib/v2/ustb/router.js +2 -0
  724. package/lib/{routes/universities → v2}/ustb/tj/news.js +11 -12
  725. package/lib/v2/ustb/yzxc/tzgg.js +49 -0
  726. package/lib/v2/v1tx/index.js +55 -0
  727. package/lib/v2/v1tx/maintainer.js +4 -0
  728. package/lib/v2/v1tx/radar.js +13 -0
  729. package/lib/v2/v1tx/router.js +3 -0
  730. package/lib/v2/vcb-s/category.js +51 -0
  731. package/lib/v2/vcb-s/index.js +39 -0
  732. package/lib/v2/vcb-s/maintainer.js +4 -0
  733. package/lib/v2/vcb-s/radar.js +19 -0
  734. package/lib/v2/vcb-s/router.js +4 -0
  735. package/lib/v2/vcb-s/templates/post.art +9 -0
  736. package/lib/v2/vimeo/maintainer.js +5 -0
  737. package/lib/v2/wanqu/maintainer.js +3 -0
  738. package/lib/v2/wanqu/news.js +27 -0
  739. package/lib/v2/wanqu/radar.js +13 -0
  740. package/lib/v2/wechat/maintainer.js +1 -0
  741. package/lib/v2/wechat/radar.js +17 -0
  742. package/lib/v2/wechat/router.js +1 -0
  743. package/lib/v2/wechat/sogou.js +58 -0
  744. package/lib/v2/wechat/tgchannel.js +5 -5
  745. package/lib/v2/weekendhk/maintainer.js +4 -0
  746. package/lib/v2/weekendhk/posts.js +29 -0
  747. package/lib/v2/weekendhk/radar.js +13 -0
  748. package/lib/v2/weekendhk/router.js +3 -0
  749. package/lib/v2/wfdf/maintainer.js +3 -0
  750. package/lib/v2/wfdf/news.js +29 -0
  751. package/lib/v2/wfdf/radar.js +13 -0
  752. package/lib/v2/wfdf/router.js +3 -0
  753. package/lib/v2/wise/radar.js +1 -1
  754. package/lib/v2/wsj/news.js +51 -0
  755. package/lib/v2/wsj/radar.js +2 -2
  756. package/lib/v2/wsj/router.js +1 -1
  757. package/lib/v2/wsj/templates/article-description.art +6 -0
  758. package/lib/v2/wsj/utils.js +121 -0
  759. package/lib/v2/wxkol/maintainer.js +3 -0
  760. package/lib/v2/wxkol/radar.js +13 -0
  761. package/lib/v2/wxkol/router.js +3 -0
  762. package/lib/v2/wxkol/show.js +80 -0
  763. package/lib/v2/xiaohongshu/board.js +4 -2
  764. package/lib/v2/xiaohongshu/maintainer.js +2 -1
  765. package/lib/v2/xiaohongshu/radar.js +2 -2
  766. package/lib/v2/xiaohongshu/user.js +20 -41
  767. package/lib/v2/xiaohongshu/util.js +47 -7
  768. package/lib/v2/xkb/index.js +54 -0
  769. package/lib/v2/xkb/maintainer.js +3 -0
  770. package/lib/v2/xkb/radar.js +13 -0
  771. package/lib/v2/xkb/router.js +3 -0
  772. package/lib/v2/xkb/templates/description.art +3 -0
  773. package/lib/v2/xmanhua/maintainer.js +3 -0
  774. package/lib/v2/xsijishe/forum.js +61 -0
  775. package/lib/v2/xsijishe/maintainer.js +3 -0
  776. package/lib/v2/xsijishe/radar.js +19 -0
  777. package/lib/v2/xsijishe/router.js +3 -0
  778. package/lib/v2/xueqiu/user.js +35 -14
  779. package/lib/v2/xyzrank/radar.js +7 -7
  780. package/lib/v2/ycwb/index.js +82 -0
  781. package/lib/v2/ycwb/maintainer.js +3 -0
  782. package/lib/v2/ycwb/radar.js +12 -0
  783. package/lib/v2/ycwb/router.js +3 -0
  784. package/lib/v2/ycwb/templates/description.art +7 -0
  785. package/lib/v2/youtube/channel.js +3 -4
  786. package/lib/v2/youtube/charts.js +97 -0
  787. package/lib/v2/youtube/community.js +56 -0
  788. package/lib/v2/youtube/maintainer.js +3 -0
  789. package/lib/v2/youtube/radar.js +14 -0
  790. package/lib/v2/youtube/router.js +2 -0
  791. package/lib/v2/youtube/templates/community.art +17 -0
  792. package/lib/v2/youtube/user.js +1 -1
  793. package/lib/v2/youtube/utils.js +2 -0
  794. package/lib/v2/yuque/book.js +14 -0
  795. package/lib/v2/yuque/utils.js +4 -0
  796. package/lib/v2/zagg/maintainer.js +3 -0
  797. package/lib/v2/zagg/new-arrivals.js +52 -0
  798. package/lib/v2/zagg/radar.js +16 -0
  799. package/lib/v2/zagg/router.js +3 -0
  800. package/lib/v2/zagg/templates/new-arrivals.art +3 -0
  801. package/lib/v2/zcool/radar.js +6 -6
  802. package/lib/v2/zhihu/answers.js +13 -9
  803. package/lib/v2/zhihu/radar.js +2 -2
  804. package/lib/v2/zjol/maintainer.js +3 -0
  805. package/lib/v2/zjol/paper.js +88 -0
  806. package/lib/v2/zjol/radar.js +61 -0
  807. package/lib/v2/zjol/router.js +3 -0
  808. package/lib/v2/zju/radar.js +1 -1
  809. package/lib/v2/zuvio/maintainer.js +4 -0
  810. package/lib/v2/zuzhirenshi/index.js +87 -0
  811. package/lib/v2/zuzhirenshi/maintainer.js +3 -0
  812. package/lib/v2/zuzhirenshi/radar.js +13 -0
  813. package/lib/v2/zuzhirenshi/router.js +3 -0
  814. package/package.json +116 -125
  815. package/lib/routes/1point3acres/blog.js +0 -52
  816. package/lib/routes/1point3acres/offer.js +0 -211
  817. package/lib/routes/1point3acres/post.js +0 -50
  818. package/lib/routes/apkpure/versions.js +0 -23
  819. package/lib/routes/cls/depth.js +0 -63
  820. package/lib/routes/csrc/auditstatus.js +0 -61
  821. package/lib/routes/csrc/fashenwei.js +0 -42
  822. package/lib/routes/csrc/news.js +0 -45
  823. package/lib/routes/go-weekly/index.js +0 -29
  824. package/lib/routes/gov/news/index.js +0 -115
  825. package/lib/routes/instagram/index.js +0 -131
  826. package/lib/routes/instagram/utils.js +0 -28
  827. package/lib/routes/newrank/wechat.js +0 -37
  828. package/lib/routes/newzmz/index.js +0 -78
  829. package/lib/routes/newzmz/view.js +0 -42
  830. package/lib/routes/nhentai/other.js +0 -25
  831. package/lib/routes/nhentai/search.js +0 -16
  832. package/lib/routes/nhentai/util.js +0 -136
  833. package/lib/routes/nikkei/index.js +0 -34
  834. package/lib/routes/nikkei/news.js +0 -155
  835. package/lib/routes/pingwest/utils.js +0 -76
  836. package/lib/routes/pnas/index.js +0 -66
  837. package/lib/routes/qdaily/index.js +0 -88
  838. package/lib/routes/rss3/blog.js +0 -46
  839. package/lib/routes/tencent/news/author.js +0 -59
  840. package/lib/routes/universities/bit/bityjs.js +0 -23
  841. package/lib/routes/universities/bit/cs/utils.js +0 -73
  842. package/lib/routes/universities/bit/jwc/utils.js +0 -65
  843. package/lib/routes/universities/cauele/cauele.js +0 -24
  844. package/lib/routes/universities/cauyjs/cauyjs.js +0 -24
  845. package/lib/routes/universities/ccnu/career.js +0 -43
  846. package/lib/routes/universities/ccnu/ccnucs.js +0 -23
  847. package/lib/routes/universities/ccnu/ccnuwu.js +0 -23
  848. package/lib/routes/universities/ccnu/ccnuyjs.js +0 -23
  849. package/lib/routes/universities/cucyjs/cucyjs.js +0 -23
  850. package/lib/routes/universities/ecustyjs/ecustyjs.js +0 -23
  851. package/lib/routes/universities/gzyjs/gzyjs.js +0 -24
  852. package/lib/routes/universities/hust/aia/news.js +0 -32
  853. package/lib/routes/universities/hust/aia/notice.js +0 -35
  854. package/lib/routes/universities/hustyjs/hustyjs.js +0 -23
  855. package/lib/routes/universities/ouc/it.js +0 -52
  856. package/lib/routes/universities/outele/outele.js +0 -23
  857. package/lib/routes/universities/outyjs/outyjs.js +0 -23
  858. package/lib/routes/universities/scauyjs/scauyjs.js +0 -23
  859. package/lib/routes/universities/scnu/cs/match.js +0 -35
  860. package/lib/routes/universities/scnu/jw.js +0 -32
  861. package/lib/routes/universities/scnu/library.js +0 -32
  862. package/lib/routes/universities/scnu/scnucs.js +0 -23
  863. package/lib/routes/universities/scut/scet/notice.js +0 -32
  864. package/lib/routes/universities/scut/scutyjs.js +0 -28
  865. package/lib/routes/universities/sustech/bidding.js +0 -34
  866. package/lib/routes/universities/sustech/newshub-zh.js +0 -35
  867. package/lib/routes/universities/sustyjs/sustyjs.js +0 -24
  868. package/lib/routes/universities/szuyjs/szuyjs.js +0 -24
  869. package/lib/routes/universities/tju/sse/_article.js +0 -34
  870. package/lib/routes/universities/tju/sse/notice.js +0 -41
  871. package/lib/routes/universities/tjuyjs/tjuyjs.js +0 -23
  872. package/lib/routes/universities/uestc/auto.js +0 -113
  873. package/lib/routes/universities/uestc/cqe.js +0 -40
  874. package/lib/routes/universities/uestc/cs.js +0 -119
  875. package/lib/routes/universities/uestc/is.js +0 -102
  876. package/lib/routes/universities/uestc/jwc.js +0 -38
  877. package/lib/routes/universities/uestc/news.js +0 -33
  878. package/lib/routes/universities/upc/jsj.js +0 -81
  879. package/lib/routes/universities/upc/main.js +0 -72
  880. package/lib/routes/universities/upcyjs/upcyjs.js +0 -23
  881. package/lib/routes/universities/zkyai/zkyai.js +0 -23
  882. package/lib/utils/torrent.js +0 -163
  883. package/lib/v2/ccfcv/maintainer.js +0 -3
  884. package/lib/v2/ccfcv/radar.js +0 -25
  885. package/lib/v2/ccfcv/router.js +0 -3
  886. package/lib/v2/dsndsht23/index.js +0 -121
  887. package/lib/v2/ecust-jxjy/maintainer.js +0 -3
  888. package/lib/v2/ecust-jxjy/news.js +0 -47
  889. package/lib/v2/ecust-jxjy/radar.js +0 -13
  890. package/lib/v2/gov/sichuan/deyang/govpulicinfo.js +0 -95
  891. package/lib/v2/gov/stats/templates/attachments.art +0 -5
  892. package/lib/v2/gov/stats/utils.js +0 -73
  893. package/lib/v2/hkepc/templates/image.art +0 -1
  894. package/lib/v2/nikkei-asia/maintainer.js +0 -3
  895. package/lib/v2/nikkei-asia/radar.js +0 -13
  896. package/lib/v2/nikkei-cn/index.js +0 -89
  897. package/lib/v2/nikkei-cn/maintainer.js +0 -3
  898. package/lib/v2/nikkei-cn/radar.js +0 -21
  899. package/lib/v2/nikkei-cn/router.js +0 -3
  900. package/lib/v2/wsj/index.js +0 -141
  901. /package/lib/{routes/1point3acres/posts.js → v2/1point3acres/user/post.js} +0 -0
  902. /package/lib/{routes/1point3acres/threads.js → v2/1point3acres/user/thread.js} +0 -0
  903. /package/lib/v2/{hkepc → caai}/templates/description.art +0 -0
  904. /package/lib/v2/{ccfcv/templates → ccf/templates/ccfcv}/description.art +0 -0
  905. /package/lib/v2/{nikkei-asia → fishshell}/router.js +0 -0
  906. /package/lib/{routes → v2}/newrank/utils.js +0 -0
  907. /package/lib/v2/qweather/{util → templates}/3days.art +0 -0
  908. /package/lib/v2/qweather/{util → templates}/now.art +0 -0
  909. /package/lib/{routes/universities → v2}/scut/jwc/news.js +0 -0
  910. /package/lib/{routes/universities → v2}/scut/jwc/notice.js +0 -0
  911. /package/lib/{routes/universities → v2}/scut/jwc/school.js +0 -0
  912. /package/lib/v2/{dsndsht23 → sehuatang}/maintainer.js +0 -0
  913. /package/lib/v2/{dsndsht23 → sehuatang}/router.js +0 -0
  914. /package/lib/{routes → v2}/telecompaper/search.js +0 -0
  915. /package/lib/v2/{ecust-jxjy → wanqu}/router.js +0 -0
package/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  <p align="center">
2
- <img src="https://i.loli.net/2019/04/23/5cbeb7e41414c.png" alt="RSSHub" width="100">
2
+ <img src="https://docs.rsshub.app/logo.png" alt="RSSHub" width="100">
3
3
  </p>
4
4
  <h1 align="center">RSSHub</h1>
5
5
 
@@ -10,7 +10,8 @@
10
10
  [![docker publish](https://img.shields.io/github/actions/workflow/status/DIYgod/RSSHub/docker-release.yml?branch=master&label=docker%20publish&logo=docker&style=flat-square)](https://hub.docker.com/r/diygod/rsshub)
11
11
  [![test](https://img.shields.io/github/actions/workflow/status/DIYgod/RSSHub/test.yml?branch=master&label=test&logo=github&style=flat-square)](https://github.com/DIYgod/RSSHub/actions/workflows/test.yml?query=event%3Apush+branch%3Amaster)
12
12
  [![Test coverage](https://img.shields.io/codecov/c/github/DIYgod/RSSHub.svg?style=flat-square&logo=codecov)](https://app.codecov.io/gh/DIYgod/RSSHub/branch/master)
13
- [![Foresight Docs](https://api-public.service.runforesight.com/api/v1/badge/success?repoId=5da20e56-cecf-4b05-9bcd-cab097fb2dca)](https://docs.runforesight.com/)
13
+ [![CodeFactor](https://www.codefactor.io/repository/github/diygod/rsshub/badge)](https://www.codefactor.io/repository/github/diygod/rsshub)
14
+ [![DeepScan grade](https://deepscan.io/api/teams/6244/projects/8135/branches/92448/badge/grade.svg)](https://deepscan.io/dashboard#view=project&tid=6244&pid=8135&bid=92448)
14
15
 
15
16
  ## Introduction
16
17
 
@@ -32,26 +33,6 @@ RSSHub 是一个开源、简单易用、易于扩展的 RSS 生成器,可以
32
33
 
33
34
  ## Special Thanks
34
35
 
35
- ### Special Sponsors
36
-
37
- <p>
38
- <a href="https://rss3.io/" target="_blank"><img height="60px" src="https://i.imgur.com/vHtI4bz.png"></a>
39
- </p>
40
-
41
- <table width="100%">
42
- <tr>
43
- <td><img width="1000" height="0"><a href="https://www.runforesight.com/?utm_source=RSSHub&utm_medium=sponsorship"><img src="https://www.thundra.io/hubfs/RunForesight/GitHub%20Sponsorship%20banners/github-actions-observability.png"
44
- alt="Foresight" width="260" align="right"></a><h3>Foresight: Increase CI/CD Health & Test Performance</h3><p>
45
- Foresight provides full visibility and deep insights into the health and performance of your tests and CI pipelines. Assess the risk of code changes, deal with flaky tests, see workflow and test trends over time, and improve the contributing experience with Foresight.</p>
46
-
47
- [Sign up now!](https://runforesight.com/?utm_source=RSSHub&utm_medium=sponsorship)
48
-
49
- </td>
50
- </tr>
51
- </table>
52
-
53
- [![](https://opencollective.com/static/images/become_sponsor.svg)](https://docs.rsshub.app/en/support/)
54
-
55
36
  ### Contributors
56
37
 
57
38
  [![](https://opencollective.com/RSSHub/contributors.svg?width=890)](https://github.com/DIYgod/RSSHub/graphs/contributors)
@@ -98,6 +79,7 @@ You can support RSSHub via donations.
98
79
  Recurring donors will be rewarded via express issue response, or even have your name displayed on our GitHub page and website.
99
80
 
100
81
  - Become a Sponser on [GitHub](https://github.com/sponsors/DIYgod)
82
+ - Become a Sponser on [Open Collective](https://opencollective.com/RSSHub)
101
83
  - Become a Sponser on [Patreon](https://www.patreon.com/DIYgod)
102
84
  - Become a Sponser on [爱发电](https://afdian.net/@diygod)
103
85
  - Contact us directly: i@diygod.me
@@ -106,8 +88,8 @@ Recurring donors will be rewarded via express issue response, or even have your
106
88
 
107
89
  We accept donations via the following ways:
108
90
 
109
- - [WeChat Pay](https://diygod.me/images/wx.jpg)
110
- - [Alipay](https://diygod.me/images/zfb.jpg)
91
+ - [WeChat Pay](https://archive.diygod.me/images/wx.jpg)
92
+ - [Alipay](https://archive.diygod.me/images/zfb.jpg)
111
93
  - [Paypal](https://www.paypal.me/DIYgod)
112
94
 
113
95
  ## Author
package/lib/api_router.js CHANGED
@@ -1,11 +1,11 @@
1
1
  const Router = require('@koa/router');
2
2
  const router = new Router();
3
- const maintainer = require('./maintainer');
4
3
 
5
4
  router.get('/routes/:name?', (ctx) => {
6
5
  const result = {};
7
6
  let counter = 0;
8
7
 
8
+ const maintainer = require('./maintainer');
9
9
  Object.keys(maintainer).forEach((i) => {
10
10
  const path = i;
11
11
  const top = path.split('/')[1];
package/lib/config.js CHANGED
@@ -120,10 +120,16 @@ const calculateValue = () => {
120
120
  chuiniu: {
121
121
  member: envs.CHUINIU_MEMBER,
122
122
  },
123
+ civitai: {
124
+ cookie: envs.CIVITAI_COOKIE,
125
+ },
123
126
  dida365: {
124
127
  username: envs.DIDA365_USERNAME,
125
128
  password: envs.DIDA365_PASSWORD,
126
129
  },
130
+ discord: {
131
+ authorization: envs.DISCORD_AUTHORIZATION,
132
+ },
127
133
  discuz: {
128
134
  cookies: discuz_cookies,
129
135
  },
@@ -185,6 +191,7 @@ const calculateValue = () => {
185
191
  username: envs.IG_USERNAME,
186
192
  password: envs.IG_PASSWORD,
187
193
  proxy: envs.IG_PROXY,
194
+ cookie: envs.IG_COOKIE,
188
195
  },
189
196
  iwara: {
190
197
  cookie: envs.IWARA_COOKIE,
@@ -221,6 +228,9 @@ const calculateValue = () => {
221
228
  pianyuan: {
222
229
  cookie: envs.PIANYUAN_COOKIE,
223
230
  },
231
+ pixabay: {
232
+ key: envs.PIXABAY_KEY,
233
+ },
224
234
  pixiv: {
225
235
  refreshToken: envs.PIXIV_REFRESHTOKEN,
226
236
  bypassCdn: envs.PIXIV_BYPASS_CDN !== '0' && envs.PIXIV_BYPASS_CDN !== 'false',
package/lib/maintainer.js CHANGED
@@ -1,4 +1,14 @@
1
1
  const dirname = __dirname + '/v2';
2
+ const fs = require('fs');
3
+ const { join } = require('path');
4
+
5
+ // Presence Check
6
+ for (const dir of fs.readdirSync(dirname)) {
7
+ const dirPath = join(dirname, dir);
8
+ if (!fs.existsSync(join(dirPath, 'maintainer.js'))) {
9
+ throw Error(`No maintainer.js in "${dirPath}".`);
10
+ }
11
+ }
2
12
 
3
13
  // 遍历整个 routes 文件夹,收集模块 maintainer.js
4
14
  const maintainerPath = require('require-all')({
@@ -11,6 +21,21 @@ const maintainers = {};
11
21
  // 将收集到的自定义模块进行合并
12
22
  for (const dir in maintainerPath) {
13
23
  const routes = maintainerPath[dir]['maintainer.js']; // Do not merge other file
24
+
25
+ // typo check e.g., ✘ module.export, ✔ module.exports
26
+ if (!Object.keys(routes).length) {
27
+ throw Error(`No maintainer in "${dir}".`);
28
+ }
29
+ for (const author of Object.values(routes)) {
30
+ if (!Array.isArray(author)) {
31
+ throw Error(`Maintainers' name should be an array in "${dir}".`);
32
+ }
33
+ // check for [], [''] or ['Someone', '']
34
+ if (author.length < 1 || author.includes('')) {
35
+ throw Error(`Empty maintainer in "${dir}".`);
36
+ }
37
+ }
38
+
14
39
  for (const key in routes) {
15
40
  maintainers['/' + dir + key] = routes[key];
16
41
  }
@@ -1,9 +1,9 @@
1
- const Lru = require('lru-cache');
1
+ const { LRUCache } = require('lru-cache');
2
2
  const config = require('@/config').value;
3
3
 
4
4
  const status = { available: false };
5
5
 
6
- const memoryCache = new Lru({
6
+ const memoryCache = new LRUCache({
7
7
  ttl: config.cache.routeExpire * 1000,
8
8
  max: config.memory.max,
9
9
  });
@@ -313,7 +313,7 @@ module.exports = async (ctx, next) => {
313
313
  }
314
314
  });
315
315
  } else {
316
- throw Error(`Invalid parameter <code>brief=${ctx.query.brief}</code>. Please check the doc https://docs.rsshub.app/parameter.html#shu-chu-jian-xun`);
316
+ throw Error(`Invalid parameter brief. Please check the doc https://docs.rsshub.app/parameter.html#shu-chu-jian-xun`);
317
317
  }
318
318
  }
319
319
 
@@ -125,17 +125,6 @@ module.exports = {
125
125
  },
126
126
  ],
127
127
  },
128
- 'epicgames.com': {
129
- _name: 'Epic Games',
130
- www: [
131
- {
132
- title: '每周免费游戏',
133
- docs: 'https://docs.rsshub.app/game.html#epicgames-freegame',
134
- source: '/store/zh-CN/free-games',
135
- target: '/epicgames/freegames',
136
- },
137
- ],
138
- },
139
128
  'playstation.com': {
140
129
  _name: 'PlayStation',
141
130
  store: [
@@ -231,30 +220,6 @@ module.exports = {
231
220
  },
232
221
  ],
233
222
  },
234
- 'qdaily.com': {
235
- _name: '好奇心日报',
236
- www: [
237
- {
238
- title: '标签',
239
- docs: 'https://docs.rsshub.app/new-media.html#hao-qi-xin-ri-bao',
240
- source: '/tags/:idd',
241
- target: (params) => `/qdaily/tag/${params.idd.replace('.html', '')}`,
242
- },
243
- {
244
- title: '栏目',
245
- docs: 'https://docs.rsshub.app/new-media.html#hao-qi-xin-ri-bao',
246
- source: '/special_columns/:idd',
247
- target: (params) => `/qdaily/column/${params.idd.replace('.html', '')}`,
248
- },
249
- {
250
- title: '分类',
251
- docs: 'https://docs.rsshub.app/new-media.html#hao-qi-xin-ri-bao',
252
- source: '/categories/:idd',
253
- target: (params) => `/qdaily/category/${params.idd.replace('.html', '')}`,
254
- },
255
- ],
256
- },
257
-
258
223
  '3ycy.com': {
259
224
  _name: '三界异次元',
260
225
  www: [
@@ -373,17 +338,6 @@ module.exports = {
373
338
  },
374
339
  ],
375
340
  },
376
- // 'baijingapp.com': {
377
- // _name: '白鲸出海',
378
- // www: [
379
- // {
380
- // title: '文章',
381
- // docs: 'https://docs.rsshub.app/new-media.html#bai-jing-chu-hai',
382
- // source: '',
383
- // target: '/baijing',
384
- // },
385
- // ],
386
- // },
387
341
  'xiaomi.cn': {
388
342
  _name: '小米社区',
389
343
  www: [
@@ -435,17 +389,6 @@ module.exports = {
435
389
  },
436
390
  ],
437
391
  },
438
- 'nikkei.com': {
439
- _name: '日本経済新聞',
440
- www: [
441
- {
442
- title: 'ホームページ',
443
- docs: 'https://docs.rsshub.app/traditional-media.html#ri-ben-jing-ji-xin-wen',
444
- source: '/',
445
- target: '/nikkei/index',
446
- },
447
- ],
448
- },
449
392
  'last.fm': {
450
393
  _name: 'Last.fm',
451
394
  www: [
@@ -502,36 +445,6 @@ module.exports = {
502
445
  },
503
446
  ],
504
447
  },
505
- 'google.com': {
506
- _name: '谷歌',
507
- chrome: [
508
- {
509
- title: '插件更新',
510
- source: '/webstore/detail/:name/:id',
511
- docs: 'https://docs.rsshub.app/program-update.html#chrome-wang-shang-ying-yong-dian',
512
- target: '/chrome/webstore/extensions/:id',
513
- },
514
- ],
515
- photos: [
516
- {
517
- title: '相册',
518
- docs: 'https://docs.rsshub.app/picture.html#google-xiang-ce',
519
- source: '/share/*',
520
- target: (params, url, document) => {
521
- const id = document && document.querySelector('html').innerHTML.match(/photos.app.goo.gl\/(.*?)"/)[1];
522
- return id ? `/google/album/${id}` : '';
523
- },
524
- },
525
- ],
526
- sites: [
527
- {
528
- title: 'Sites',
529
- docs: 'https://docs.rsshub.app/blog.html#google-sites',
530
- source: ['/site/:id/*', '/site/:id'],
531
- target: '/google/sites/:id',
532
- },
533
- ],
534
- },
535
448
  'hackerone.com': {
536
449
  _name: 'HackerOne',
537
450
  '.': [
@@ -667,35 +580,6 @@ module.exports = {
667
580
  },
668
581
  ],
669
582
  },
670
- // 'nsfc.gov.cn': {
671
- // _name: '国家自然科学基金委员会',
672
- // www: [
673
- // {
674
- // title: '基金要闻',
675
- // docs: 'https://docs.rsshub.app/other.html#guo-jia-zi-ran-ke-xue-ji-jin-wei-yuan-hui',
676
- // source: '/*',
677
- // target: '/nsfc/news/jjyw',
678
- // },
679
- // {
680
- // title: '通知公告',
681
- // docs: 'https://docs.rsshub.app/other.html#guo-jia-zi-ran-ke-xue-ji-jin-wei-yuan-hui',
682
- // source: '/*',
683
- // target: '/nsfc/news/tzgg',
684
- // },
685
- // {
686
- // title: '资助成果',
687
- // docs: 'https://docs.rsshub.app/other.html#guo-jia-zi-ran-ke-xue-ji-jin-wei-yuan-hui',
688
- // source: '/*',
689
- // target: '/nsfc/news/zzcg',
690
- // },
691
- // {
692
- // title: '科普快讯',
693
- // docs: 'https://docs.rsshub.app/other.html#guo-jia-zi-ran-ke-xue-ji-jin-wei-yuan-hui',
694
- // source: '/*',
695
- // target: '/nsfc/news/kpkx',
696
- // },
697
- // ],
698
- // },
699
583
  'japanpost.jp': {
700
584
  _name: '日本郵便',
701
585
  'trackings.post': [
@@ -845,59 +729,6 @@ module.exports = {
845
729
  },
846
730
  ],
847
731
  },
848
- // 'zcool.com.cn': {
849
- // _name: '站酷',
850
- // www: [
851
- // {
852
- // title: '发现',
853
- // docs: 'https://docs.rsshub.app/design.html#zhan-ku',
854
- // source: '',
855
- // target: '/zcool/discover',
856
- // },
857
- // {
858
- // title: '发现 - 精选 - 全部推荐',
859
- // docs: 'https://docs.rsshub.app/design.html#zhan-ku',
860
- // source: '',
861
- // target: '/zcool/discover/all',
862
- // },
863
- // {
864
- // title: '发现 - 精选 - 首页推荐',
865
- // docs: 'https://docs.rsshub.app/design.html#zhan-ku',
866
- // source: '',
867
- // target: '/zcool/discover/home',
868
- // },
869
- // {
870
- // title: '发现 - 精选 - 编辑精选',
871
- // docs: 'https://docs.rsshub.app/design.html#zhan-ku',
872
- // source: '',
873
- // target: '/zcool/discover/home',
874
- // },
875
- // {
876
- // title: '发现 - 精选 - 文章 - 编辑精选',
877
- // docs: 'https://docs.rsshub.app/design.html#zhan-ku',
878
- // source: '',
879
- // target: '/zcool/discover/article',
880
- // },
881
- // {
882
- // title: '作品榜单',
883
- // docs: 'https://docs.rsshub.app/design.html#zhan-ku',
884
- // source: '',
885
- // target: '/zcool/top/design',
886
- // },
887
- // {
888
- // title: '文章榜单',
889
- // docs: 'https://docs.rsshub.app/design.html#zhan-ku',
890
- // source: '',
891
- // target: '/zcool/top/article',
892
- // },
893
- // {
894
- // title: '用户作品',
895
- // docs: 'https://docs.rsshub.app/design.html#zhan-ku',
896
- // source: ['/u/:id'],
897
- // target: `/zcool/user/:id`,
898
- // },
899
- // ],
900
- // },
901
732
  'zhuixinfan.com': {
902
733
  _name: '追新番日剧站',
903
734
  '.': [
@@ -1283,21 +1114,6 @@ module.exports = {
1283
1114
  },
1284
1115
  ],
1285
1116
  },
1286
- 'instagram.com': {
1287
- _name: 'Instagram',
1288
- www: [
1289
- {
1290
- title: '用户',
1291
- docs: 'https://docs.rsshub.app/social-media.html#instagram',
1292
- source: '/:id',
1293
- target: (params) => {
1294
- if (params.id !== 'explore' && params.id !== 'developer') {
1295
- return '/instagram/user/:id';
1296
- }
1297
- },
1298
- },
1299
- ],
1300
- },
1301
1117
  'huya.com': {
1302
1118
  _name: '虎牙直播',
1303
1119
  '.': [
@@ -1460,59 +1276,6 @@ module.exports = {
1460
1276
  },
1461
1277
  ],
1462
1278
  },
1463
- 'e-hentai.org/': {
1464
- _name: 'E-Hentai',
1465
- '.': [
1466
- {
1467
- title: '收藏',
1468
- docs: 'https://docs.rsshub.app/picture.html#ehentai',
1469
- source: '/favorites.php',
1470
- target: '/ehentai/favorites',
1471
- },
1472
- {
1473
- title: '标签',
1474
- docs: 'https://docs.rsshub.app/picture.html#ehentai',
1475
- source: '/tag/:tag',
1476
- target: '/ehentai/tag/:tag',
1477
- },
1478
- {
1479
- title: '搜索',
1480
- docs: 'https://docs.rsshub.app/picture.html#ehentai',
1481
- source: '/',
1482
- target: (params, url) => {
1483
- const keyword = new URL(url).searchParams.toString();
1484
- if (keyword) {
1485
- return `/ehentai/search/${keyword}`;
1486
- }
1487
- },
1488
- },
1489
- ],
1490
- },
1491
- 'iyingdi.com': {
1492
- _name: '旅法师营地',
1493
- www: [
1494
- {
1495
- title: '分区',
1496
- docs: 'https://docs.rsshub.app/game.html#lv-fa-shi-ying-di',
1497
- source: '/tz/tag/:tag',
1498
- target: '/lfsyd/tag/:tag',
1499
- },
1500
- {
1501
- title: '用户发帖',
1502
- docs: 'https://docs.rsshub.app/game.html#lv-fa-shi-ying-di',
1503
- source: ['/tz/people/:id', '/tz/people/:id/*'],
1504
- target: '/lfsyd/user/:id',
1505
- },
1506
- ],
1507
- mob: [
1508
- {
1509
- title: '分区',
1510
- docs: 'https://docs.rsshub.app/game.html#lv-fa-shi-ying-di',
1511
- source: '/fine/:tag',
1512
- target: '/lfsyd/tag/:tag',
1513
- },
1514
- ],
1515
- },
1516
1279
  'macwk.com': {
1517
1280
  _name: 'MacWk',
1518
1281
  '.': [
package/lib/radar.js CHANGED
@@ -1,5 +1,81 @@
1
1
  const dirname = __dirname + '/v2';
2
+ const fs = require('fs');
2
3
  const toSource = require('tosource');
4
+ const { join } = require('path');
5
+
6
+ const allowNamespace = ['ehentai', 'test'];
7
+ // Check if a radar.js file is exist under each folder of dirname
8
+ for (const dir of fs.readdirSync(dirname)) {
9
+ const dirPath = join(dirname, dir);
10
+ if (!fs.existsSync(join(dirPath, 'radar.js')) && !allowNamespace.includes(dir)) {
11
+ throw Error(`No radar.js in "${dirPath}".`);
12
+ }
13
+ }
14
+
15
+ const validateRadarRules = (rule, dir) => {
16
+ const allowDomains = ['www.gov.cn'];
17
+ const blockWords = ['/', 'http', 'www'];
18
+ const domain = Object.keys(rule);
19
+ if (!domain.length && !allowNamespace.includes(dir)) {
20
+ // typo check e.g., ✘ module.export, ✔ module.exports
21
+ throw Error(`No Radar rule in "${dir}".`);
22
+ }
23
+ for (const [d, r] of Object.entries(rule)) {
24
+ if (blockWords.some((word) => d.startsWith(word)) && !allowDomains.includes(d)) {
25
+ throw Error(`Domain name "${d}" should not contain any of ${blockWords.join(', ')}.`);
26
+ }
27
+ if (!r.hasOwnProperty('_name')) {
28
+ throw Error(`No _name in "${dir}".`);
29
+ }
30
+ // property check
31
+ for (const [host, items] of Object.entries(r)) {
32
+ if (host !== '_name') {
33
+ if (!Array.isArray(items)) {
34
+ throw Error(`Radar rules for domain "${host}" in "${dir}" should be placed in an array.`);
35
+ }
36
+ for (const item of items) {
37
+ if (!item.hasOwnProperty('title') || !item.hasOwnProperty('docs')) {
38
+ throw Error(`Radar rules for "${host}" in "${dir}" should have at least "title" and "docs".`);
39
+ }
40
+ if (!item.title || !item.docs) {
41
+ throw Error(`Radar rules for "${host}" in "${dir}" should not be empty.`);
42
+ }
43
+ if (!item.docs.startsWith('https://docs.rsshub.app/')) {
44
+ throw Error(`Radar rules for "${host}" in "${dir}" should start with 'https://docs.rsshub.app/'.`);
45
+ }
46
+ if (Array.isArray(item.source)) {
47
+ if (!item.source.length) {
48
+ // check for []
49
+ throw Error(`Radar rule of "${item.title}" for subdomain "${host}" in "${dir}" should not be empty.`);
50
+ }
51
+ if (item.source.some((s) => s.includes('#') || s.includes('='))) {
52
+ // Some will try to match '/some/path?a=1' which is not supported
53
+ throw Error(`Radar rule of "${item.title}" for subdomain "${host}" in "${dir}" cannot match URL hash or URL search parameters.`);
54
+ }
55
+ if (item.source.some((s) => !s.length)) {
56
+ // check for ['/some/thing', ''] and ['']
57
+ throw Error(`Radar rule of "${item.title}" for subdomain "${host}" in "${dir}" should not be empty.`);
58
+ }
59
+ }
60
+ if (typeof item.source === 'string') {
61
+ if (!item.source.length) {
62
+ // check for ''
63
+ throw Error(`Radar rule of "${item.title}" for subdomain "${host}" in "${dir}" should not be empty.`);
64
+ }
65
+ if (item.source.includes('#') || item.source.includes('=')) {
66
+ throw Error(`Radar rule of "${item.title}" for subdomain "${host}" in "${dir}" cannot match URL hash or URL search parameters.`);
67
+ }
68
+ }
69
+ for (const key in item) {
70
+ if (key !== 'title' && key !== 'docs' && key !== 'source' && key !== 'target') {
71
+ throw Error(`Radar rules for "${host}" in "${dir}" should not have property "${key}".`);
72
+ }
73
+ }
74
+ }
75
+ }
76
+ }
77
+ }
78
+ };
3
79
 
4
80
  const radarRules = require('require-all')({
5
81
  dirname,
@@ -10,6 +86,9 @@ let rules = {};
10
86
 
11
87
  for (const dir in radarRules) {
12
88
  const rule = radarRules[dir]['radar.js']; // Do not merge other file
89
+
90
+ validateRadarRules(rule, dir);
91
+
13
92
  rules = { ...rules, ...rule };
14
93
  }
15
94