rsshub 1.0.0-master.c406f86 → 1.0.0-master.c41375a

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 (979) hide show
  1. package/README.md +13 -25
  2. package/lib/app.js +2 -2
  3. package/lib/config.js +43 -11
  4. package/lib/index.js +1 -1
  5. package/lib/maintainer.js +7 -2
  6. package/lib/middleware/access-control.js +5 -5
  7. package/lib/middleware/anti-hotlink.js +2 -2
  8. package/lib/middleware/cache/index.js +4 -3
  9. package/lib/middleware/cache/redis.js +3 -3
  10. package/lib/middleware/onerror.js +8 -0
  11. package/lib/middleware/parameter.js +107 -52
  12. package/lib/middleware/template.js +79 -85
  13. package/lib/radar-rules.js +13 -30
  14. package/lib/radar.js +2 -1
  15. package/lib/router.js +52 -66
  16. package/lib/routes/index.js +6 -13
  17. package/lib/routes/miniflux/get_feeds.js +2 -2
  18. package/lib/routes/universities/ynnu/edu/news.js +3 -3
  19. package/lib/utils/logger.js +14 -2
  20. package/lib/utils/rand-user-agent.js +3 -2
  21. package/lib/utils/render.js +2 -0
  22. package/lib/v2/141ppv/index.js +4 -1
  23. package/lib/v2/1point3acres/maintainer.js +2 -2
  24. package/lib/v2/2048/index.js +28 -15
  25. package/lib/v2/8264/list.js +92 -0
  26. package/lib/v2/8264/maintainer.js +3 -0
  27. package/lib/v2/8264/radar.js +355 -0
  28. package/lib/v2/8264/router.js +3 -0
  29. package/lib/v2/8264/templates/description.art +5 -0
  30. package/lib/v2/95mm/utils.js +3 -2
  31. package/lib/v2/abc/index.js +162 -0
  32. package/lib/v2/abc/maintainer.js +3 -0
  33. package/lib/v2/abc/radar.js +13 -0
  34. package/lib/v2/abc/router.js +3 -0
  35. package/lib/v2/abc/templates/description.art +21 -0
  36. package/lib/v2/abskoop/index.js +21 -31
  37. package/lib/v2/abskoop/nsfw.js +16 -37
  38. package/lib/v2/abskoop/radar.js +13 -2
  39. package/lib/v2/ainvest/article.js +42 -0
  40. package/lib/v2/ainvest/maintainer.js +4 -0
  41. package/lib/v2/ainvest/news.js +39 -0
  42. package/lib/v2/ainvest/radar.js +19 -0
  43. package/lib/v2/ainvest/router.js +4 -0
  44. package/lib/v2/ainvest/utils.js +73 -0
  45. package/lib/v2/{scitation/journal.js → aip/journal-pupp.js} +2 -2
  46. package/lib/v2/aip/journal.js +55 -0
  47. package/lib/v2/{scitation → aip}/maintainer.js +0 -1
  48. package/lib/v2/aip/radar.js +13 -0
  49. package/lib/v2/aip/router.js +4 -0
  50. package/lib/v2/aliyun/notice.js +1 -1
  51. package/lib/v2/aljazeera/index.js +1 -1
  52. package/lib/v2/alternativeto/maintainer.js +4 -0
  53. package/lib/v2/alternativeto/platform.js +32 -0
  54. package/lib/v2/alternativeto/radar.js +19 -0
  55. package/lib/v2/alternativeto/router.js +4 -0
  56. package/lib/v2/alternativeto/software.js +32 -0
  57. package/lib/v2/alternativeto/utils.js +22 -0
  58. package/lib/v2/amazon/maintainer.js +1 -1
  59. package/lib/v2/apnews/topics.js +3 -1
  60. package/lib/v2/apple/apps.js +107 -0
  61. package/lib/v2/apple/maintainer.js +1 -0
  62. package/lib/v2/apple/radar.js +8 -0
  63. package/lib/v2/apple/router.js +1 -0
  64. package/lib/v2/appstore/maintainer.js +0 -1
  65. package/lib/v2/appstore/radar.js +0 -6
  66. package/lib/v2/appstore/router.js +0 -1
  67. package/lib/v2/aqara/maintainer.js +4 -1
  68. package/lib/v2/aqara/news.js +25 -25
  69. package/lib/v2/aqara/post.js +92 -0
  70. package/lib/v2/aqara/radar.js +24 -6
  71. package/lib/v2/aqara/router.js +12 -1
  72. package/lib/v2/aqara/templates/figure.art +3 -0
  73. package/lib/v2/arcteryx/maintainer.js +3 -3
  74. package/lib/v2/asiantolick/index.js +73 -27
  75. package/lib/v2/asiantolick/maintainer.js +5 -3
  76. package/lib/v2/asiantolick/radar.js +34 -12
  77. package/lib/v2/asiantolick/router.js +2 -2
  78. package/lib/v2/asiantolick/templates/description.art +9 -3
  79. package/lib/v2/baidu/maintainer.js +3 -2
  80. package/lib/v2/baidu/radar.js +15 -1
  81. package/lib/v2/baidu/router.js +3 -2
  82. package/lib/v2/baidu/templates/tieba_search.art +1 -0
  83. package/lib/v2/baidu/tieba/forum.js +4 -3
  84. package/lib/v2/baidu/tieba/search.js +63 -0
  85. package/lib/v2/bangumi/maintainer.js +3 -0
  86. package/lib/v2/bangumi/radar.js +21 -9
  87. package/lib/v2/bangumi/router.js +3 -2
  88. package/lib/v2/bangumi/tv/other/followrank.js +42 -0
  89. package/lib/v2/bangumi/tv/subject/ep.js +4 -3
  90. package/lib/v2/bangumi/tv/subject/index.js +18 -16
  91. package/lib/v2/bangumi/tv/subject/offcial-subject-api.js +3 -2
  92. package/lib/v2/bangumi/tv/subject/utils.js +5 -0
  93. package/lib/v2/bangumi/tv/user/wish.js +38 -0
  94. package/lib/{routes → v2}/bbc/index.js +4 -4
  95. package/lib/v2/bbc/maintainer.js +4 -0
  96. package/lib/v2/bbc/radar.js +11 -0
  97. package/lib/v2/bbc/router.js +3 -0
  98. package/lib/v2/bellroy/maintainer.js +1 -1
  99. package/lib/v2/bilibili/article.js +2 -17
  100. package/lib/v2/bilibili/cache.js +88 -27
  101. package/lib/v2/bilibili/danmaku.js +9 -2
  102. package/lib/v2/bilibili/dynamic.js +54 -19
  103. package/lib/v2/bilibili/fav.js +2 -0
  104. package/lib/v2/bilibili/followings_article.js +1 -10
  105. package/lib/v2/bilibili/followings_dynamic.js +25 -11
  106. package/lib/v2/bilibili/maintainer.js +4 -2
  107. package/lib/v2/bilibili/platform.js +43 -0
  108. package/lib/v2/bilibili/radar.js +8 -0
  109. package/lib/v2/bilibili/router.js +4 -2
  110. package/lib/v2/bilibili/userFav.js +2 -0
  111. package/lib/v2/bilibili/utils.js +67 -3
  112. package/lib/v2/bilibili/video-all.js +1 -5
  113. package/lib/v2/bilibili/video.js +16 -7
  114. package/lib/v2/bilibili/watchlater.js +44 -0
  115. package/lib/v2/bjfu/grs.js +22 -36
  116. package/lib/v2/bjfu/it/index.js +9 -7
  117. package/lib/v2/bjfu/it/utils.js +38 -29
  118. package/lib/v2/bjfu/jwc/index.js +3 -8
  119. package/lib/v2/bjfu/jwc/utils.js +26 -29
  120. package/lib/v2/bjfu/kjc.js +25 -38
  121. package/lib/v2/bjfu/news/index.js +12 -9
  122. package/lib/v2/bjfu/news/utils.js +17 -19
  123. package/lib/v2/bloomberg/utils.js +6 -4
  124. package/lib/v2/bnu/dwxgb.js +17 -22
  125. package/lib/v2/boc/maintainer.js +3 -0
  126. package/lib/v2/boc/radar.js +13 -0
  127. package/lib/v2/boc/router.js +3 -0
  128. package/lib/{routes → v2}/boc/whpj.js +16 -15
  129. package/lib/v2/booru/maintainer.js +3 -0
  130. package/lib/v2/booru/mmda.js +47 -0
  131. package/lib/v2/booru/radar.js +12 -0
  132. package/lib/v2/booru/router.js +3 -0
  133. package/lib/v2/bossdesign/index.js +41 -0
  134. package/lib/v2/bossdesign/maintainer.js +3 -0
  135. package/lib/v2/bossdesign/radar.js +13 -0
  136. package/lib/v2/bossdesign/router.js +3 -0
  137. package/lib/v2/brave/latest.js +4 -2
  138. package/lib/v2/buaa/maintainer.js +4 -0
  139. package/lib/v2/buaa/news/index.js +46 -0
  140. package/lib/v2/buaa/radar.js +21 -0
  141. package/lib/v2/buaa/router.js +4 -0
  142. package/lib/v2/buaa/sme.js +59 -0
  143. package/lib/v2/bytes/maintainer.js +0 -1
  144. package/lib/v2/caixin/blog.js +68 -45
  145. package/lib/v2/caixin/latest.js +7 -12
  146. package/lib/v2/caixin/radar.js +1 -1
  147. package/lib/v2/caixin/router.js +1 -1
  148. package/lib/v2/caixinglobal/latest.js +64 -0
  149. package/lib/v2/caixinglobal/maintainer.js +3 -0
  150. package/lib/v2/caixinglobal/radar.js +13 -0
  151. package/lib/v2/caixinglobal/router.js +3 -0
  152. package/lib/v2/cas/genetics/xshd.js +29 -0
  153. package/lib/v2/cas/maintainer.js +1 -0
  154. package/lib/v2/cas/radar.js +16 -8
  155. package/lib/v2/cas/router.js +1 -0
  156. package/lib/{routes → v2}/caus/index.js +7 -6
  157. package/lib/v2/caus/maintainer.js +3 -0
  158. package/lib/v2/caus/radar.js +13 -0
  159. package/lib/v2/caus/router.js +3 -0
  160. package/lib/v2/cbc/maintainer.js +3 -0
  161. package/lib/v2/cbc/radar.js +13 -0
  162. package/lib/v2/cbc/router.js +3 -0
  163. package/lib/{routes → v2}/cbc/topics.js +13 -26
  164. package/lib/v2/cfachina/analygarden.js +60 -0
  165. package/lib/v2/cfachina/maintainer.js +3 -0
  166. package/lib/v2/cfachina/radar.js +13 -0
  167. package/lib/v2/cfachina/router.js +3 -0
  168. package/lib/v2/china/finance/finance.js +61 -0
  169. package/lib/v2/china/maintainer.js +1 -0
  170. package/lib/v2/china/news/military/news.js +5 -6
  171. package/lib/v2/china/radar.js +9 -0
  172. package/lib/v2/china/router.js +1 -0
  173. package/lib/v2/chinafactcheck/index.js +20 -21
  174. package/lib/v2/chinafactcheck/utils.js +16 -16
  175. package/lib/v2/chinaisa/index.js +83 -0
  176. package/lib/v2/chinaisa/maintainer.js +3 -0
  177. package/lib/v2/chinaisa/radar.js +18 -0
  178. package/lib/v2/chinaisa/router.js +3 -0
  179. package/lib/v2/chinawriter/index.js +88 -0
  180. package/lib/v2/chinawriter/maintainer.js +3 -0
  181. package/lib/v2/chinawriter/radar.js +660 -0
  182. package/lib/v2/chinawriter/router.js +3 -0
  183. package/lib/v2/cma/channel.js +87 -0
  184. package/lib/v2/cma/maintainer.js +3 -0
  185. package/lib/v2/cma/radar.js +18 -0
  186. package/lib/v2/cma/router.js +3 -0
  187. package/lib/v2/cma/templates/description.art +13 -0
  188. package/lib/v2/cmpxchg8b/articles.js +43 -0
  189. package/lib/v2/cmpxchg8b/maintainer.js +3 -0
  190. package/lib/v2/cmpxchg8b/radar.js +13 -0
  191. package/lib/v2/cmpxchg8b/router.js +3 -0
  192. package/lib/v2/cna/index.js +64 -0
  193. package/lib/v2/cna/maintainer.js +4 -0
  194. package/lib/v2/cna/radar.js +19 -0
  195. package/lib/v2/cna/router.js +4 -0
  196. package/lib/{routes/cna → v2/cna/web}/index.js +18 -10
  197. package/lib/v2/cnbeta/type.js +15 -9
  198. package/lib/v2/cnbeta/utils.js +3 -0
  199. package/lib/v2/cqwu/index.js +11 -8
  200. package/lib/v2/cqwu/radar.js +2 -2
  201. package/lib/v2/creative-comic/book.js +40 -34
  202. package/lib/v2/creative-comic/utils.js +1 -2
  203. package/lib/v2/cste/radar.js +1 -1
  204. package/lib/v2/cyzone/author.js +20 -0
  205. package/lib/v2/cyzone/index.js +27 -0
  206. package/lib/v2/cyzone/label.js +20 -0
  207. package/lib/v2/cyzone/maintainer.js +7 -0
  208. package/lib/v2/cyzone/radar.js +25 -0
  209. package/lib/v2/cyzone/router.js +6 -0
  210. package/lib/v2/cyzone/util.js +125 -0
  211. package/lib/v2/dahecube/radar.js +40 -4
  212. package/lib/v2/deadline/maintainer.js +0 -1
  213. package/lib/v2/deltaio/blog.js +33 -0
  214. package/lib/v2/deltaio/maintainer.js +3 -0
  215. package/lib/v2/deltaio/radar.js +13 -0
  216. package/lib/v2/deltaio/router.js +3 -0
  217. package/lib/v2/discourse/maintainer.js +4 -0
  218. package/lib/v2/discourse/notifications.js +39 -0
  219. package/lib/v2/discourse/posts.js +25 -0
  220. package/lib/v2/discourse/router.js +4 -0
  221. package/lib/v2/discourse/utils.js +12 -0
  222. package/lib/v2/discuz/discuz.js +156 -0
  223. package/lib/v2/discuz/maintainer.js +5 -0
  224. package/lib/v2/discuz/radar.js +0 -0
  225. package/lib/v2/discuz/router.js +5 -0
  226. package/lib/v2/dlnews/category.js +81 -0
  227. package/lib/v2/dlnews/maintainer.js +3 -0
  228. package/lib/v2/dlnews/radar.js +19 -0
  229. package/lib/v2/dlnews/router.js +3 -0
  230. package/lib/v2/dlnews/templates/description.art +24 -0
  231. package/lib/v2/dlnews/utils.js +22 -0
  232. package/lib/v2/dlsite/ci-en/article.js +1 -1
  233. package/lib/v2/dn/maintainer.js +3 -0
  234. package/lib/v2/dn/news.js +90 -0
  235. package/lib/v2/dn/radar.js +55 -0
  236. package/lib/v2/dn/router.js +3 -0
  237. package/lib/v2/dn/templates/description.art +15 -0
  238. package/lib/v2/domp4/detail.js +4 -2
  239. package/lib/v2/domp4/latest.js +7 -4
  240. package/lib/v2/domp4/utils.js +15 -2
  241. package/lib/v2/dongqiudi/special.js +13 -21
  242. package/lib/v2/dongqiudi/utils.js +26 -2
  243. package/lib/v2/dorohedoro/news.js +3 -1
  244. package/lib/v2/douban/maintainer.js +4 -2
  245. package/lib/v2/douban/other/discussion.js +58 -0
  246. package/lib/v2/douban/other/doulist.js +9 -7
  247. package/lib/v2/douban/other/list.js +28 -19
  248. package/lib/v2/douban/other/recommended.js +68 -0
  249. package/lib/v2/douban/people/status.js +1 -1
  250. package/lib/v2/douban/radar.js +8 -0
  251. package/lib/v2/douban/router.js +3 -1
  252. package/lib/v2/douyin/live.js +45 -15
  253. package/lib/v2/dribbble/maintainer.js +5 -0
  254. package/lib/v2/dribbble/radar.js +25 -0
  255. package/lib/v2/dribbble/router.js +5 -0
  256. package/lib/v2/dribbble/templates/description.art +15 -0
  257. package/lib/v2/dribbble/utils.js +156 -0
  258. package/lib/v2/dut/defaults.js +4 -0
  259. package/lib/v2/dut/index.js +21 -9
  260. package/lib/v2/dut/maintainer.js +8 -7
  261. package/lib/v2/dut/radar.js +37 -29
  262. package/lib/v2/dut/shortcuts.js +5 -0
  263. package/lib/v2/economist/full.js +4 -2
  264. package/lib/v2/egsea/flash.js +30 -0
  265. package/lib/v2/egsea/maintainer.js +3 -0
  266. package/lib/v2/egsea/radar.js +13 -0
  267. package/lib/v2/egsea/router.js +3 -0
  268. package/lib/v2/ehentai/ehapi.js +3 -1
  269. package/lib/v2/epicgames/index.js +18 -11
  270. package/lib/v2/epicgames/templates/description.art +1 -0
  271. package/lib/v2/fantia/user.js +16 -0
  272. package/lib/v2/farmatters/index.js +85 -0
  273. package/lib/v2/farmatters/maintainer.js +7 -0
  274. package/lib/v2/farmatters/radar.js +36 -0
  275. package/lib/v2/farmatters/router.js +6 -0
  276. package/lib/v2/farmatters/templates/description.art +9 -0
  277. package/lib/v2/finology/radar.js +4 -4
  278. package/lib/{routes → v2}/firefox/addons.js +3 -1
  279. package/lib/v2/firefox/breaches.js +38 -0
  280. package/lib/v2/firefox/maintainer.js +2 -0
  281. package/lib/v2/firefox/radar.js +17 -0
  282. package/lib/{routes → v2}/firefox/release.js +3 -3
  283. package/lib/v2/firefox/router.js +3 -1
  284. package/lib/v2/fisher-spb/news.js +1 -2
  285. package/lib/v2/foresightnews/article.js +22 -0
  286. package/lib/v2/foresightnews/column.js +28 -0
  287. package/lib/v2/foresightnews/index.js +13 -76
  288. package/lib/v2/foresightnews/news.js +23 -0
  289. package/lib/v2/foresightnews/radar.js +2 -2
  290. package/lib/v2/foresightnews/router.js +4 -1
  291. package/lib/v2/foresightnews/templates/description.art +13 -0
  292. package/lib/v2/foresightnews/util.js +96 -0
  293. package/lib/v2/fosshub/radar.js +1 -1
  294. package/lib/v2/ft/myft.js +9 -2
  295. package/lib/v2/fuliba/latest.js +25 -0
  296. package/lib/v2/fuliba/maintainer.js +3 -0
  297. package/lib/v2/fuliba/radar.js +15 -0
  298. package/lib/v2/fuliba/router.js +3 -0
  299. package/lib/v2/gamegene/maintainer.js +3 -0
  300. package/lib/v2/gamegene/news.js +50 -0
  301. package/lib/v2/gamegene/radar.js +13 -0
  302. package/lib/v2/gamegene/router.js +3 -0
  303. package/lib/v2/gcores/category.js +1 -0
  304. package/lib/v2/gcores/radio.js +1 -0
  305. package/lib/v2/gdsrx/index.js +72 -0
  306. package/lib/v2/gdsrx/maintainer.js +3 -0
  307. package/lib/v2/gdsrx/radar.js +61 -0
  308. package/lib/v2/gdsrx/router.js +3 -0
  309. package/lib/v2/getitfree/index.js +42 -34
  310. package/lib/v2/getitfree/maintainer.js +3 -1
  311. package/lib/v2/getitfree/radar.js +19 -2
  312. package/lib/v2/getitfree/router.js +10 -2
  313. package/lib/v2/getitfree/util.js +326 -0
  314. package/lib/v2/github/maintainer.js +1 -0
  315. package/lib/v2/github/pulse.js +87 -0
  316. package/lib/v2/github/radar.js +6 -0
  317. package/lib/v2/github/router.js +1 -0
  318. package/lib/v2/github/templates/pulse-description.art +24 -0
  319. package/lib/v2/github/topic.js +26 -10
  320. package/lib/v2/gocn/jobs.js +14 -9
  321. package/lib/v2/gocn/maintainer.js +3 -1
  322. package/lib/v2/gocn/news.js +31 -0
  323. package/lib/v2/gocn/radar.js +8 -2
  324. package/lib/v2/gocn/router.js +3 -1
  325. package/lib/v2/gocn/topics.js +15 -7
  326. package/lib/v2/gocn/utils.js +38 -0
  327. package/lib/v2/gogoanimehd/maintainer.js +3 -0
  328. package/lib/v2/gogoanimehd/radar.js +13 -0
  329. package/lib/v2/gogoanimehd/recent-releases.js +37 -0
  330. package/lib/v2/gogoanimehd/router.js +3 -0
  331. package/lib/v2/google/alerts.js +33 -0
  332. package/lib/v2/google/maintainer.js +1 -0
  333. package/lib/v2/google/router.js +1 -0
  334. package/lib/v2/gov/chongqing/gzw.js +68 -0
  335. package/lib/v2/gov/chongqing/sydwgkzp.js +47 -0
  336. package/lib/v2/gov/forestry/gjlckjdjt.js +96 -0
  337. package/lib/v2/gov/forestry/templates/description.art +15 -0
  338. package/lib/v2/gov/maintainer.js +18 -3
  339. package/lib/v2/gov/mem/sgcc.js +64 -0
  340. package/lib/v2/gov/moa/zdscxx.js +104 -0
  341. package/lib/v2/gov/mot/index.js +66 -0
  342. package/lib/v2/gov/nea/ghs.js +58 -0
  343. package/lib/v2/gov/nifdc/index.js +40 -33
  344. package/lib/v2/gov/npc/index.js +47 -0
  345. package/lib/v2/gov/radar.js +354 -4
  346. package/lib/v2/gov/router.js +18 -2
  347. package/lib/v2/gov/safe/business.js +8 -0
  348. package/lib/v2/gov/safe/complaint.js +8 -0
  349. package/lib/v2/gov/safe/templates/message.art +25 -0
  350. package/lib/v2/gov/safe/util.js +87 -0
  351. package/lib/v2/gov/samr/templates/description.art +26 -0
  352. package/lib/v2/gov/samr/xgzlyhd.js +100 -0
  353. package/lib/v2/gov/shenzhen/zjj/index.js +45 -0
  354. package/lib/v2/gov/zhejiang/gwy.js +84 -0
  355. package/lib/v2/gov/zhengce/index.js +99 -0
  356. package/lib/v2/greasyfork/maintainer.js +1 -0
  357. package/lib/v2/greasyfork/router.js +1 -0
  358. package/lib/v2/greasyfork/scripts.js +25 -20
  359. package/lib/v2/grist/radar.js +4 -4
  360. package/lib/v2/grubstreet/maintainer.js +3 -0
  361. package/lib/v2/grubstreet/radar.js +13 -0
  362. package/lib/v2/grubstreet/router.js +3 -0
  363. package/lib/v2/grubstreet/utils.js +84 -0
  364. package/lib/v2/guangdiu/maintainer.js +1 -0
  365. package/lib/v2/guangdiu/radar.js +6 -0
  366. package/lib/v2/guangdiu/router.js +1 -0
  367. package/lib/v2/guangdiu/search.js +40 -0
  368. package/lib/v2/guanhai/maintainer.js +0 -1
  369. package/lib/v2/gxmzu/lib.js +70 -0
  370. package/lib/v2/gxmzu/maintainer.js +1 -0
  371. package/lib/v2/gxmzu/radar.js +8 -0
  372. package/lib/v2/gxmzu/router.js +1 -0
  373. package/lib/v2/hackyournews/index.js +50 -0
  374. package/lib/v2/hackyournews/maintainer.js +3 -0
  375. package/lib/v2/hackyournews/radar.js +13 -0
  376. package/lib/v2/hackyournews/router.js +3 -0
  377. package/lib/{routes/universities → v2}/harvard/health/blog.js +8 -7
  378. package/lib/v2/harvard/maintainer.js +3 -0
  379. package/lib/v2/harvard/radar.js +13 -0
  380. package/lib/v2/harvard/router.js +3 -0
  381. package/lib/v2/hebtv/maintainer.js +3 -0
  382. package/lib/v2/hebtv/nong-bo-shi-zai-xing-dong.js +109 -0
  383. package/lib/v2/hebtv/radar.js +13 -0
  384. package/lib/v2/hebtv/router.js +3 -0
  385. package/lib/v2/hebtv/templates/description.art +24 -0
  386. package/lib/v2/hostmonit/cloudflareyes.js +91 -0
  387. package/lib/v2/hostmonit/maintainer.js +3 -0
  388. package/lib/v2/hostmonit/radar.js +17 -0
  389. package/lib/v2/hostmonit/router.js +8 -0
  390. package/lib/v2/hostmonit/templates/description.art +28 -0
  391. package/lib/v2/hostmonit/templates/title.art +1 -0
  392. package/lib/v2/hrbeu/radar.js +3 -3
  393. package/lib/v2/hrbeu/router.js +1 -1
  394. package/lib/v2/hrbeu/uae/news.js +66 -0
  395. package/lib/v2/huxiu/briefColumn.js +13 -25
  396. package/lib/v2/huxiu/channel.js +28 -0
  397. package/lib/v2/huxiu/club.js +30 -0
  398. package/lib/v2/huxiu/collection.js +14 -26
  399. package/lib/v2/huxiu/maintainer.js +8 -5
  400. package/lib/v2/huxiu/member.js +27 -0
  401. package/lib/v2/huxiu/moment.js +11 -25
  402. package/lib/v2/huxiu/radar.js +24 -16
  403. package/lib/v2/huxiu/router.js +7 -4
  404. package/lib/v2/huxiu/search.js +16 -21
  405. package/lib/v2/huxiu/tag.js +13 -25
  406. package/lib/v2/huxiu/templates/description.art +46 -0
  407. package/lib/v2/huxiu/util.js +460 -0
  408. package/lib/v2/ianspriggs/index.js +90 -0
  409. package/lib/v2/ianspriggs/maintainer.js +3 -0
  410. package/lib/v2/ianspriggs/radar.js +17 -0
  411. package/lib/v2/ianspriggs/router.js +3 -0
  412. package/lib/v2/ianspriggs/templates/description.art +13 -0
  413. package/lib/v2/icbc/maintainer.js +3 -0
  414. package/lib/v2/icbc/radar.js +13 -0
  415. package/lib/v2/icbc/router.js +3 -0
  416. package/lib/v2/icbc/whpj.js +57 -0
  417. package/lib/v2/ifi-audio/maintainer.js +1 -1
  418. package/lib/v2/imiker/jinghua.js +87 -0
  419. package/lib/v2/imiker/maintainer.js +3 -0
  420. package/lib/v2/imiker/radar.js +13 -0
  421. package/lib/v2/imiker/router.js +3 -0
  422. package/lib/v2/imiker/templates/description.art +32 -0
  423. package/lib/v2/inoreader/maintainer.js +1 -1
  424. package/lib/v2/instagram/common-utils.js +7 -4
  425. package/lib/v2/instagram/templates/images.art +9 -2
  426. package/lib/v2/instagram/templates/video.art +4 -1
  427. package/lib/v2/instagram/web-api/index.js +30 -9
  428. package/lib/v2/instagram/web-api/utils.js +149 -25
  429. package/lib/v2/iqilu/maintainer.js +3 -0
  430. package/lib/v2/iqilu/program.js +98 -0
  431. package/lib/v2/iqilu/radar.js +107 -0
  432. package/lib/v2/iqilu/router.js +3 -0
  433. package/lib/v2/iqilu/templates/description.art +24 -0
  434. package/lib/v2/iqiyi/maintainer.js +1 -1
  435. package/lib/v2/iqiyi/video.js +42 -33
  436. package/lib/v2/ithome/tag.js +14 -3
  437. package/lib/v2/japanpost/maintainer.js +3 -0
  438. package/lib/v2/japanpost/radar.js +22 -0
  439. package/lib/v2/japanpost/router.js +3 -0
  440. package/lib/v2/japanpost/templates/track_item_desc.art +14 -0
  441. package/lib/{routes → v2}/japanpost/track.js +32 -29
  442. package/lib/{routes → v2}/japanpost/utils.js +10 -11
  443. package/lib/v2/javbus/index.js +6 -0
  444. package/lib/v2/javlibrary/maintainer.js +1 -0
  445. package/lib/v2/javlibrary/maker.js +10 -0
  446. package/lib/v2/javlibrary/router.js +1 -0
  447. package/lib/v2/javlibrary/utils.js +1 -0
  448. package/lib/v2/kamen-rider-official/maintainer.js +3 -0
  449. package/lib/v2/kamen-rider-official/news.js +110 -0
  450. package/lib/v2/kamen-rider-official/radar.js +18 -0
  451. package/lib/v2/kamen-rider-official/router.js +3 -0
  452. package/lib/v2/kamen-rider-official/templates/description.art +10 -0
  453. package/lib/v2/kantarworldpanel/index.js +96 -0
  454. package/lib/v2/kantarworldpanel/maintainer.js +3 -0
  455. package/lib/v2/kantarworldpanel/radar.js +199 -0
  456. package/lib/v2/kantarworldpanel/router.js +3 -0
  457. package/lib/v2/kantarworldpanel/templates/description.art +9 -0
  458. package/lib/v2/kemono/index.js +28 -4
  459. package/lib/v2/kemono/radar.js +1 -1
  460. package/lib/v2/kepu/live.js +89 -0
  461. package/lib/v2/kepu/maintainer.js +3 -0
  462. package/lib/v2/kepu/radar.js +13 -0
  463. package/lib/v2/kepu/router.js +3 -0
  464. package/lib/v2/kepu/templates/description.art +33 -0
  465. package/lib/v2/kunchengblog/essay.js +35 -19
  466. package/lib/v2/kunchengblog/radar.js +1 -1
  467. package/lib/v2/kunchengblog/router.js +1 -1
  468. package/lib/v2/latepost/index.js +83 -29
  469. package/lib/v2/latepost/radar.js +7 -2
  470. package/lib/v2/latepost/router.js +1 -1
  471. package/lib/v2/leetcode/articles.js +14 -10
  472. package/lib/v2/leetcode/dailyquestion-solution-cn.js +6 -3
  473. package/lib/v2/leetcode/dailyquestion-solution-en.js +7 -4
  474. package/lib/v2/leetcode/maintainer.js +1 -1
  475. package/lib/v2/lemmy/index.js +61 -0
  476. package/lib/v2/lemmy/maintainer.js +3 -0
  477. package/lib/v2/lemmy/router.js +3 -0
  478. package/lib/v2/lightnovel/lightNovel.js +62 -0
  479. package/lib/v2/lightnovel/maintainer.js +3 -0
  480. package/lib/v2/lightnovel/radar.js +13 -0
  481. package/lib/v2/lightnovel/router.js +3 -0
  482. package/lib/v2/line/radar.js +1 -1
  483. package/lib/v2/liquipedia/cs_matches.js +52 -0
  484. package/lib/v2/liquipedia/dota2_matches.js +47 -0
  485. package/lib/v2/liquipedia/maintainer.js +4 -0
  486. package/lib/v2/liquipedia/radar.js +19 -0
  487. package/lib/v2/liquipedia/router.js +4 -0
  488. package/lib/v2/liulinblog/index.js +98 -0
  489. package/lib/v2/liulinblog/maintainer.js +6 -2
  490. package/lib/v2/liulinblog/radar.js +36 -16
  491. package/lib/v2/liulinblog/router.js +7 -3
  492. package/lib/v2/logclub/index.js +134 -0
  493. package/lib/v2/logclub/maintainer.js +9 -0
  494. package/lib/v2/logclub/radar.js +139 -0
  495. package/lib/v2/logclub/report.js +98 -0
  496. package/lib/v2/logclub/router.js +5 -0
  497. package/lib/v2/logclub/templates/description.art +33 -0
  498. package/lib/v2/lsnu/jiaowc/tzgg.js +52 -0
  499. package/lib/v2/lsnu/maintainer.js +3 -0
  500. package/lib/v2/lsnu/radar.js +13 -0
  501. package/lib/v2/lsnu/router.js +3 -0
  502. package/lib/v2/luxiangdong/archive.js +28 -0
  503. package/lib/v2/luxiangdong/maintainer.js +3 -0
  504. package/lib/v2/luxiangdong/radar.js +13 -0
  505. package/lib/v2/luxiangdong/router.js +3 -0
  506. package/lib/v2/magazinelib/maintainer.js +1 -1
  507. package/lib/v2/mail/imap.js +99 -0
  508. package/lib/v2/mail/maintainer.js +3 -0
  509. package/lib/v2/mail/router.js +3 -0
  510. package/lib/v2/metacritic/index.js +121 -0
  511. package/lib/v2/metacritic/maintainer.js +5 -0
  512. package/lib/v2/metacritic/radar.js +43 -0
  513. package/lib/v2/metacritic/router.js +3 -0
  514. package/lib/v2/metacritic/templates/description.art +19 -0
  515. package/lib/v2/metacritic/util.js +42 -0
  516. package/lib/v2/mihoyo/bbs/img-ranking.js +106 -0
  517. package/lib/v2/mihoyo/{bbs.js → bbs/official.js} +1 -1
  518. package/lib/v2/mihoyo/bbs/static-data.js +137 -0
  519. package/lib/v2/mihoyo/maintainer.js +1 -0
  520. package/lib/v2/mihoyo/radar.js +8 -2
  521. package/lib/v2/mihoyo/router.js +2 -1
  522. package/lib/v2/missav/maintainer.js +3 -0
  523. package/lib/v2/missav/new.js +36 -0
  524. package/lib/v2/missav/radar.js +13 -0
  525. package/lib/v2/missav/router.js +3 -0
  526. package/lib/v2/missav/templates/preview.art +3 -0
  527. package/lib/v2/mittrchina/index.js +104 -0
  528. package/lib/v2/mittrchina/maintainer.js +3 -0
  529. package/lib/v2/mittrchina/radar.js +31 -0
  530. package/lib/v2/mittrchina/router.js +3 -0
  531. package/lib/v2/mittrchina/templates/movie.art +5 -0
  532. package/lib/v2/mixcloud/index.js +5 -22
  533. package/lib/v2/mixcloud/queries.js +187 -179
  534. package/lib/v2/modb/maintainer.js +3 -0
  535. package/lib/v2/modb/radar.js +13 -0
  536. package/lib/v2/modb/router.js +3 -0
  537. package/lib/v2/modb/topic.js +59 -0
  538. package/lib/v2/mydrivers/cid.js +38 -0
  539. package/lib/v2/mydrivers/index.js +40 -89
  540. package/lib/v2/mydrivers/maintainer.js +5 -1
  541. package/lib/v2/mydrivers/radar.js +205 -4
  542. package/lib/v2/mydrivers/rank.js +40 -0
  543. package/lib/v2/mydrivers/router.js +4 -1
  544. package/lib/v2/mydrivers/templates/description.art +5 -0
  545. package/lib/v2/mydrivers/util.js +125 -0
  546. package/lib/v2/mymusicsheet/maintainer.js +3 -0
  547. package/lib/v2/mymusicsheet/radar.js +13 -0
  548. package/lib/v2/mymusicsheet/router.js +3 -0
  549. package/lib/v2/mymusicsheet/templates/description.art +41 -0
  550. package/lib/v2/mymusicsheet/usersheets.js +120 -0
  551. package/lib/v2/nature/cover.js +32 -42
  552. package/lib/v2/nature/highlight.js +2 -2
  553. package/lib/v2/nature/news-and-comment.js +2 -2
  554. package/lib/v2/nature/news.js +2 -2
  555. package/lib/v2/nature/research.js +2 -2
  556. package/lib/v2/nature/siteindex.js +5 -5
  557. package/lib/v2/nature/utils.js +124 -5
  558. package/lib/v2/nbd/index.js +4 -1
  559. package/lib/v2/nbd/maintainer.js +1 -1
  560. package/lib/v2/nbd/radar.js +3 -3
  561. package/lib/v2/nbd/router.js +1 -1
  562. package/lib/v2/ncu/jwc.js +33 -0
  563. package/lib/v2/ncu/maintainer.js +3 -0
  564. package/lib/v2/ncu/radar.js +13 -0
  565. package/lib/v2/ncu/router.js +3 -0
  566. package/lib/v2/netflav/index.js +39 -0
  567. package/lib/v2/netflav/maintainer.js +3 -0
  568. package/lib/v2/netflav/radar.js +13 -0
  569. package/lib/v2/netflav/router.js +3 -0
  570. package/lib/v2/netflav/templates/description.art +8 -0
  571. package/lib/v2/news/whxw.js +1 -0
  572. package/lib/v2/newzmz/index.js +53 -77
  573. package/lib/v2/newzmz/maintainer.js +2 -2
  574. package/lib/v2/newzmz/router.js +1 -3
  575. package/lib/v2/newzmz/templates/description.art +59 -7
  576. package/lib/v2/newzmz/util.js +166 -0
  577. package/lib/v2/niaogebiji/cat.js +53 -0
  578. package/lib/v2/niaogebiji/index.js +41 -0
  579. package/lib/v2/niaogebiji/maintainer.js +5 -0
  580. package/lib/v2/niaogebiji/radar.js +25 -0
  581. package/lib/v2/niaogebiji/router.js +5 -0
  582. package/lib/v2/niaogebiji/today.js +34 -0
  583. package/lib/v2/nju/gra.js +13 -5
  584. package/lib/v2/nmtv/radar.js +1 -1
  585. package/lib/v2/npr/radar.js +2 -2
  586. package/lib/v2/nwafu/all.js +43 -0
  587. package/lib/v2/nwafu/maintainer.js +3 -0
  588. package/lib/v2/nwafu/radar.js +13 -0
  589. package/lib/v2/nwafu/router.js +3 -0
  590. package/lib/v2/nwafu/utils.js +35 -0
  591. package/lib/v2/nytimes/index.js +1 -4
  592. package/lib/v2/nytimes/utils.js +5 -0
  593. package/lib/v2/oo-software/radar.js +1 -1
  594. package/lib/v2/oreno3d/radar.js +1 -1
  595. package/lib/v2/oschina/news.js +1 -0
  596. package/lib/v2/osu/beatmaps/packs.js +35 -0
  597. package/lib/v2/osu/maintainer.js +3 -0
  598. package/lib/v2/osu/radar.js +13 -0
  599. package/lib/v2/osu/router.js +3 -0
  600. package/lib/v2/ouc/it-tx.js +44 -0
  601. package/lib/v2/ouc/it.js +2 -2
  602. package/lib/v2/ouc/maintainer.js +2 -1
  603. package/lib/v2/ouc/radar.js +6 -0
  604. package/lib/v2/ouc/router.js +1 -0
  605. package/lib/v2/patagonia/maintainer.js +1 -1
  606. package/lib/v2/paulgraham/article.js +62 -0
  607. package/lib/v2/paulgraham/maintainer.js +3 -0
  608. package/lib/v2/paulgraham/radar.js +13 -0
  609. package/lib/v2/paulgraham/router.js +5 -0
  610. package/lib/v2/people/index.js +15 -24
  611. package/lib/v2/people/router.js +1 -2
  612. package/lib/v2/phoronix/index.js +177 -48
  613. package/lib/v2/phoronix/maintainer.js +1 -1
  614. package/lib/v2/phoronix/radar.js +3 -3
  615. package/lib/v2/phoronix/router.js +1 -1
  616. package/lib/v2/picnob/maintainer.js +1 -1
  617. package/lib/v2/picnob/templates/desc.art +3 -3
  618. package/lib/v2/picnob/user.js +74 -37
  619. package/lib/v2/picnob/utils.js +24 -0
  620. package/lib/v2/pixiv/ranking.js +1 -0
  621. package/lib/v2/pixiv/user.js +2 -1
  622. package/lib/v2/pixiv/utils.js +2 -2
  623. package/lib/v2/pku/cls/announcement.js +42 -0
  624. package/lib/v2/pku/maintainer.js +1 -0
  625. package/lib/v2/pku/radar.js +6 -0
  626. package/lib/v2/pku/router.js +1 -0
  627. package/lib/v2/pornhub/category.js +44 -0
  628. package/lib/v2/pornhub/category_url.js +25 -0
  629. package/lib/v2/pornhub/maintainer.js +8 -0
  630. package/lib/v2/pornhub/model.js +29 -0
  631. package/lib/v2/pornhub/pornstar.js +29 -0
  632. package/lib/v2/pornhub/radar.js +46 -0
  633. package/lib/v2/pornhub/router.js +8 -0
  634. package/lib/v2/pornhub/search.js +23 -0
  635. package/lib/v2/pornhub/templates/description.art +11 -0
  636. package/lib/v2/pornhub/users.js +30 -0
  637. package/lib/v2/pornhub/utils.js +30 -0
  638. package/lib/v2/qbitai/category.js +27 -0
  639. package/lib/v2/qbitai/maintainer.js +4 -0
  640. package/lib/v2/qbitai/radar.js +19 -0
  641. package/lib/v2/qbitai/router.js +4 -0
  642. package/lib/v2/qbitai/tag.js +27 -0
  643. package/lib/v2/qqorw/maintainer.js +1 -1
  644. package/lib/v2/questmobile/maintainer.js +3 -0
  645. package/lib/v2/questmobile/radar.js +18 -0
  646. package/lib/v2/questmobile/report.js +127 -0
  647. package/lib/v2/questmobile/router.js +3 -0
  648. package/lib/v2/questmobile/templates/description.art +17 -0
  649. package/lib/v2/radio-canada/latest.js +8 -1
  650. package/lib/v2/reactnewsletter/maintainer.js +0 -1
  651. package/lib/v2/readhub/daily.js +43 -0
  652. package/lib/v2/readhub/index.js +42 -86
  653. package/lib/v2/readhub/maintainer.js +2 -1
  654. package/lib/v2/readhub/radar.js +12 -2
  655. package/lib/v2/readhub/router.js +2 -4
  656. package/lib/v2/readhub/templates/description.art +40 -0
  657. package/lib/v2/readhub/util.js +69 -0
  658. package/lib/v2/reuters/common.js +66 -27
  659. package/lib/v2/reuters/maintainer.js +0 -2
  660. package/lib/v2/reuters/router.js +0 -2
  661. package/lib/v2/rfi/maintainer.js +1 -1
  662. package/lib/v2/rfi/news.js +36 -16
  663. package/lib/v2/rfi/radar.js +5 -5
  664. package/lib/v2/rfi/router.js +1 -1
  665. package/lib/v2/routledge/book-series.js +78 -0
  666. package/lib/v2/routledge/maintainer.js +3 -0
  667. package/lib/v2/routledge/radar.js +13 -0
  668. package/lib/v2/routledge/router.js +3 -0
  669. package/lib/v2/routledge/templates/description.art +7 -0
  670. package/lib/v2/rsc/journal.js +106 -0
  671. package/lib/v2/rsc/maintainer.js +3 -0
  672. package/lib/v2/rsc/radar.js +23 -0
  673. package/lib/v2/rsc/router.js +3 -0
  674. package/lib/v2/rsc/templates/image.art +5 -0
  675. package/lib/v2/rsshub/maintainer.js +1 -0
  676. package/lib/v2/rsshub/router.js +1 -0
  677. package/lib/v2/rsshub/routes.js +14 -18
  678. package/lib/v2/rsshub/transform/html.js +9 -0
  679. package/lib/v2/rsshub/transform/json.js +1 -0
  680. package/lib/v2/rsshub/transform/sitemap.js +52 -0
  681. package/lib/v2/runtrail/maintainer.js +0 -1
  682. package/lib/v2/scau/maintainer.js +1 -0
  683. package/lib/v2/scau/radar.js +8 -0
  684. package/lib/v2/scau/router.js +1 -0
  685. package/lib/v2/scau/yjs.js +2 -2
  686. package/lib/v2/scau/yjsy.js +27 -0
  687. package/lib/v2/science/radar.js +2 -2
  688. package/lib/v2/science/utils.js +4 -4
  689. package/lib/v2/scmp/index.js +61 -85
  690. package/lib/v2/scmp/utils.js +60 -0
  691. package/lib/v2/scut/maintainer.js +1 -0
  692. package/lib/v2/scut/radar.js +34 -0
  693. package/lib/v2/scut/router.js +1 -0
  694. package/lib/v2/scut/smae/notice.js +54 -0
  695. package/lib/v2/segmentfault/blogs.js +6 -23
  696. package/lib/v2/segmentfault/channel.js +18 -30
  697. package/lib/v2/segmentfault/user.js +6 -32
  698. package/lib/v2/segmentfault/utils.js +32 -0
  699. package/lib/v2/showstart/artist.js +15 -0
  700. package/lib/v2/showstart/brand.js +15 -0
  701. package/lib/v2/showstart/const.js +4 -0
  702. package/lib/v2/showstart/event.js +18 -0
  703. package/lib/v2/showstart/maintainer.js +6 -0
  704. package/lib/v2/showstart/radar.js +40 -0
  705. package/lib/v2/showstart/router.js +6 -0
  706. package/lib/v2/showstart/search.js +51 -0
  707. package/lib/v2/showstart/service.js +166 -0
  708. package/lib/v2/showstart/utils.js +92 -0
  709. package/lib/v2/snowpeak/maintainer.js +1 -1
  710. package/lib/v2/sohu/mp.js +48 -35
  711. package/lib/v2/sohu/templates/video.art +7 -0
  712. package/lib/v2/sony/maintainer.js +1 -1
  713. package/lib/v2/sourceforge/index.js +33 -0
  714. package/lib/v2/sourceforge/maintainer.js +3 -0
  715. package/lib/v2/sourceforge/radar.js +12 -0
  716. package/lib/v2/sourceforge/router.js +3 -0
  717. package/lib/v2/sqmc/maintainer.js +3 -0
  718. package/lib/v2/sqmc/radar.js +13 -0
  719. package/lib/v2/sqmc/router.js +3 -0
  720. package/lib/v2/sqmc/www.js +49 -0
  721. package/lib/v2/sse/disclosure.js +4 -3
  722. package/lib/v2/stheadline/std/realtime.js +8 -6
  723. package/lib/v2/stockedge/daily-news.js +1 -1
  724. package/lib/v2/stockedge/utils.js +1 -0
  725. package/lib/v2/surfshark/blog.js +91 -0
  726. package/lib/v2/surfshark/maintainer.js +3 -0
  727. package/lib/v2/surfshark/radar.js +90 -0
  728. package/lib/v2/surfshark/router.js +3 -0
  729. package/lib/v2/surfshark/templates/description.art +5 -0
  730. package/lib/v2/tableau/maintainer.js +3 -0
  731. package/lib/v2/tableau/radar.js +11 -0
  732. package/lib/v2/tableau/router.js +3 -0
  733. package/lib/v2/tableau/viz-of-the-day.js +26 -0
  734. package/lib/v2/techcrunch/maintainer.js +1 -1
  735. package/lib/v2/techpowerup/maintainer.js +0 -1
  736. package/lib/v2/telegram/maintainer.js +3 -3
  737. package/lib/v2/tesla/cx.js +119 -0
  738. package/lib/v2/tesla/maintainer.js +1 -0
  739. package/lib/v2/tesla/radar.js +13 -1
  740. package/lib/v2/tesla/router.js +1 -0
  741. package/lib/v2/tesla/templates/description.art +140 -0
  742. package/lib/v2/test/index.js +47 -1
  743. package/lib/v2/tfc-taiwan/index.js +36 -0
  744. package/lib/v2/tfc-taiwan/maintainer.js +9 -0
  745. package/lib/v2/tfc-taiwan/radar.js +31 -0
  746. package/lib/v2/tfc-taiwan/router.js +7 -0
  747. package/lib/v2/tfc-taiwan/templates/article.art +7 -0
  748. package/lib/v2/tfc-taiwan/utils.js +56 -0
  749. package/lib/v2/theatlantic/maintainer.js +1 -1
  750. package/lib/v2/thepaper/featured.js +1 -1
  751. package/lib/v2/thepaper/radar.js +2 -2
  752. package/lib/v2/thepaper/utils.js +19 -13
  753. package/lib/v2/thoughtco/index.js +95 -0
  754. package/lib/v2/thoughtco/maintainer.js +3 -0
  755. package/lib/v2/thoughtco/radar.js +155 -0
  756. package/lib/v2/thoughtco/router.js +3 -0
  757. package/lib/v2/thoughtco/templates/description.art +16 -0
  758. package/lib/v2/threads/index.js +20 -150
  759. package/lib/v2/threads/utils.js +147 -0
  760. package/lib/v2/thwiki/radar.js +1 -1
  761. package/lib/v2/tiktok/router.js +1 -1
  762. package/lib/v2/tiktok/templates/user.art +5 -1
  763. package/lib/v2/tiktok/user.js +5 -1
  764. package/lib/v2/toodaylab/index.js +99 -0
  765. package/lib/v2/toodaylab/maintainer.js +7 -0
  766. package/lib/v2/toodaylab/radar.js +37 -0
  767. package/lib/v2/toodaylab/router.js +3 -0
  768. package/lib/{routes → v2}/tophub/index.js +12 -6
  769. package/lib/v2/tophub/maintainer.js +3 -0
  770. package/lib/v2/tophub/radar.js +13 -0
  771. package/lib/v2/tophub/router.js +3 -0
  772. package/lib/v2/twitch/live.js +88 -0
  773. package/lib/v2/twitch/maintainer.js +5 -0
  774. package/lib/v2/twitch/radar.js +37 -0
  775. package/lib/v2/twitch/router.js +5 -0
  776. package/lib/v2/twitch/schedule.js +75 -0
  777. package/lib/v2/twitch/video.js +64 -0
  778. package/lib/v2/twitter/keyword.js +1 -3
  779. package/lib/v2/twitter/media.js +1 -5
  780. package/lib/v2/twitter/user.js +1 -3
  781. package/lib/v2/twitter/utils.js +5 -3
  782. package/lib/v2/twitter/web-api/constants.js +80 -68
  783. package/lib/v2/twitter/web-api/twitter-api.js +96 -103
  784. package/lib/v2/udn/breaking-news.js +14 -5
  785. package/lib/v2/uniqlo/maintainer.js +3 -0
  786. package/lib/v2/uniqlo/new.js +62 -0
  787. package/lib/v2/uniqlo/radar.js +12 -0
  788. package/lib/v2/uniqlo/router.js +3 -0
  789. package/lib/v2/ustc/eeis.js +5 -4
  790. package/lib/v2/ustc/sist.js +6 -5
  791. package/lib/v2/v1tx/maintainer.js +0 -1
  792. package/lib/v2/v2ex/maintainer.js +5 -0
  793. package/lib/v2/v2ex/post.js +35 -0
  794. package/lib/v2/v2ex/radar.js +35 -0
  795. package/lib/v2/v2ex/router.js +5 -0
  796. package/lib/{routes → v2}/v2ex/tab.js +17 -21
  797. package/lib/{routes → v2}/v2ex/topics.js +1 -1
  798. package/lib/v2/wechat/maintainer.js +1 -1
  799. package/lib/v2/weekendhk/maintainer.js +0 -1
  800. package/lib/v2/weibo/maintainer.js +1 -1
  801. package/lib/v2/weibo/oasis/user.js +4 -3
  802. package/lib/v2/weibo/radar.js +1 -1
  803. package/lib/v2/weibo/router.js +1 -1
  804. package/lib/v2/weibo/search/hot.js +118 -7
  805. package/lib/v2/weibo/search/template/digest.art +17 -0
  806. package/lib/v2/whu/cs.js +71 -0
  807. package/lib/v2/whu/gs/index.js +85 -0
  808. package/lib/v2/whu/hyxt.js +50 -0
  809. package/lib/v2/whu/maintainer.js +6 -0
  810. package/lib/v2/whu/news.js +70 -0
  811. package/lib/v2/whu/radar.js +275 -0
  812. package/lib/v2/whu/router.js +6 -0
  813. package/lib/v2/whu/templates/description.art +39 -0
  814. package/lib/v2/whu/util.js +148 -0
  815. package/lib/v2/x-mol/maintainer.js +4 -0
  816. package/lib/v2/x-mol/news.js +63 -0
  817. package/lib/v2/x-mol/paper.js +73 -0
  818. package/lib/v2/x-mol/radar.js +25 -0
  819. package/lib/v2/x-mol/router.js +4 -0
  820. package/lib/v2/x-mol/templates/description.art +6 -0
  821. package/lib/v2/x-mol/utils.js +3 -0
  822. package/lib/v2/xiaohongshu/user.js +33 -9
  823. package/lib/v2/xiaohongshu/util.js +26 -20
  824. package/lib/v2/xiaote/index.js +48 -0
  825. package/lib/v2/xiaote/maintainer.js +3 -0
  826. package/lib/v2/xiaote/radar.js +13 -0
  827. package/lib/v2/xiaote/router.js +3 -0
  828. package/lib/v2/xinpianchang/index.js +19 -0
  829. package/lib/v2/xinpianchang/maintainer.js +4 -0
  830. package/lib/v2/xinpianchang/radar.js +28 -0
  831. package/lib/v2/xinpianchang/rank.js +33 -0
  832. package/lib/v2/xinpianchang/router.js +5 -0
  833. package/lib/v2/xinpianchang/templates/description.art +13 -0
  834. package/lib/v2/xinpianchang/util.js +110 -0
  835. package/lib/v2/xmnn/docs.js +0 -0
  836. package/lib/v2/xmnn/maintainer.js +1 -0
  837. package/lib/v2/xmnn/news.js +65 -0
  838. package/lib/v2/xmnn/radar.js +67 -1
  839. package/lib/v2/xmnn/router.js +1 -0
  840. package/lib/v2/xmut/jwc/bkjw.js +62 -0
  841. package/lib/v2/xmut/jwc/yjs.js +51 -0
  842. package/lib/v2/xmut/maintainer.js +3 -0
  843. package/lib/v2/xmut/radar.js +13 -0
  844. package/lib/v2/xmut/router.js +4 -0
  845. package/lib/v2/xsijishe/maintainer.js +1 -0
  846. package/lib/v2/xsijishe/radar.js +12 -0
  847. package/lib/v2/xsijishe/rank.js +60 -0
  848. package/lib/v2/xsijishe/router.js +1 -0
  849. package/lib/v2/yahoo/maintainer.js +2 -0
  850. package/lib/v2/yahoo/news/tw/index.js +24 -0
  851. package/lib/v2/yahoo/news/tw/provider-helper.js +22 -0
  852. package/lib/v2/yahoo/news/tw/provider.js +24 -0
  853. package/lib/v2/yahoo/news/tw/utils.js +129 -0
  854. package/lib/v2/yahoo/radar.js +29 -1
  855. package/lib/v2/yahoo/router.js +4 -1
  856. package/lib/v2/yahoo/templates/youtube.art +1 -0
  857. package/lib/v2/yomujp/level.js +101 -0
  858. package/lib/v2/yomujp/maintainer.js +3 -0
  859. package/lib/v2/yomujp/radar.js +13 -0
  860. package/lib/v2/yomujp/router.js +3 -0
  861. package/lib/v2/youtube/live.js +49 -0
  862. package/lib/v2/youtube/maintainer.js +1 -0
  863. package/lib/v2/youtube/radar.js +6 -0
  864. package/lib/v2/youtube/router.js +1 -0
  865. package/lib/v2/youtube/utils.js +12 -0
  866. package/lib/v2/yuque/book.js +6 -1
  867. package/lib/v2/yuque/utils.js +17 -0
  868. package/lib/v2/yyets/radar.js +2 -2
  869. package/lib/v2/zagg/maintainer.js +1 -1
  870. package/lib/v2/zcool/maintainer.js +1 -1
  871. package/lib/v2/zhihu/maintainer.js +4 -0
  872. package/lib/v2/zhihu/radar.js +24 -0
  873. package/lib/v2/zhihu/router.js +4 -0
  874. package/lib/v2/zhihu/xhu/auth.js +38 -0
  875. package/lib/v2/zhihu/xhu/collection.js +64 -0
  876. package/lib/v2/zhihu/xhu/question.js +44 -0
  877. package/lib/v2/zhihu/xhu/topic.js +70 -0
  878. package/lib/v2/zhihu/xhu/zhuanlan.js +83 -0
  879. package/lib/v2/zhubai/radar.js +2 -1
  880. package/lib/v2/zhubai/templates/description.art +41 -13
  881. package/lib/v2/zhubai/top20.js +31 -22
  882. package/lib/{routes → v2}/zimuxia/index.js +16 -8
  883. package/lib/v2/zimuxia/maintainer.js +4 -0
  884. package/lib/v2/zimuxia/portfolio.js +52 -0
  885. package/lib/v2/zimuxia/radar.js +19 -0
  886. package/lib/v2/zimuxia/router.js +4 -0
  887. package/lib/v2/zjuvag/blog.js +33 -0
  888. package/lib/v2/zjuvag/maintainer.js +3 -0
  889. package/lib/v2/zjuvag/radar.js +11 -0
  890. package/lib/v2/zjuvag/router.js +3 -0
  891. package/lib/v2/zodgame/forum.js +61 -23
  892. package/lib/v2/zodgame/templates/forum.art +1 -1
  893. package/lib/views/error.art +1 -1
  894. package/lib/views/rss3-ums.js +62 -0
  895. package/lib/views/welcome.art +1 -1
  896. package/package.json +78 -43
  897. package/lib/routes/abc/documentId.js +0 -7272
  898. package/lib/routes/abc/id.js +0 -7272
  899. package/lib/routes/abc/index.js +0 -74
  900. package/lib/routes/blogs/paulgraham.js +0 -46
  901. package/lib/routes/cyzone/author.js +0 -55
  902. package/lib/routes/cyzone/label.js +0 -53
  903. package/lib/routes/discuz/discuz.js +0 -148
  904. package/lib/routes/dribbble/utils.js +0 -94
  905. package/lib/routes/egsea/flash.js +0 -40
  906. package/lib/routes/getitfree/category.js +0 -59
  907. package/lib/routes/getitfree/search.js +0 -25
  908. package/lib/routes/getitfree/utils.js +0 -47
  909. package/lib/routes/gov/moa/sjzxfb.js +0 -20
  910. package/lib/routes/growincity/news.js +0 -49
  911. package/lib/routes/grubstreet/utils.js +0 -78
  912. package/lib/routes/kkj/news.js +0 -52
  913. package/lib/routes/liquipedia/dota2_matches.js +0 -50
  914. package/lib/routes/mail/imap.js +0 -79
  915. package/lib/routes/mittrchina/index.js +0 -45
  916. package/lib/routes/niaogebiji/cat.js +0 -86
  917. package/lib/routes/niaogebiji/index.js +0 -40
  918. package/lib/routes/niaogebiji/today.js +0 -29
  919. package/lib/routes/npc/index.js +0 -42
  920. package/lib/routes/pornhub/category.js +0 -22
  921. package/lib/routes/pornhub/category_url.js +0 -34
  922. package/lib/routes/pornhub/model.js +0 -35
  923. package/lib/routes/pornhub/pornstar.js +0 -35
  924. package/lib/routes/pornhub/search.js +0 -22
  925. package/lib/routes/pornhub/users.js +0 -35
  926. package/lib/routes/questmobile/report.js +0 -121
  927. package/lib/routes/uniqlo/stylingbook.js +0 -24
  928. package/lib/routes/universities/buaa/news/index.js +0 -66
  929. package/lib/routes/universities/buaa/utils.js +0 -57
  930. package/lib/routes/universities/nwafu/54youth.js +0 -28
  931. package/lib/routes/universities/nwafu/cie.js +0 -28
  932. package/lib/routes/universities/nwafu/gs.js +0 -28
  933. package/lib/routes/universities/nwafu/jcc.js +0 -28
  934. package/lib/routes/universities/nwafu/jiaowu.js +0 -28
  935. package/lib/routes/universities/nwafu/lib.js +0 -28
  936. package/lib/routes/universities/nwafu/news.js +0 -28
  937. package/lib/routes/universities/nwafu/nic.js +0 -28
  938. package/lib/routes/universities/nwafu/yjshy.js +0 -28
  939. package/lib/routes/universities/whu/cs.js +0 -38
  940. package/lib/routes/universities/whu/news.js +0 -128
  941. package/lib/routes/v2ex/post.js +0 -39
  942. package/lib/routes/x-mol/news.js +0 -48
  943. package/lib/routes/x-mol/paper.js +0 -78
  944. package/lib/routes/x-mol/utils.js +0 -16
  945. package/lib/routes/zimuxia/portfolio.js +0 -39
  946. package/lib/v2/abskoop/templates/description.art +0 -3
  947. package/lib/v2/appstore/update.js +0 -37
  948. package/lib/v2/chinafactcheck/templates/description.art +0 -1
  949. package/lib/v2/firefox/index.js +0 -74
  950. package/lib/v2/gocn/util.js +0 -17
  951. package/lib/v2/gov/zhengce/zuixin.js +0 -39
  952. package/lib/v2/hrbeu/uae/list.js +0 -57
  953. package/lib/v2/huxiu/article.js +0 -33
  954. package/lib/v2/huxiu/author.js +0 -36
  955. package/lib/v2/huxiu/templates/brief.art +0 -22
  956. package/lib/v2/huxiu/templates/img.art +0 -3
  957. package/lib/v2/huxiu/templates/moment.art +0 -16
  958. package/lib/v2/huxiu/templates/video.art +0 -7
  959. package/lib/v2/huxiu/utils.js +0 -154
  960. package/lib/v2/liulinblog/itnews.js +0 -23
  961. package/lib/v2/liulinblog/kuaixun.js +0 -17
  962. package/lib/v2/liulinblog/utils.js +0 -42
  963. package/lib/v2/nbd/article.js +0 -50
  964. package/lib/v2/newzmz/view.js +0 -57
  965. package/lib/v2/reuters/migration_prompt.js +0 -3
  966. package/lib/v2/scitation/radar.js +0 -19
  967. package/lib/v2/scitation/router.js +0 -4
  968. package/lib/v2/scitation/section.js +0 -76
  969. package/lib/v2/twitter/web-api/twitter-got.js +0 -113
  970. /package/lib/v2/{scitation → aip}/templates/description.art +0 -0
  971. /package/lib/v2/{scitation → aip}/utils.js +0 -0
  972. /package/lib/{routes → v2}/bbc/utils.js +0 -0
  973. /package/lib/{routes → v2}/dribbble/keyword.js +0 -0
  974. /package/lib/{routes → v2}/dribbble/popular.js +0 -0
  975. /package/lib/{routes → v2}/dribbble/user.js +0 -0
  976. /package/lib/{routes → v2}/gov/moa/moa.js +0 -0
  977. /package/lib/{routes → v2}/grubstreet/index.js +0 -0
  978. /package/lib/{routes → v2}/metacritic/release.js +0 -0
  979. /package/lib/v2/yahoo/news/{index.js → us/index.js} +0 -0
package/README.md CHANGED
@@ -21,25 +21,19 @@ RSSHub delivers millions of contents aggregated from all kinds of sources, our v
21
21
 
22
22
  RSSHub can be used with browser extension [RSSHub Radar](https://github.com/DIYgod/RSSHub-Radar) and mobile auxiliary app [RSSBud](https://github.com/Cay-Zhang/RSSBud) (iOS) and [RSSAid](https://github.com/LeetaoGoooo/RSSAid) (Android)
23
23
 
24
- [English docs](https://docs.rsshub.app/en) | [Telegram Group](https://t.me/rsshub) | [Telegram Channel](https://t.me/awesomeRSSHub)
24
+ [English docs](https://docs.rsshub.app) | [Telegram Group](https://t.me/rsshub) | [Telegram Channel](https://t.me/awesomeRSSHub)
25
25
 
26
- ---
27
-
28
- RSSHub 是一个开源、简单易用、易于扩展的 RSS 生成器,可以给任何奇奇怪怪的内容生成 RSS 订阅源。RSSHub 借助于开源社区的力量快速发展中,目前已适配数百家网站的上千项内容
29
-
30
- 可以配合浏览器扩展 [RSSHub Radar](https://github.com/DIYgod/RSSHub-Radar) 和 移动端辅助 App [RSSBud](https://github.com/Cay-Zhang/RSSBud) (iOS) 与 [RSSAid](https://github.com/LeetaoGoooo/RSSAid) (Android) 食用
31
-
32
- [中文文档](https://docs.rsshub.app) | [Telegram 群](https://t.me/rsshub) | [Telegram 频道](https://t.me/awesomeRSSHub)
26
+ [中文文档](https://docs.rsshub.app/zh/) | [Telegram 群](https://t.me/rsshub) | [Telegram 频道](https://t.me/awesomeRSSHub)
33
27
 
34
28
  ## Special Thanks
35
29
 
36
30
  ### Special Sponsors
37
31
 
38
32
  <p>
39
- <a href="https://xlog.app/" target="_blank"><img height="100px" src="https://i.imgur.com/JuhHTKD.png"></a>
33
+ <a href="https://rss3.io" target="_blank"><img height="50px" src="https://i.imgur.com/lb1dDGK.png"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="https://xlog.app/" target="_blank"><img height="50px" src="https://i.imgur.com/JuhHTKD.png"></a>
40
34
  </p>
41
35
 
42
- [![](https://opencollective.com/static/images/become_sponsor.svg)](https://docs.rsshub.app/en/support/)
36
+ [![](https://opencollective.com/static/images/become_sponsor.svg)](https://docs.rsshub.app/support/)
43
37
 
44
38
  ### Contributors
45
39
 
@@ -49,34 +43,28 @@ Logo designer [sheldonrrr](https://dribbble.com/sheldonrrr)
49
43
 
50
44
  ### Backers
51
45
 
52
- <a href="https://www.cloudflare.com" target="_blank"><img height="50px" src="https://i.imgur.com/7Ph27Fq.png"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="https://www.netlify.com" target="_blank"><img height="40px" src="https://i.imgur.com/cU01915.png"></a>
46
+ <a href="https://www.cloudflare.com" target="_blank"><img height="50px" src="https://i.imgur.com/7Ph27Fq.png"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="https://www.netlify.com" target="_blank"><img height="40px" src="https://i.imgur.com/cU01915.png"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="https://1password.com" target="_blank"><img height="40px" src="https://i.imgur.com/a2XjflO.png"></a>
53
47
 
54
48
  ## Related Projects
55
49
 
56
- - [RSSHub Radar](https://github.com/DIYgod/RSSHub-Radar) | 一个可以帮助你快速发现和订阅当前网站 RSS 和 RSSHub 的浏览器扩展
57
- - [RSSBud](https://github.com/Cay-Zhang/RSSBud) ([TestFlight 公测](https://testflight.apple.com/join/rjCVzzHP)) | iOS 平台的 RSSHub Radar,专为移动生态优化
58
- - [RSSAid](https://github.com/LeetaoGoooo/RSSAid) | 基于 Flutter 构建的 Android 平台的 RSSHub Radar
50
+ - [RSSHub Radar](https://github.com/DIYgod/RSSHub-Radar) | A browser extension that can help you quickly discover and subscribe to the RSS and RSSHub of current websites.
51
+ - [RSSBud](https://github.com/Cay-Zhang/RSSBud) ([TestFlight](https://testflight.apple.com/join/rjCVzzHP)) | RSSHub Radar for iOS platform, designed specifically for mobile ecosystem optimization.
52
+ - [RSSAid](https://github.com/LeetaoGoooo/RSSAid) | RSSHub Radar for Android platform built with Flutter.
59
53
  - [DocSearch](https://github.com/Fatpandac/DocSearch) | Link RSSHub DocSearch into Raycast
60
54
 
61
55
  ## Join Us
62
56
 
63
57
  We welcome all pull requests. Suggestions and feedback are also welcomed [here](https://github.com/DIYgod/RSSHub/issues).
64
58
 
65
- Refer to [Join Us](https://docs.rsshub.app/en/joinus/quick-start)
66
-
67
- 见 [参与我们](https://docs.rsshub.app/joinus/quick-start)
59
+ Refer to [Join Us](https://docs.rsshub.app/joinus/quick-start)
68
60
 
69
61
  ## Deployment
70
62
 
71
- Refer to [Deployment](https://docs.rsshub.app/en/install/)
72
-
73
- 见 [部署](https://docs.rsshub.app/install/)
63
+ Refer to [Deployment](https://docs.rsshub.app/install/)
74
64
 
75
65
  ## Support RSSHub
76
66
 
77
- Refer to [Support RSSHub](https://docs.rsshub.app/en/support/)
78
-
79
- 见 [支持 RSSHub](https://docs.rsshub.app/support/)
67
+ Refer to [Support RSSHub](https://docs.rsshub.app/support/)
80
68
 
81
69
  RSSHub is open source and completely free under the MIT license. However, just like any other open source project, as the project grows, the hosting, development and maintenance requires funding support.
82
70
 
@@ -87,10 +75,10 @@ You can support RSSHub via donations.
87
75
  Recurring donors will be rewarded via express issue response, or even have your name displayed on our GitHub page and website.
88
76
 
89
77
  - Become a Sponser on [GitHub](https://github.com/sponsors/DIYgod)
90
- - Become a Sponser on [Open Collective](https://opencollective.com/RSSHub)
91
78
  - Become a Sponser on [Patreon](https://www.patreon.com/DIYgod)
79
+ - Become a Sponser on [Open Collective](https://opencollective.com/RSSHub)
92
80
  - Become a Sponser on [爱发电](https://afdian.net/@diygod)
93
- - Contact us directly: i@diygod.me
81
+ - Contact us directly: <i@diygod.me>
94
82
 
95
83
  ### One-time Donation
96
84
 
package/lib/app.js CHANGED
@@ -37,8 +37,8 @@ const app = new Koa();
37
37
  app.proxy = true;
38
38
 
39
39
  // favicon
40
- app.use(favicon(__dirname + '/favicon.png'));
41
- app.use(serve(__dirname + '/static'));
40
+ app.use(favicon(__dirname + '/favicon.png', { maxAge: 31536000000 }));
41
+ app.use(serve(__dirname + '/static', { maxage: 31536000000 }));
42
42
 
43
43
  // global error handing
44
44
  app.use(onerror);
package/lib/config.js CHANGED
@@ -1,23 +1,21 @@
1
1
  require('dotenv').config();
2
2
  const randUserAgent = require('./utils/rand-user-agent');
3
+ const got = require('got');
3
4
  let envs = process.env;
4
5
  let value;
5
6
  const TRUE_UA = 'RSSHub/1.0 (+http://github.com/DIYgod/RSSHub; like FeedFetcher-Google)';
6
7
 
7
8
  const calculateValue = () => {
8
9
  const bilibili_cookies = {};
9
- const twitter_tokens = {};
10
10
  const email_config = {};
11
11
  const discuz_cookies = {};
12
12
  const medium_cookies = {};
13
+ const discourse_config = {};
13
14
 
14
15
  for (const name in envs) {
15
16
  if (name.startsWith('BILIBILI_COOKIE_')) {
16
17
  const uid = name.slice(16);
17
18
  bilibili_cookies[uid] = envs[name];
18
- } else if (name.startsWith('TWITTER_TOKEN_')) {
19
- const id = name.slice(14);
20
- twitter_tokens[id] = envs[name];
21
19
  } else if (name.startsWith('EMAIL_CONFIG_')) {
22
20
  const id = name.slice(13);
23
21
  email_config[id] = envs[name];
@@ -27,6 +25,9 @@ const calculateValue = () => {
27
25
  } else if (name.startsWith('MEDIUM_COOKIE_')) {
28
26
  const username = name.slice(14).toLowerCase();
29
27
  medium_cookies[username] = envs[name];
28
+ } else if (name.startsWith('DISCOURSE_CONFIG_')) {
29
+ const id = name.slice('DISCOURSE_CONFIG_'.length);
30
+ discourse_config[id] = JSON.parse(envs[name]);
30
31
  }
31
32
  }
32
33
 
@@ -81,8 +82,8 @@ const calculateValue = () => {
81
82
  pass: envs.HTTP_BASIC_AUTH_PASS || 'passw0rd',
82
83
  },
83
84
  // access control
84
- blacklist: envs.BLACKLIST && envs.BLACKLIST.split(','),
85
- whitelist: envs.WHITELIST && envs.WHITELIST.split(','),
85
+ denylist: envs.DENYLIST && envs.DENYLIST.split(','),
86
+ allowlist: envs.ALLOWLIST && envs.ALLOWLIST.split(','),
86
87
  allowLocalhost: envs.ALLOW_LOCALHOST,
87
88
  accessKey: envs.ACCESS_KEY,
88
89
  // logging
@@ -90,6 +91,7 @@ const calculateValue = () => {
90
91
  debugInfo: envs.DEBUG_INFO || 'true',
91
92
  loggerLevel: envs.LOGGER_LEVEL || 'info',
92
93
  noLogfiles: envs.NO_LOGFILES,
94
+ showLoggerTimestamp: envs.SHOW_LOGGER_TIMESTAMP,
93
95
  sentry: {
94
96
  dsn: envs.SENTRY,
95
97
  routeTimeout: parseInt(envs.SENTRY_ROUTE_TIMEOUT) || 30000,
@@ -107,6 +109,14 @@ const calculateValue = () => {
107
109
  },
108
110
  suffix: envs.SUFFIX,
109
111
  titleLengthLimit: parseInt(envs.TITLE_LENGTH_LIMIT) || 150,
112
+ openai: {
113
+ apiKey: envs.OPENAI_API_KEY,
114
+ model: envs.OPENAI_MODEL || 'gpt-3.5-turbo-16k',
115
+ temperature: envs.OPENAI_TEMPERATURE || 0.2,
116
+ maxTokens: envs.OPENAI_MAX_TOKENS || null,
117
+ endpoint: envs.OPENAI_API_ENDPOINT || 'https://api.openai.com/v1',
118
+ prompt: envs.OPENAI_PROMPT || 'Please summarize the following article and reply with markdown format.',
119
+ },
110
120
 
111
121
  // Route-specific Configurations
112
122
  bilibili: {
@@ -136,6 +146,9 @@ const calculateValue = () => {
136
146
  discord: {
137
147
  authorization: envs.DISCORD_AUTHORIZATION,
138
148
  },
149
+ discourse: {
150
+ config: discourse_config,
151
+ },
139
152
  discuz: {
140
153
  cookies: discuz_cookies,
141
154
  },
@@ -206,6 +219,9 @@ const calculateValue = () => {
206
219
  lastfm: {
207
220
  api_key: envs.LASTFM_API_KEY,
208
221
  },
222
+ lightnovel: {
223
+ cookie: envs.SECURITY_KEY,
224
+ },
209
225
  manhuagui: {
210
226
  cookie: envs.MHGUI_COOKIE,
211
227
  },
@@ -247,7 +263,7 @@ const calculateValue = () => {
247
263
  },
248
264
  pixiv: {
249
265
  refreshToken: envs.PIXIV_REFRESHTOKEN,
250
- bypassCdn: envs.PIXIV_BYPASS_CDN !== '0' && envs.PIXIV_BYPASS_CDN !== 'false',
266
+ bypassCdn: envs.PIXIV_BYPASS_CDN && envs.PIXIV_BYPASS_CDN !== '0' && envs.PIXIV_BYPASS_CDN !== 'false',
251
267
  bypassCdnHostname: envs.PIXIV_BYPASS_HOSTNAME || 'public-api.secure.pixiv.net',
252
268
  bypassCdnDoh: envs.PIXIV_BYPASS_DOH || 'https://1.1.1.1/dns-query',
253
269
  imgProxy: envs.PIXIV_IMG_PROXY || 'https://i.pixiv.re',
@@ -275,11 +291,12 @@ const calculateValue = () => {
275
291
  telegram: {
276
292
  token: envs.TELEGRAM_TOKEN,
277
293
  },
294
+ tophub: {
295
+ cookie: envs.TOPHUB_COOKIE,
296
+ },
278
297
  twitter: {
279
- consumer_key: envs.TWITTER_CONSUMER_KEY,
280
- consumer_secret: envs.TWITTER_CONSUMER_SECRET,
281
- tokens: twitter_tokens,
282
- authorization: envs.TWITTER_WEBAPI_AUTHORIZAION && envs.TWITTER_WEBAPI_AUTHORIZAION.split(','),
298
+ oauthTokens: envs.TWITTER_OAUTH_TOKEN?.split(','),
299
+ oauthTokenSecrets: envs.TWITTER_OAUTH_TOKEN_SECRET?.split(','),
283
300
  },
284
301
  weibo: {
285
302
  app_key: envs.WEIBO_APP_KEY,
@@ -316,6 +333,21 @@ const calculateValue = () => {
316
333
  };
317
334
  calculateValue();
318
335
 
336
+ if (envs.REMOTE_CONFIG) {
337
+ got.get(envs.REMOTE_CONFIG)
338
+ .then((response) => {
339
+ const data = JSON.parse(response.body);
340
+ if (data) {
341
+ envs = Object.assign(envs, data);
342
+ calculateValue();
343
+ require('@/utils/logger').info('Remote config loaded.');
344
+ }
345
+ })
346
+ .catch((error) => {
347
+ require('@/utils/logger').error('Remote config load failed.', error);
348
+ });
349
+ }
350
+
319
351
  module.exports = {
320
352
  set: (env) => {
321
353
  envs = Object.assign(process.env, env);
package/lib/index.js CHANGED
@@ -29,7 +29,7 @@ if (config.enableCluster && cluster.isMaster && process.env.NODE_ENV !== 'test'
29
29
  }
30
30
 
31
31
  logger.info('🎉 RSSHub start! Cheers!');
32
- logger.info('💖 Can you help keep this open source project alive? Please sponsor 👉 https://docs.rsshub.app/en/support');
32
+ logger.info('💖 Can you help keep this open source project alive? Please sponsor 👉 https://docs.rsshub.app/support');
33
33
 
34
34
  module.exports = server;
35
35
  }
package/lib/maintainer.js CHANGED
@@ -37,7 +37,7 @@ for (const dir in maintainerPath) {
37
37
  }
38
38
 
39
39
  for (const key in routes) {
40
- maintainers['/' + dir + key] = routes[key];
40
+ maintainers['/' + dir + (key.endsWith('/') ? key.substring(0, key.length - 1) : key)] = routes[key];
41
41
  }
42
42
  }
43
43
 
@@ -49,4 +49,9 @@ router.stack.forEach((e) => {
49
49
  }
50
50
  });
51
51
 
52
- module.exports = maintainers;
52
+ module.exports = Object.keys(maintainers)
53
+ .sort()
54
+ .reduce((obj, path) => {
55
+ obj[path] = maintainers[path];
56
+ return obj;
57
+ }, {});
@@ -15,7 +15,7 @@ module.exports = async (ctx, next) => {
15
15
  const accessKey = ctx.query.key;
16
16
  const accessCode = ctx.query.code;
17
17
 
18
- const isControlled = config.accessKey || config.whitelist || config.blacklist;
18
+ const isControlled = config.accessKey || config.allowlist || config.denylist;
19
19
 
20
20
  const allowLocalhost = config.allowLocalhost && (await isLocalhost(ip));
21
21
 
@@ -38,14 +38,14 @@ module.exports = async (ctx, next) => {
38
38
  }
39
39
  }
40
40
 
41
- if (config.whitelist) {
42
- if (config.whitelist.find((white) => ip.includes(white) || requestPath.includes(white) || requestUA.includes(white))) {
41
+ if (config.allowlist) {
42
+ if (config.allowlist.find((item) => ip.includes(item) || requestPath.includes(item) || requestUA.includes(item))) {
43
43
  return grant();
44
44
  }
45
45
  }
46
46
 
47
- if (config.blacklist) {
48
- if (!config.blacklist.find((black) => ip.includes(black) || requestPath.includes(black) || requestUA.includes(black))) {
47
+ if (config.denylist) {
48
+ if (!config.denylist.find((item) => ip.includes(item) || requestPath.includes(item) || requestUA.includes(item))) {
49
49
  return grant();
50
50
  }
51
51
  }
@@ -98,8 +98,8 @@ const validateTemplate = (template) => {
98
98
  module.exports = async (ctx, next) => {
99
99
  await next();
100
100
 
101
- let image_hotlink_template = undefined;
102
- let multimedia_hotlink_template = undefined;
101
+ let image_hotlink_template;
102
+ let multimedia_hotlink_template;
103
103
  const shouldWrapInIframe = ctx.query.wrap_multimedia_in_iframe === '1';
104
104
 
105
105
  // Read params if enabled
@@ -1,4 +1,4 @@
1
- const md5 = require('@/utils/md5');
1
+ const xxhash = require('xxhash-wasm');
2
2
  const config = require('@/config').value;
3
3
  const logger = require('@/utils/logger');
4
4
  const { RequestInProgressError } = require('@/errors');
@@ -81,8 +81,9 @@ module.exports = function (app) {
81
81
  };
82
82
 
83
83
  return async (ctx, next) => {
84
- const key = 'koa-redis-cache:' + md5(ctx.request.path);
85
- const controlKey = 'path-requested:' + md5(ctx.request.path);
84
+ const { h64ToString } = await xxhash();
85
+ const key = 'rsshub:koa-redis-cache:' + h64ToString(ctx.request.path);
86
+ const controlKey = 'rsshub:path-requested:' + h64ToString(ctx.request.path);
86
87
 
87
88
  if (!status.available) {
88
89
  return next();
@@ -19,10 +19,10 @@ redisClient.on('connect', () => {
19
19
  });
20
20
 
21
21
  const getCacheTtlKey = (key) => {
22
- if (key.startsWith('cacheTtl:')) {
23
- throw Error('"cacheTtl:" prefix is reserved for the internal usage, please change your cache key'); // blocking any attempt to get/set the cacheTtl
22
+ if (key.startsWith('rsshub:cacheTtl:')) {
23
+ throw Error('"rsshub:cacheTtl:" prefix is reserved for the internal usage, please change your cache key'); // blocking any attempt to get/set the cacheTtl
24
24
  }
25
- return `cacheTtl:${key}`;
25
+ return `rsshub:cacheTtl:${key}`;
26
26
  };
27
27
 
28
28
  module.exports = {
@@ -39,6 +39,14 @@ module.exports = async (ctx, next) => {
39
39
  });
40
40
  }
41
41
  } catch (err) {
42
+ if (err instanceof Error && !err.stack.split('\n')[1].includes('lib/middleware/parameter.js')) {
43
+ // Append v2 route path if a route throws an error
44
+ // since koa-mount will remove the mount path from ctx.request.path
45
+ // https://github.com/koajs/mount/issues/62
46
+ ctx.request.path = (ctx.mountPath ?? '') + ctx.request.path;
47
+ ctx._matchedRoute = ctx._matchedRoute ? (ctx.mountPath ?? '') + ctx._matchedRoute : ctx._matchedRoute;
48
+ }
49
+
42
50
  let message = err;
43
51
  if (err.name && (err.name === 'HTTPError' || err.name === 'RequestError')) {
44
52
  message = `${err.message}: target website might be blocking our access, you can <a href="https://docs.rsshub.app/install/">host your own RSSHub instance</a> for a better usability.`;
@@ -3,8 +3,11 @@ const cheerio = require('cheerio');
3
3
  const { simplecc } = require('simplecc-wasm');
4
4
  const got = require('@/utils/got');
5
5
  const config = require('@/config').value;
6
- const { RE2 } = require('re2-wasm');
7
- const { resolve } = require('path');
6
+ const { RE2JS } = require('re2js');
7
+ const md = require('markdown-it')({
8
+ html: true,
9
+ });
10
+ const htmlToText = require('html-to-text');
8
11
 
9
12
  let mercury_parser;
10
13
 
@@ -24,21 +27,30 @@ const resolveRelativeLink = ($, elem, attr, baseUrl) => {
24
27
  }
25
28
  };
26
29
 
30
+ const summarizeArticle = async (articleText) => {
31
+ const apiUrl = `${config.openai.endpoint}/chat/completions`;
32
+ const response = await got.post(apiUrl, {
33
+ json: {
34
+ model: config.openai.model,
35
+ max_tokens: config.openai.maxTokens,
36
+ messages: [
37
+ { role: 'system', content: config.openai.prompt },
38
+ { role: 'user', content: articleText },
39
+ ],
40
+ temperature: config.openai.temperature,
41
+ },
42
+ headers: {
43
+ Authorization: `Bearer ${config.openai.apiKey}`,
44
+ },
45
+ });
46
+
47
+ return response.data.choices[0].message.content;
48
+ };
49
+
27
50
  module.exports = async (ctx, next) => {
28
51
  await next();
29
52
 
30
53
  if (!ctx.state.data && !ctx._matchedRoute) {
31
- // Given that the official demo has a cache TTL of 2h, a "wrong path" page will be cached by CloudFlare for
32
- // 200h (8.33d).
33
- // What makes it worse is that the documentation contains status badges to detect the availability of routes,
34
- // but the documentation is updated more timely than the official demo, so the every example path of every
35
- // new route will probably have a "wrong path" page cached for at least 200h soon after accepted. That is to
36
- // say, the example paths of a new route will probably be unavailable on the public demo in the first 200h
37
- // after accepted.
38
- // As a conclusion, the next 3 lines has been commented out. (exactly the same behavior as any internal error)
39
- // ctx.set({
40
- // 'Cache-Control': `public, max-age=${config.cache.routeExpire * 100}`,
41
- // });
42
54
  throw Error('wrong path');
43
55
  }
44
56
 
@@ -148,53 +160,50 @@ module.exports = async (ctx, next) => {
148
160
  });
149
161
  }
150
162
  }
163
+
164
+ // handle category
165
+ if (item.category) {
166
+ // convert single string to array, and filter only string type category
167
+ Array.isArray(item.category) || (item.category = [item.category]);
168
+ item.category = item.category.filter((e) => typeof e === 'string');
169
+ }
151
170
  return item;
152
171
  };
153
172
 
154
173
  ctx.state.data.item = await Promise.all(ctx.state.data.item.map(handleItem));
155
174
 
156
175
  if (ctx.query) {
157
- // limit
158
- if (ctx.query.limit) {
159
- ctx.state.data.item = ctx.state.data.item.slice(0, parseInt(ctx.query.limit));
160
- }
161
-
162
176
  // filter
177
+ const engine = config.feature.filter_regex_engine;
163
178
  const makeRegex = (string) => {
179
+ if (!string) {
180
+ return null;
181
+ }
164
182
  // default: case_senstivie = true
165
- const engine = config.feature.filter_regex_engine;
166
- if (ctx.query.filter_case_sensitive === 'false') {
167
- switch (engine) {
168
- case 'regexp':
169
- return new RegExp(string, 'i');
170
- case 're2':
171
- return new RE2(string, 'iu');
172
- default:
173
- throw Error(`Invalid Engine Value: ${engine}, please check your config.`);
174
- }
175
- } else {
176
- switch (engine) {
177
- case 'regexp':
178
- return new RegExp(string);
179
- case 're2':
180
- return new RE2(string, 'u');
181
- default:
182
- throw Error(`Invalid Engine Value: ${engine}, please check your config.`);
183
- }
183
+ const insensitive = ctx.query.filter_case_sensitive === 'false';
184
+ switch (engine) {
185
+ case 'regexp':
186
+ return new RegExp(string, insensitive ? 'i' : '');
187
+ case 're2':
188
+ return RE2JS.compile(string, insensitive ? RE2JS.CASE_INSENSITIVE : 0);
189
+ default:
190
+ throw Error(`Invalid Engine Value: ${engine}, please check your config.`);
184
191
  }
185
192
  };
186
193
 
187
194
  if (ctx.query.filter) {
188
- // workaround for @vercel/nft removing wasm file
189
- resolve('node_modules/re2-wasm/build/wasm/re2.wasm');
195
+ const regex = makeRegex(ctx.query.filter);
190
196
 
191
197
  ctx.state.data.item = ctx.state.data.item.filter((item) => {
192
198
  const title = item.title || '';
193
199
  const description = item.description || title;
194
200
  const author = item.author || '';
195
- const category = item.category ? (Array.isArray(item.category) ? item.category : [item.category]) : [];
201
+ const category = item.category || [];
196
202
  const isFilter =
197
- title.match(makeRegex(ctx.query.filter)) || description.match(makeRegex(ctx.query.filter)) || author.match(makeRegex(ctx.query.filter)) || category.some((c) => c.match(makeRegex(ctx.query.filter)));
203
+ engine === 're2'
204
+ ? regex.matcher(title).find() || regex.matcher(description).find() || regex.matcher(author).find() || category.some((c) => regex.matcher(c).find())
205
+ : title.match(regex) || description.match(regex) || author.match(regex) || category.some((c) => c.match(regex));
206
+
198
207
  return isFilter;
199
208
  });
200
209
  }
@@ -205,12 +214,19 @@ module.exports = async (ctx, next) => {
205
214
  const title = item.title || '';
206
215
  const description = item.description || title;
207
216
  const author = item.author || '';
208
- const category = item.category ? (Array.isArray(item.category) ? item.category : [item.category]) : [];
217
+ const category = item.category || [];
209
218
  let isFilter = true;
210
- ctx.query.filter_title && (isFilter = title.match(makeRegex(ctx.query.filter_title)));
211
- ctx.query.filter_description && (isFilter = isFilter && description.match(makeRegex(ctx.query.filter_description)));
212
- ctx.query.filter_author && (isFilter = isFilter && author.match(makeRegex(ctx.query.filter_author)));
213
- ctx.query.filter_category && (isFilter = isFilter && category.some((c) => c.match(makeRegex(ctx.query.filter_category))));
219
+
220
+ const titleRegex = makeRegex(ctx.query.filter_title);
221
+ const descriptionRegex = makeRegex(ctx.query.filter_description);
222
+ const authorRegex = makeRegex(ctx.query.filter_author);
223
+ const categoryRegex = makeRegex(ctx.query.filter_category);
224
+
225
+ ctx.query.filter_title && (isFilter = engine === 're2' ? titleRegex.matcher(title).find() : title.match(titleRegex));
226
+ ctx.query.filter_description && (isFilter = isFilter && (engine === 're2' ? descriptionRegex.matcher(description).find() : description.match(descriptionRegex)));
227
+ ctx.query.filter_author && (isFilter = isFilter && (engine === 're2' ? authorRegex.matcher(author).find() : author.match(authorRegex)));
228
+ ctx.query.filter_category && (isFilter = isFilter && category.some((c) => (engine === 're2' ? categoryRegex.matcher(c).find() : c.match(categoryRegex))));
229
+
214
230
  return isFilter;
215
231
  });
216
232
  }
@@ -224,12 +240,19 @@ module.exports = async (ctx, next) => {
224
240
  const title = item.title;
225
241
  const description = item.description || title;
226
242
  const author = item.author || '';
227
- const category = item.category ? (Array.isArray(item.category) ? item.category : [item.category]) : [];
243
+ const category = item.category || [];
228
244
  let isFilter = true;
229
- ctx.query.filterout_title && (isFilter = !title.match(makeRegex(ctx.query.filterout_title)));
230
- ctx.query.filterout_description && (isFilter = isFilter && !description.match(makeRegex(ctx.query.filterout_description)));
231
- ctx.query.filterout_author && (isFilter = isFilter && !author.match(makeRegex(ctx.query.filterout_author)));
232
- ctx.query.filterout_category && (isFilter = isFilter && !category.some((c) => c.match(makeRegex(ctx.query.filterout_category))));
245
+
246
+ const titleRegex = makeRegex(ctx.query.filterout_title);
247
+ const descriptionRegex = makeRegex(ctx.query.filterout_description);
248
+ const authorRegex = makeRegex(ctx.query.filterout_author);
249
+ const categoryRegex = makeRegex(ctx.query.filterout_category);
250
+
251
+ ctx.query.filterout_title && (isFilter = engine === 're2' ? !titleRegex.matcher(title).find() : !title.match(titleRegex));
252
+ ctx.query.filterout_description && (isFilter = isFilter && (engine === 're2' ? !descriptionRegex.matcher(description).find() : !description.match(descriptionRegex)));
253
+ ctx.query.filterout_author && (isFilter = isFilter && (engine === 're2' ? !authorRegex.matcher(author).find() : !author.match(authorRegex)));
254
+ ctx.query.filterout_category && (isFilter = isFilter && !category.some((c) => (engine === 're2' ? categoryRegex.matcher(c).find() : c.match(categoryRegex))));
255
+
233
256
  return isFilter;
234
257
  });
235
258
  }
@@ -247,6 +270,11 @@ module.exports = async (ctx, next) => {
247
270
  });
248
271
  }
249
272
 
273
+ // limit
274
+ if (ctx.query.limit) {
275
+ ctx.state.data.item = ctx.state.data.item.slice(0, parseInt(ctx.query.limit));
276
+ }
277
+
250
278
  // telegram instant view
251
279
  if (ctx.query.tgiv) {
252
280
  ctx.state.data.item.map((item) => {
@@ -282,6 +310,33 @@ module.exports = async (ctx, next) => {
282
310
  await Promise.all(tasks);
283
311
  }
284
312
 
313
+ // openai
314
+ if (ctx.query.chatgpt && config.openai.apiKey) {
315
+ ctx.state.data.item = await Promise.all(
316
+ ctx.state.data.item.map(async (item) => {
317
+ if (item.description) {
318
+ try {
319
+ const summary = await ctx.cache.tryGet(`openai:${item.link}`, async () => {
320
+ const text = htmlToText.htmlToText(item.description);
321
+ if (text.length < 300) {
322
+ return '';
323
+ }
324
+ const summary_md = await summarizeArticle(text);
325
+ return md.render(summary_md);
326
+ });
327
+ // 将总结结果添加到文章数据中
328
+ if (summary !== '') {
329
+ item.description = summary + '<hr/><br/>' + item.description;
330
+ }
331
+ } catch (e) {
332
+ // when openai failed, return default description and not write cache
333
+ }
334
+ }
335
+ return item;
336
+ })
337
+ );
338
+ }
339
+
285
340
  // scihub
286
341
  if (ctx.query.scihub) {
287
342
  ctx.state.data.item.map((item) => {
@@ -308,7 +363,7 @@ module.exports = async (ctx, next) => {
308
363
  if (item.description) {
309
364
  text = item.description.replace(/<\/?[^>]+(>|$)/g, '');
310
365
  }
311
- if (text && text.length) {
366
+ if (text?.length) {
312
367
  if (text.length > ctx.query.brief) {
313
368
  item.description = `<p>${text.substring(0, ctx.query.brief)}…</p>`;
314
369
  } else {