rsshub 1.0.0-master.cf04b7e → 1.0.0-master.cf1c302

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 (490) hide show
  1. package/lib/config.js +18 -3
  2. package/lib/middleware/parameter.js +7 -7
  3. package/lib/radar-rules.js +53 -188
  4. package/lib/router.js +68 -70
  5. package/lib/routes/v2ex/topics.js +4 -8
  6. package/lib/utils/parse-date.js +4 -4
  7. package/lib/utils/puppeteer.js +11 -0
  8. package/lib/utils/request-wrapper.js +8 -2
  9. package/lib/utils/wechat-mp.js +1 -0
  10. package/lib/v2/35photo/genre.js +2 -1
  11. package/lib/v2/35photo/utils.js +19 -4
  12. package/lib/v2/8world/index.js +8 -8
  13. package/lib/v2/8world/maintainer.js +1 -0
  14. package/lib/v2/8world/radar.js +6 -0
  15. package/lib/v2/8world/router.js +1 -1
  16. package/lib/v2/aliyundrive/files.js +63 -0
  17. package/lib/v2/aliyundrive/maintainer.js +3 -0
  18. package/lib/v2/aliyundrive/radar.js +13 -0
  19. package/lib/v2/aliyundrive/router.js +3 -0
  20. package/lib/v2/aljazeera/index.js +87 -0
  21. package/lib/v2/aljazeera/maintainer.js +5 -0
  22. package/lib/v2/aljazeera/radar.js +62 -0
  23. package/lib/v2/aljazeera/router.js +3 -0
  24. package/lib/v2/aljazeera/templates/description.art +8 -0
  25. package/lib/v2/anquanke/category.js +39 -0
  26. package/lib/v2/anquanke/maintainer.js +4 -0
  27. package/lib/v2/anquanke/radar.js +13 -0
  28. package/lib/v2/anquanke/router.js +4 -0
  29. package/lib/{routes/aqk → v2/anquanke}/vul.js +3 -2
  30. package/lib/v2/apnews/topics.js +20 -18
  31. package/lib/v2/asus/bios.js +1 -0
  32. package/lib/v2/baidu/gushitong/index.js +28 -0
  33. package/lib/v2/baidu/maintainer.js +1 -0
  34. package/lib/v2/baidu/radar.js +9 -1
  35. package/lib/v2/baidu/router.js +1 -0
  36. package/lib/v2/baidu/templates/gushitong.art +9 -0
  37. package/lib/v2/baidu/tieba/forum.js +1 -1
  38. package/lib/v2/bangumi/maintainer.js +14 -2
  39. package/lib/v2/bangumi/{index.js → moe/index.js} +2 -2
  40. package/lib/v2/bangumi/{online.js → online/online.js} +1 -1
  41. package/lib/v2/bangumi/radar.js +64 -2
  42. package/lib/v2/bangumi/router.js +12 -2
  43. package/lib/v2/bangumi/templates/{image.art → online/image.art} +0 -0
  44. package/lib/v2/bangumi/templates/tv/ep.art +2 -0
  45. package/lib/v2/bangumi/templates/tv/today.art +12 -0
  46. package/lib/v2/bangumi/tv/calendar/_base.js +37 -0
  47. package/lib/{routes/bangumi → v2/bangumi/tv}/calendar/today.js +15 -27
  48. package/lib/{routes/bangumi → v2/bangumi/tv}/group/reply.js +24 -13
  49. package/lib/v2/bangumi/tv/group/topic.js +26 -0
  50. package/lib/{routes/bangumi → v2/bangumi/tv}/person/index.js +14 -10
  51. package/lib/{routes/bangumi → v2/bangumi/tv}/subject/comments.js +12 -14
  52. package/lib/v2/bangumi/tv/subject/ep.js +31 -0
  53. package/lib/{routes/bangumi → v2/bangumi/tv}/subject/index.js +1 -2
  54. package/lib/{routes/bangumi → v2/bangumi/tv}/subject/offcial-subject-api.js +7 -5
  55. package/lib/{routes/bangumi → v2/bangumi/tv}/user/blog.js +7 -6
  56. package/lib/v2/bilibili/cache.js +65 -70
  57. package/lib/v2/bilibili/dynamic.js +5 -2
  58. package/lib/v2/bilibili/maintainer.js +2 -2
  59. package/lib/v2/bilibili/radar.js +18 -9
  60. package/lib/v2/bilibili/router.js +2 -2
  61. package/lib/v2/bilibili/userChannel.js +31 -35
  62. package/lib/v2/bilibili/userCollection.js +52 -0
  63. package/lib/v2/bilibili/video-all.js +26 -8
  64. package/lib/v2/bilibili/video.js +9 -3
  65. package/lib/v2/bilibili/vsearch.js +29 -9
  66. package/lib/v2/bluestacks/maintainer.js +3 -0
  67. package/lib/v2/bluestacks/radar.js +13 -0
  68. package/lib/v2/bluestacks/release.js +63 -0
  69. package/lib/v2/bluestacks/router.js +3 -0
  70. package/lib/v2/cnbc/maintainer.js +3 -0
  71. package/lib/v2/cnbc/radar.js +21 -0
  72. package/lib/v2/cnbc/router.js +3 -0
  73. package/lib/v2/cnbc/rss.js +54 -0
  74. package/lib/{routes → v2}/coolapk/dyh.js +2 -6
  75. package/lib/{routes → v2}/coolapk/hot.js +1 -3
  76. package/lib/{routes → v2}/coolapk/huati.js +1 -3
  77. package/lib/v2/coolapk/maintainer.js +9 -0
  78. package/lib/v2/coolapk/radar.js +31 -0
  79. package/lib/v2/coolapk/router.js +9 -0
  80. package/lib/{routes → v2}/coolapk/toutiao.js +1 -3
  81. package/lib/{routes → v2}/coolapk/tuwen.js +2 -4
  82. package/lib/{routes → v2}/coolapk/userDynamic.js +1 -3
  83. package/lib/{routes → v2}/coolapk/utils.js +7 -9
  84. package/lib/v2/cqwu/index.js +1 -1
  85. package/lib/v2/creative-comic/book.js +60 -0
  86. package/lib/v2/creative-comic/maintainer.js +3 -0
  87. package/lib/v2/creative-comic/radar.js +13 -0
  88. package/lib/v2/creative-comic/router.js +3 -0
  89. package/lib/v2/creative-comic/templates/chapter.art +11 -0
  90. package/lib/v2/creative-comic/utils.js +96 -0
  91. package/lib/v2/cuc/maintainer.js +3 -0
  92. package/lib/v2/cuc/radar.js +13 -0
  93. package/lib/v2/cuc/router.js +3 -0
  94. package/lib/{routes/universities → v2}/cuc/yz.js +2 -4
  95. package/lib/v2/cw/maintainer.js +5 -0
  96. package/lib/v2/cw/master.js +31 -0
  97. package/lib/v2/cw/radar.js +25 -0
  98. package/lib/v2/cw/router.js +5 -0
  99. package/lib/v2/cw/sub.js +31 -0
  100. package/lib/v2/cw/today.js +27 -0
  101. package/lib/v2/cw/utils.js +75 -0
  102. package/lib/v2/dcard/maintainer.js +4 -0
  103. package/lib/v2/dcard/radar.js +31 -0
  104. package/lib/v2/dcard/router.js +3 -0
  105. package/lib/v2/dcard/section.js +66 -0
  106. package/lib/v2/dcard/utils.js +50 -0
  107. package/lib/{routes → v2}/dedao/index.js +11 -8
  108. package/lib/v2/dedao/knowledge.js +64 -0
  109. package/lib/{routes → v2}/dedao/list.js +16 -10
  110. package/lib/v2/dedao/maintainer.js +8 -0
  111. package/lib/v2/dedao/radar.js +50 -0
  112. package/lib/v2/dedao/router.js +6 -0
  113. package/lib/v2/dedao/templates/knowledge.art +29 -0
  114. package/lib/v2/dedao/templates/user.art +38 -0
  115. package/lib/v2/dedao/user.js +79 -0
  116. package/lib/v2/deepmind/blog.js +32 -0
  117. package/lib/v2/deepmind/maintainer.js +3 -0
  118. package/lib/v2/deepmind/radar.js +13 -0
  119. package/lib/v2/deepmind/router.js +3 -0
  120. package/lib/v2/docschina/jsweekly.js +114 -0
  121. package/lib/v2/docschina/maintainer.js +3 -0
  122. package/lib/v2/docschina/radar.js +13 -0
  123. package/lib/v2/docschina/router.js +3 -0
  124. package/lib/v2/domp4/detail.js +7 -3
  125. package/lib/v2/domp4/utils.js +14 -0
  126. package/lib/v2/dongqiudi/player_news.js +2 -3
  127. package/lib/v2/dongqiudi/result.js +1 -1
  128. package/lib/v2/dongqiudi/router.js +1 -1
  129. package/lib/v2/dongqiudi/special.js +21 -27
  130. package/lib/v2/dongqiudi/team_news.js +2 -3
  131. package/lib/v2/dongqiudi/top_news.js +18 -24
  132. package/lib/v2/dongqiudi/utils.js +36 -36
  133. package/lib/v2/douban/other/weekly_best.js +5 -3
  134. package/lib/v2/economist/full.js +1 -1
  135. package/lib/v2/fantia/maintainer.js +4 -0
  136. package/lib/v2/fantia/radar.js +13 -0
  137. package/lib/v2/fantia/router.js +4 -0
  138. package/lib/{routes → v2}/fantia/search.js +8 -3
  139. package/lib/{routes → v2}/fantia/user.js +10 -5
  140. package/lib/v2/fastbull/express-news.js +33 -0
  141. package/lib/v2/fastbull/maintainer.js +5 -0
  142. package/lib/v2/fastbull/news.js +57 -0
  143. package/lib/v2/fastbull/radar.js +19 -0
  144. package/lib/v2/fastbull/router.js +5 -0
  145. package/lib/v2/fastbull/templates/description.art +7 -0
  146. package/lib/v2/{techflow520 → finviz}/maintainer.js +1 -1
  147. package/lib/v2/finviz/news.js +45 -0
  148. package/lib/{routes/finviz/news.js → v2/finviz/quote.js} +5 -5
  149. package/lib/v2/finviz/radar.js +19 -0
  150. package/lib/v2/finviz/router.js +4 -0
  151. package/lib/v2/gamme/category.js +46 -0
  152. package/lib/v2/gamme/maintainer.js +6 -0
  153. package/lib/v2/gamme/radar.js +33 -0
  154. package/lib/v2/gamme/router.js +4 -0
  155. package/lib/v2/gamme/tag.js +57 -0
  156. package/lib/v2/gelonghui/home.js +31 -0
  157. package/lib/v2/gelonghui/keyword.js +34 -0
  158. package/lib/v2/gelonghui/maintainer.js +6 -0
  159. package/lib/v2/gelonghui/radar.js +31 -0
  160. package/lib/v2/gelonghui/router.js +6 -0
  161. package/lib/v2/gelonghui/subject.js +36 -0
  162. package/lib/v2/gelonghui/user.js +33 -0
  163. package/lib/v2/gelonghui/utils.js +21 -0
  164. package/lib/v2/gihyo/group.js +48 -0
  165. package/lib/v2/gihyo/maintainer.js +3 -0
  166. package/lib/v2/gihyo/radar.js +13 -0
  167. package/lib/v2/gihyo/router.js +3 -0
  168. package/lib/v2/github/pulls.js +7 -8
  169. package/lib/v2/github/router.js +1 -1
  170. package/lib/v2/github/topic.js +1 -1
  171. package/lib/v2/good/index.js +52 -0
  172. package/lib/v2/good/maintainer.js +3 -0
  173. package/lib/v2/good/radar.js +13 -0
  174. package/lib/v2/good/router.js +3 -0
  175. package/lib/v2/gov/beijing/bphc/index.js +54 -0
  176. package/lib/v2/gov/ccdi/index.js +18 -0
  177. package/lib/v2/gov/ccdi/utils.js +94 -0
  178. package/lib/v2/gov/maintainer.js +8 -3
  179. package/lib/v2/gov/nopss/index.js +57 -0
  180. package/lib/v2/gov/radar.js +52 -0
  181. package/lib/v2/gov/router.js +8 -3
  182. package/lib/{routes → v2}/gov/shenzhen/xxgk/zfxxgj.js +21 -15
  183. package/lib/v2/gov/stats/index.js +19 -0
  184. package/lib/v2/gov/stats/templates/attachments.art +5 -0
  185. package/lib/v2/gov/stats/utils.js +73 -0
  186. package/lib/v2/hackernews/index.js +10 -7
  187. package/lib/v2/hellogithub/index.js +102 -0
  188. package/lib/v2/hellogithub/maintainer.js +7 -3
  189. package/lib/v2/hellogithub/radar.js +35 -11
  190. package/lib/v2/hellogithub/report.js +56 -0
  191. package/lib/v2/hellogithub/router.js +6 -3
  192. package/lib/v2/hellogithub/templates/description.art +99 -0
  193. package/lib/v2/hellogithub/templates/report.art +118 -0
  194. package/lib/v2/hellogithub/templates/volume.art +36 -0
  195. package/lib/v2/hellogithub/volume.js +66 -0
  196. package/lib/v2/hit/hitgs.js +46 -0
  197. package/lib/v2/hit/jwc.js +60 -0
  198. package/lib/v2/hit/maintainer.js +5 -0
  199. package/lib/v2/hit/radar.js +29 -0
  200. package/lib/v2/hit/router.js +6 -0
  201. package/lib/v2/hit/today.js +59 -0
  202. package/lib/v2/hitwh/maintainer.js +3 -0
  203. package/lib/v2/hitwh/radar.js +13 -0
  204. package/lib/v2/hitwh/router.js +3 -0
  205. package/lib/v2/hitwh/today.js +52 -0
  206. package/lib/v2/hjedd/utils.js +2 -2
  207. package/lib/v2/huanqiu/index.js +5 -3
  208. package/lib/v2/hupu/all.js +8 -8
  209. package/lib/v2/hupu/bbs.js +22 -1
  210. package/lib/v2/hupu/templates/description.art +11 -0
  211. package/lib/v2/hupu/templates/match.art +22 -0
  212. package/lib/v2/ifeng/maintainer.js +1 -0
  213. package/lib/v2/ifeng/news.js +54 -0
  214. package/lib/v2/ifeng/radar.js +7 -0
  215. package/lib/v2/ifeng/router.js +1 -0
  216. package/lib/v2/ifeng/templates/description.art +16 -0
  217. package/lib/v2/indiansinkuwait/latest.js +43 -0
  218. package/lib/v2/indiansinkuwait/maintainer.js +3 -0
  219. package/lib/v2/indiansinkuwait/radar.js +13 -0
  220. package/lib/v2/indiansinkuwait/router.js +3 -0
  221. package/lib/v2/ithome/maintainer.js +1 -0
  222. package/lib/v2/ithome/radar.js +11 -0
  223. package/lib/v2/ithome/router.js +1 -0
  224. package/lib/v2/ithome/tw/feeds.js +38 -0
  225. package/lib/v2/iwara/subscriptions.js +1 -1
  226. package/lib/v2/jandan/index.js +17 -51
  227. package/lib/v2/jandan/maintainer.js +1 -1
  228. package/lib/v2/jandan/section.js +0 -1
  229. package/lib/v2/jiemian/list.js +2 -2
  230. package/lib/v2/kuwaitlocal/index.js +47 -0
  231. package/lib/v2/kuwaitlocal/maintainer.js +4 -0
  232. package/lib/v2/kuwaitlocal/radar.js +19 -0
  233. package/lib/v2/kuwaitlocal/router.js +3 -0
  234. package/lib/{routes → v2}/linkresearcher/index.js +16 -13
  235. package/lib/v2/linkresearcher/maintainer.js +3 -0
  236. package/lib/v2/linkresearcher/radar.js +19 -0
  237. package/lib/v2/linkresearcher/router.js +3 -0
  238. package/lib/v2/linovelib/maintainer.js +3 -0
  239. package/lib/v2/linovelib/novel.js +33 -0
  240. package/lib/v2/linovelib/radar.js +13 -0
  241. package/lib/v2/linovelib/router.js +3 -0
  242. package/lib/v2/lxixsxa/discography.js +54 -0
  243. package/lib/v2/lxixsxa/information.js +48 -0
  244. package/lib/v2/lxixsxa/jsonpHelper.js +19 -0
  245. package/lib/v2/lxixsxa/maintainer.js +4 -0
  246. package/lib/v2/lxixsxa/radar.js +36 -0
  247. package/lib/v2/lxixsxa/router.js +4 -0
  248. package/lib/v2/lxixsxa/templates/disco.art +5 -0
  249. package/lib/v2/lxixsxa/templates/info.art +4 -0
  250. package/lib/{routes → v2}/manhuagui/comic.js +27 -12
  251. package/lib/v2/manhuagui/maintainer.js +6 -0
  252. package/lib/v2/manhuagui/radar.js +33 -0
  253. package/lib/v2/manhuagui/router.js +5 -0
  254. package/lib/v2/manhuagui/subscribe.js +54 -0
  255. package/lib/v2/manhuagui/templates/manga.art +2 -0
  256. package/lib/v2/mckinsey/cn/categoryMap.js +79 -0
  257. package/lib/v2/mckinsey/cn/index.js +37 -0
  258. package/lib/v2/mckinsey/radar.js +14 -0
  259. package/lib/v2/mckinsey/router.js +3 -0
  260. package/lib/v2/meituclub/latest.js +41 -0
  261. package/lib/v2/meituclub/maintainer.js +3 -0
  262. package/lib/v2/meituclub/radar.js +13 -0
  263. package/lib/v2/meituclub/router.js +3 -0
  264. package/lib/v2/meituclub/templates/description.art +1 -0
  265. package/lib/v2/mirror/index.js +3 -6
  266. package/lib/v2/nextapple/realtime.js +27 -27
  267. package/lib/v2/nga/post.js +5 -2
  268. package/lib/v2/nga/radar.js +31 -48
  269. package/lib/v2/nikkei-asia/index.js +1 -1
  270. package/lib/v2/nju/exchangesys.js +46 -0
  271. package/lib/v2/nju/jw.js +43 -29
  272. package/lib/v2/nju/maintainer.js +2 -1
  273. package/lib/v2/nju/radar.js +32 -9
  274. package/lib/v2/nju/router.js +1 -0
  275. package/lib/v2/nua/dc.js +14 -4
  276. package/lib/v2/nua/gra.js +1 -1
  277. package/lib/v2/nua/index.js +1 -1
  278. package/lib/v2/nua/sxw.js +1 -1
  279. package/lib/v2/nua/utils.js +41 -21
  280. package/lib/v2/picuki/profile.js +14 -2
  281. package/lib/v2/picuki/templates/video.art +3 -0
  282. package/lib/v2/producthunt/today.js +8 -5
  283. package/lib/v2/qianzhan/column.js +50 -0
  284. package/lib/v2/qianzhan/maintainer.js +4 -0
  285. package/lib/v2/qianzhan/radar.js +26 -0
  286. package/lib/v2/qianzhan/rank.js +40 -0
  287. package/lib/v2/qianzhan/router.js +4 -0
  288. package/lib/v2/qidian/chapter.js +6 -7
  289. package/lib/v2/qipamaijia/index.js +7 -1
  290. package/lib/v2/qipamaijia/maintainer.js +1 -1
  291. package/lib/v2/qweather/now.js +1 -2
  292. package/lib/v2/radio/album.js +106 -0
  293. package/lib/v2/radio/index.js +25 -18
  294. package/lib/v2/radio/maintainer.js +2 -0
  295. package/lib/v2/radio/radar.js +15 -3
  296. package/lib/v2/radio/router.js +2 -0
  297. package/lib/v2/radio/templates/description.art +7 -4
  298. package/lib/v2/radio/zhibo.js +73 -0
  299. package/lib/v2/rarehistoricalphotos/index.js +28 -0
  300. package/lib/v2/rarehistoricalphotos/maintainer.js +3 -0
  301. package/lib/v2/rarehistoricalphotos/radar.js +13 -0
  302. package/lib/v2/rarehistoricalphotos/router.js +3 -0
  303. package/lib/v2/ruancan/index.js +13 -8
  304. package/lib/v2/saraba1st/maintainer.js +3 -0
  305. package/lib/v2/saraba1st/radar.js +16 -0
  306. package/lib/v2/saraba1st/router.js +3 -0
  307. package/lib/v2/saraba1st/thread.js +63 -0
  308. package/lib/v2/science/cover.js +69 -0
  309. package/lib/v2/science/current.js +41 -0
  310. package/lib/v2/science/early.js +33 -0
  311. package/lib/v2/science/maintainer.js +5 -0
  312. package/lib/v2/science/radar.js +25 -0
  313. package/lib/v2/science/router.js +5 -0
  314. package/lib/v2/science/templates/article.art +2 -0
  315. package/lib/v2/science/templates/cover.art +2 -0
  316. package/lib/v2/science/utils.js +64 -0
  317. package/lib/{routes → v2}/secrss/author.js +4 -2
  318. package/lib/{routes → v2}/secrss/category.js +8 -7
  319. package/lib/v2/secrss/maintainer.js +4 -0
  320. package/lib/v2/secrss/radar.js +19 -0
  321. package/lib/v2/secrss/router.js +4 -0
  322. package/lib/v2/sputniknews/index.js +2 -1
  323. package/lib/v2/sse/convert.js +39 -0
  324. package/lib/v2/sse/disclosure.js +46 -0
  325. package/lib/v2/sse/inquire.js +45 -0
  326. package/lib/v2/sse/lawandrules.js +43 -0
  327. package/lib/v2/sse/maintainer.js +7 -0
  328. package/lib/v2/sse/radar.js +41 -0
  329. package/lib/v2/sse/renewal.js +57 -0
  330. package/lib/v2/sse/router.js +7 -0
  331. package/lib/v2/sse/templates/inquire.art +7 -0
  332. package/lib/v2/sse/templates/renewal.art +13 -0
  333. package/lib/v2/swpu/cjxy.js +53 -0
  334. package/lib/v2/swpu/is.js +53 -0
  335. package/lib/v2/swpu/maintainer.js +2 -0
  336. package/lib/v2/swpu/radar.js +12 -0
  337. package/lib/v2/swpu/router.js +2 -0
  338. package/lib/v2/techflowpost/express.js +33 -0
  339. package/lib/v2/techflowpost/index.js +30 -0
  340. package/lib/v2/techflowpost/maintainer.js +4 -0
  341. package/lib/v2/{techflow520 → techflowpost}/radar.js +6 -6
  342. package/lib/v2/techflowpost/router.js +5 -0
  343. package/lib/v2/tesla/price/get-price.js +25 -0
  344. package/lib/v2/tesla/price/index.js +41 -0
  345. package/lib/v2/tesla/price/maintainer.js +3 -0
  346. package/lib/v2/tesla/price/radar.js +13 -0
  347. package/lib/v2/tesla/router.js +3 -0
  348. package/lib/v2/theinitium/full.js +169 -0
  349. package/lib/v2/theinitium/maintainer.js +6 -0
  350. package/lib/v2/theinitium/radar.js +25 -0
  351. package/lib/v2/theinitium/router.js +3 -0
  352. package/lib/v2/thepaper/channel.js +11 -6
  353. package/lib/v2/thepaper/featured.js +9 -5
  354. package/lib/v2/thepaper/list.js +12 -6
  355. package/lib/v2/thepaper/maintainer.js +3 -3
  356. package/lib/v2/thepaper/radar.js +2 -2
  357. package/lib/v2/thepaper/templates/image_detail.art +6 -0
  358. package/lib/v2/thepaper/templates/video_detail.art +13 -0
  359. package/lib/v2/thepaper/utils.js +76 -43
  360. package/lib/v2/theverge/index.js +90 -0
  361. package/lib/v2/theverge/maintainer.js +3 -0
  362. package/lib/v2/theverge/radar.js +13 -0
  363. package/lib/v2/theverge/router.js +3 -0
  364. package/lib/v2/thwiki/index.js +32 -0
  365. package/lib/v2/thwiki/maintainer.js +3 -0
  366. package/lib/v2/thwiki/radar.js +13 -0
  367. package/lib/v2/thwiki/router.js +3 -0
  368. package/lib/v2/tiktok/user.js +1 -1
  369. package/lib/v2/twitter/web-api/twitter-got.js +2 -2
  370. package/lib/v2/udn/global/index.js +67 -0
  371. package/lib/v2/udn/global/tag.js +51 -0
  372. package/lib/v2/udn/maintainer.js +2 -0
  373. package/lib/v2/udn/radar.js +15 -1
  374. package/lib/v2/udn/router.js +2 -0
  375. package/lib/v2/unusualwhales/maintainer.js +3 -0
  376. package/lib/v2/unusualwhales/news.js +24 -0
  377. package/lib/v2/unusualwhales/radar.js +13 -0
  378. package/lib/v2/unusualwhales/router.js +3 -0
  379. package/lib/v2/wallstreetcn/live.js +7 -1
  380. package/lib/v2/wallstreetcn/news.js +8 -6
  381. package/lib/v2/wallstreetcn/templates/description.art +11 -0
  382. package/lib/v2/web3caff/index.js +63 -0
  383. package/lib/v2/web3caff/maintainer.js +3 -0
  384. package/lib/v2/web3caff/radar.js +13 -0
  385. package/lib/v2/web3caff/router.js +3 -0
  386. package/lib/v2/wise/maintainer.js +3 -0
  387. package/lib/v2/wise/pair.js +65 -0
  388. package/lib/v2/wise/radar.js +11 -0
  389. package/lib/v2/wise/router.js +3 -0
  390. package/lib/v2/wise/templates/description.art +17 -0
  391. package/lib/v2/worldjournal/index.js +60 -0
  392. package/lib/v2/worldjournal/maintainer.js +3 -0
  393. package/lib/v2/worldjournal/radar.js +13 -0
  394. package/lib/v2/worldjournal/router.js +3 -0
  395. package/lib/v2/xueqiu/maintainer.js +1 -0
  396. package/lib/v2/xueqiu/radar.js +6 -0
  397. package/lib/v2/xueqiu/router.js +1 -0
  398. package/lib/v2/xueqiu/today.js +65 -0
  399. package/lib/v2/xwlb/index.js +40 -0
  400. package/lib/v2/xwlb/maintainer.js +4 -0
  401. package/lib/v2/xwlb/radar.js +13 -0
  402. package/lib/v2/xwlb/router.js +4 -0
  403. package/lib/v2/yoasobi-music/info.js +68 -0
  404. package/lib/v2/yoasobi-music/jsonpHelper.js +19 -0
  405. package/lib/v2/yoasobi-music/live.js +52 -0
  406. package/lib/v2/yoasobi-music/maintainer.js +5 -0
  407. package/lib/v2/yoasobi-music/media.js +59 -0
  408. package/lib/v2/yoasobi-music/radar.js +31 -0
  409. package/lib/v2/yoasobi-music/router.js +5 -0
  410. package/lib/v2/yoasobi-music/templates/info.art +7 -0
  411. package/lib/v2/yoasobi-music/templates/live.art +12 -0
  412. package/lib/v2/yoasobi-music/templates/media.art +2 -0
  413. package/lib/v2/yxdown/maintainer.js +4 -0
  414. package/lib/{routes → v2}/yxdown/news.js +11 -8
  415. package/lib/v2/yxdown/radar.js +19 -0
  416. package/lib/{routes → v2}/yxdown/recommend.js +11 -8
  417. package/lib/v2/yxdown/router.js +4 -0
  418. package/lib/v2/yxdown/utils.js +17 -0
  419. package/lib/{routes → v2}/zcool/discover.js +29 -17
  420. package/lib/{routes → v2}/zcool/locations.js +0 -0
  421. package/lib/v2/zcool/maintainer.js +7 -0
  422. package/lib/v2/zcool/radar.js +55 -0
  423. package/lib/v2/zcool/router.js +5 -0
  424. package/lib/v2/zcool/templates/description.art +8 -0
  425. package/lib/v2/zcool/templates/work.art +11 -0
  426. package/lib/v2/zcool/top.js +51 -0
  427. package/lib/v2/zcool/user.js +48 -0
  428. package/lib/v2/zcool/utils.js +14 -0
  429. package/lib/v2/zhihu/activities.js +5 -9
  430. package/lib/v2/zhihu/execlib/x-zse-96_v3.js +122 -0
  431. package/lib/v2/zhihu/utils.js +10 -1
  432. package/lib/v2/zhitongcaijing/index.js +118 -0
  433. package/lib/v2/zhitongcaijing/maintainer.js +3 -0
  434. package/lib/v2/zhitongcaijing/radar.js +17 -0
  435. package/lib/v2/zhitongcaijing/router.js +3 -0
  436. package/lib/v2/zhitongcaijing/templates/description.art +6 -0
  437. package/lib/v2/zju/grs/index.js +11 -10
  438. package/lib/v2/zju/radar.js +5 -5
  439. package/lib/v2/zodgame/forum.js +54 -0
  440. package/lib/v2/zodgame/maintainer.js +3 -0
  441. package/lib/v2/zodgame/radar.js +18 -0
  442. package/lib/v2/zodgame/router.js +3 -0
  443. package/lib/v2/zodgame/templates/forum.art +1 -0
  444. package/package.json +30 -20
  445. package/lib/routes/aljazeera/news.js +0 -38
  446. package/lib/routes/aqk/category.js +0 -22
  447. package/lib/routes/bangumi/calendar/_base.js +0 -43
  448. package/lib/routes/bangumi/group/topic.js +0 -26
  449. package/lib/routes/bangumi/subject/ep.js +0 -26
  450. package/lib/routes/ccdi/scdc.js +0 -51
  451. package/lib/routes/dcard/section.js +0 -47
  452. package/lib/routes/dcard/utils.js +0 -54
  453. package/lib/routes/dedao/knowledge.js +0 -78
  454. package/lib/routes/deepmind/blog.js +0 -43
  455. package/lib/routes/docschina/jsweekly.js +0 -47
  456. package/lib/routes/gelonghui/keyword.js +0 -36
  457. package/lib/routes/gelonghui/subject.js +0 -42
  458. package/lib/routes/gelonghui/user.js +0 -46
  459. package/lib/routes/initium/full.js +0 -188
  460. package/lib/routes/kuaibao/index.js +0 -33
  461. package/lib/routes/mckinsey/index.js +0 -49
  462. package/lib/routes/mhgui/comic.js +0 -99
  463. package/lib/routes/saraba1st/thread.js +0 -45
  464. package/lib/routes/sciencemag/cover.js +0 -56
  465. package/lib/routes/sciencemag/current.js +0 -123
  466. package/lib/routes/sciencemag/early.js +0 -97
  467. package/lib/routes/sse/convert.js +0 -32
  468. package/lib/routes/sse/disclosure.js +0 -34
  469. package/lib/routes/sse/inquire.js +0 -31
  470. package/lib/routes/sse/renewal.js +0 -61
  471. package/lib/routes/sse/sserules.js +0 -49
  472. package/lib/routes/transferwise/pair.js +0 -64
  473. package/lib/routes/twmanhuagui/comic.js +0 -99
  474. package/lib/routes/udn/global.js +0 -61
  475. package/lib/routes/universities/hit/jwc.js +0 -53
  476. package/lib/routes/universities/hit/today.js +0 -85
  477. package/lib/routes/universities/hitwh/today.js +0 -46
  478. package/lib/routes/verge/index.js +0 -88
  479. package/lib/routes/xwlb/index.js +0 -40
  480. package/lib/routes/zcool/top.js +0 -75
  481. package/lib/routes/zcool/user.js +0 -58
  482. package/lib/v2/bilibili/collection.js +0 -34
  483. package/lib/v2/dongqiudi/daily.js +0 -47
  484. package/lib/v2/hellogithub/article.js +0 -47
  485. package/lib/v2/hellogithub/month.js +0 -42
  486. package/lib/v2/hellogithub/ranking.js +0 -39
  487. package/lib/v2/radio/radio.js +0 -50
  488. package/lib/v2/techflow520/index.js +0 -34
  489. package/lib/v2/techflow520/newsflash.js +0 -32
  490. package/lib/v2/techflow520/router.js +0 -4
package/lib/config.js CHANGED
@@ -2,6 +2,8 @@ require('dotenv').config();
2
2
  const randUserAgent = require('./utils/rand-user-agent');
3
3
  let envs = process.env;
4
4
  let value;
5
+ const TRUE_UA = 'RSSHub/1.0 (+http://github.com/DIYgod/RSSHub; like FeedFetcher-Google)';
6
+
5
7
  const calculateValue = () => {
6
8
  const bilibili_cookies = {};
7
9
  const twitter_tokens = {};
@@ -40,7 +42,8 @@ const calculateValue = () => {
40
42
  listenInaddrAny: envs.LISTEN_INADDR_ANY || 1, // 是否允许公网连接,取值 0 1
41
43
  requestRetry: parseInt(envs.REQUEST_RETRY) || 2, // 请求失败重试次数
42
44
  requestTimeout: parseInt(envs.REQUEST_TIMEOUT) || 30000, // Milliseconds to wait for the server to end the response before aborting the request
43
- ua: envs.UA || randUserAgent({ browser: 'chrome', os: 'mac os', device: 'desktop' }),
45
+ ua: envs.UA ? envs.UA : envs.NO_RANDOM_UA === 'true' || envs.NO_RANDOM_UA === '1' ? TRUE_UA : randUserAgent({ browser: 'chrome', os: 'mac os', device: 'desktop' }),
46
+ trueUA: TRUE_UA,
44
47
  // cors request
45
48
  allowOrigin: envs.ALLOW_ORIGIN,
46
49
  // cache
@@ -149,6 +152,9 @@ const calculateValue = () => {
149
152
  username: envs.FANFOU_USERNAME,
150
153
  password: envs.FANFOU_PASSWORD,
151
154
  },
155
+ fantia: {
156
+ cookies: envs.FANTIA_COOKIE,
157
+ },
152
158
  game4399: {
153
159
  cookie: envs.GAME_4399,
154
160
  },
@@ -185,6 +191,9 @@ const calculateValue = () => {
185
191
  lastfm: {
186
192
  api_key: envs.LASTFM_API_KEY,
187
193
  },
194
+ manhuagui: {
195
+ cookie: envs.MHGUI_COOKIE,
196
+ },
188
197
  mastodon: {
189
198
  apiHost: envs.MASTODON_API_HOST,
190
199
  accessToken: envs.MASTODON_API_ACCESS_TOKEN,
@@ -221,6 +230,9 @@ const calculateValue = () => {
221
230
  pkubbs: {
222
231
  cookie: envs.PKUBBS_COOKIE,
223
232
  },
233
+ saraba1st: {
234
+ cookie: envs.SARABA1ST_COOKIE,
235
+ },
224
236
  scboy: {
225
237
  token: envs.SCBOY_BBS_TOKEN,
226
238
  },
@@ -239,8 +251,8 @@ const calculateValue = () => {
239
251
  consumer_key: envs.TWITTER_CONSUMER_KEY,
240
252
  consumer_secret: envs.TWITTER_CONSUMER_SECRET,
241
253
  tokens: twitter_tokens,
242
- authorization: envs.TWITTER_WEBAPI_AUTHORIZAION || 'Bearer AAAAAAAAAAAAAAAAAAAAANRILgAAAAAAnNwIzUejRCOuH5E6I8xnZz4puTs%3D1Zv7ttfk8LF81IUq16cHjhLTvJu4FA33AGWWjCpTnA',
243
- // 此处硬编码参考自https://github.com/mikf/gallery-dl/blob/master/gallery_dl/extractor/twitter.py#L550
254
+ authorization: envs.TWITTER_WEBAPI_AUTHORIZAION || 'Bearer AAAAAAAAAAAAAAAAAAAAAPYXBAAAAAAACLXUNDekMxqa8h%2F40K4moUkGsoc%3DTYfbDKbT3jJPCEVnMYqilB28NHfOPqkca3qaAxGfsyKCs0wRbw',
255
+ // reference: https://github.com/dangeredwolf/FixTweet/blob/f3082bbb0d69798687481a605f6760b2eb7558e0/src/constants.ts#L23-L25
244
256
  },
245
257
  weibo: {
246
258
  app_key: envs.WEIBO_APP_KEY,
@@ -272,6 +284,9 @@ const calculateValue = () => {
272
284
  zhihu: {
273
285
  cookies: envs.ZHIHU_COOKIES,
274
286
  },
287
+ zodgame: {
288
+ cookie: envs.ZODGAME_COOKIE,
289
+ },
275
290
  };
276
291
  };
277
292
  calculateValue();
@@ -54,7 +54,9 @@ module.exports = async (ctx, next) => {
54
54
  ctx.state.data.description && (ctx.state.data.description = entities.decodeXML(ctx.state.data.description + ''));
55
55
 
56
56
  // sort items
57
- ctx.state.data.item = ctx.state.data.item.sort((a, b) => +new Date(b.pubDate || 0) - +new Date(a.pubDate || 0));
57
+ if (ctx.query.sorted !== 'false') {
58
+ ctx.state.data.item = ctx.state.data.item.sort((a, b) => +new Date(b.pubDate || 0) - +new Date(a.pubDate || 0));
59
+ }
58
60
 
59
61
  const handleItem = (item) => {
60
62
  item.title && (item.title = entities.decodeXML(item.title + ''));
@@ -250,12 +252,10 @@ module.exports = async (ctx, next) => {
250
252
  const parsed_result = await ctx.cache.tryGet(`mercury-cache-${link}`, async () => {
251
253
  // if parser failed, return default description and not report error
252
254
  try {
253
- mercury_parser = mercury_parser || require('@postlight/mercury-parser');
255
+ mercury_parser = mercury_parser || require('@postlight/parser');
254
256
 
255
- const res = await got(link);
256
- const $ = cheerio.load(res.data, {
257
- xmlMode: true,
258
- });
257
+ const { data: res } = await got(link);
258
+ const $ = cheerio.load(res);
259
259
  const result = await mercury_parser.parse(link, {
260
260
  html: $.html(),
261
261
  });
@@ -266,7 +266,7 @@ module.exports = async (ctx, next) => {
266
266
  });
267
267
 
268
268
  item.author = author || (parsed_result ? parsed_result.author : '');
269
- item.description = parsed_result ? parsed_result.content : description;
269
+ item.description = parsed_result ? entities.decodeXML(parsed_result.content) : description;
270
270
  });
271
271
  await Promise.all(tasks);
272
272
  }
@@ -167,39 +167,6 @@ module.exports = {
167
167
  },
168
168
  ],
169
169
  },
170
- 'manhuagui.com': {
171
- _name: '漫画柜',
172
- www: [
173
- {
174
- title: '漫画更新',
175
- docs: 'https://docs.rsshub.app/anime.html#kan-man-hua',
176
- source: '/comic/:id/',
177
- target: '/manhuagui/comic/:id',
178
- },
179
- ],
180
- },
181
- 'mhgui.com': {
182
- _name: '漫画柜镜像站',
183
- www: [
184
- {
185
- title: '漫画更新',
186
- docs: 'https://docs.rsshub.app/anime.html#kan-man-hua-jing-xiang-zhan',
187
- source: '/comic/:id/',
188
- target: '/mhgui/comic/:id',
189
- },
190
- ],
191
- },
192
- 'tw.manhuagui.com': {
193
- _name: '漫画柜台湾',
194
- www: [
195
- {
196
- title: '漫画更新',
197
- docs: 'https://docs.rsshub.app/anime.html#kan-man-hua-tai-wan',
198
- source: '/comic/:id/',
199
- target: '/twmanhuagui/comic/:id',
200
- },
201
- ],
202
- },
203
170
  'pgyer.com': {
204
171
  _name: '蒲公英应用分发',
205
172
  www: [
@@ -311,35 +278,6 @@ module.exports = {
311
278
  },
312
279
  ],
313
280
  },
314
- 'dcard.tw': {
315
- _name: 'Dcard',
316
- www: [
317
- {
318
- title: '首頁帖子-最新',
319
- docs: 'https://docs.rsshub.app/bbs.html#dcard',
320
- source: '/f',
321
- target: '/dcard/posts/latest',
322
- },
323
- {
324
- title: '首頁帖子-熱門',
325
- docs: 'https://docs.rsshub.app/bbs.html#dcard',
326
- source: '/f',
327
- target: '/dcard/posts/popular',
328
- },
329
- {
330
- title: '板塊帖子-最新',
331
- docs: 'https://docs.rsshub.app/bbs.html#dcard',
332
- source: '/f/:section',
333
- target: '/dcard/:section/latest',
334
- },
335
- {
336
- title: '板塊帖子-熱門',
337
- docs: 'https://docs.rsshub.app/bbs.html#dcard',
338
- source: '/f/:section',
339
- target: '/dcard/:section/popular',
340
- },
341
- ],
342
- },
343
281
  'wegene.com': {
344
282
  _name: 'WeGene',
345
283
  www: [
@@ -1083,59 +1021,59 @@ module.exports = {
1083
1021
  },
1084
1022
  ],
1085
1023
  },
1086
- 'zcool.com.cn': {
1087
- _name: '站酷',
1088
- www: [
1089
- {
1090
- title: '发现',
1091
- docs: 'https://docs.rsshub.app/design.html#zhan-ku',
1092
- source: '',
1093
- target: '/zcool/discover',
1094
- },
1095
- {
1096
- title: '发现 - 精选 - 全部推荐',
1097
- docs: 'https://docs.rsshub.app/design.html#zhan-ku',
1098
- source: '',
1099
- target: '/zcool/discover/all',
1100
- },
1101
- {
1102
- title: '发现 - 精选 - 首页推荐',
1103
- docs: 'https://docs.rsshub.app/design.html#zhan-ku',
1104
- source: '',
1105
- target: '/zcool/discover/home',
1106
- },
1107
- {
1108
- title: '发现 - 精选 - 编辑精选',
1109
- docs: 'https://docs.rsshub.app/design.html#zhan-ku',
1110
- source: '',
1111
- target: '/zcool/discover/home',
1112
- },
1113
- {
1114
- title: '发现 - 精选 - 文章 - 编辑精选',
1115
- docs: 'https://docs.rsshub.app/design.html#zhan-ku',
1116
- source: '',
1117
- target: '/zcool/discover/article',
1118
- },
1119
- {
1120
- title: '作品榜单',
1121
- docs: 'https://docs.rsshub.app/design.html#zhan-ku',
1122
- source: '',
1123
- target: '/zcool/top/design',
1124
- },
1125
- {
1126
- title: '文章榜单',
1127
- docs: 'https://docs.rsshub.app/design.html#zhan-ku',
1128
- source: '',
1129
- target: '/zcool/top/article',
1130
- },
1131
- {
1132
- title: '用户作品',
1133
- docs: 'https://docs.rsshub.app/design.html#zhan-ku',
1134
- source: ['/u/:id'],
1135
- target: `/zcool/user/:id`,
1136
- },
1137
- ],
1138
- },
1024
+ // 'zcool.com.cn': {
1025
+ // _name: '站酷',
1026
+ // www: [
1027
+ // {
1028
+ // title: '发现',
1029
+ // docs: 'https://docs.rsshub.app/design.html#zhan-ku',
1030
+ // source: '',
1031
+ // target: '/zcool/discover',
1032
+ // },
1033
+ // {
1034
+ // title: '发现 - 精选 - 全部推荐',
1035
+ // docs: 'https://docs.rsshub.app/design.html#zhan-ku',
1036
+ // source: '',
1037
+ // target: '/zcool/discover/all',
1038
+ // },
1039
+ // {
1040
+ // title: '发现 - 精选 - 首页推荐',
1041
+ // docs: 'https://docs.rsshub.app/design.html#zhan-ku',
1042
+ // source: '',
1043
+ // target: '/zcool/discover/home',
1044
+ // },
1045
+ // {
1046
+ // title: '发现 - 精选 - 编辑精选',
1047
+ // docs: 'https://docs.rsshub.app/design.html#zhan-ku',
1048
+ // source: '',
1049
+ // target: '/zcool/discover/home',
1050
+ // },
1051
+ // {
1052
+ // title: '发现 - 精选 - 文章 - 编辑精选',
1053
+ // docs: 'https://docs.rsshub.app/design.html#zhan-ku',
1054
+ // source: '',
1055
+ // target: '/zcool/discover/article',
1056
+ // },
1057
+ // {
1058
+ // title: '作品榜单',
1059
+ // docs: 'https://docs.rsshub.app/design.html#zhan-ku',
1060
+ // source: '',
1061
+ // target: '/zcool/top/design',
1062
+ // },
1063
+ // {
1064
+ // title: '文章榜单',
1065
+ // docs: 'https://docs.rsshub.app/design.html#zhan-ku',
1066
+ // source: '',
1067
+ // target: '/zcool/top/article',
1068
+ // },
1069
+ // {
1070
+ // title: '用户作品',
1071
+ // docs: 'https://docs.rsshub.app/design.html#zhan-ku',
1072
+ // source: ['/u/:id'],
1073
+ // target: `/zcool/user/:id`,
1074
+ // },
1075
+ // ],
1076
+ // },
1139
1077
  'zhuixinfan.com': {
1140
1078
  _name: '追新番日剧站',
1141
1079
  '.': [
@@ -1578,20 +1516,6 @@ module.exports = {
1578
1516
  },
1579
1517
  ],
1580
1518
  },
1581
- 'saraba1st.com': {
1582
- _name: 'Saraba1st',
1583
- bbs: [
1584
- {
1585
- title: '帖子',
1586
- docs: 'https://docs.rsshub.app/bbs.html#saraba1st',
1587
- source: '/2b/:id',
1588
- target: (params) => {
1589
- const id = params.id.includes('thread') ? params.id.split('-')[1] : '';
1590
- return id ? `/saraba1st/thread/${id}` : '';
1591
- },
1592
- },
1593
- ],
1594
- },
1595
1519
  'scboy.com': {
1596
1520
  _name: 'scboy 论坛',
1597
1521
  www: [
@@ -1734,65 +1658,6 @@ module.exports = {
1734
1658
  },
1735
1659
  ],
1736
1660
  },
1737
- 'bgm.tv': {
1738
- _name: 'Bangumi',
1739
- '.': [
1740
- {
1741
- title: '小组话题',
1742
- docs: 'https://docs.rsshub.app/anime.html#bangumi',
1743
- source: '/group/:id',
1744
- target: '/bangumi/group/:id',
1745
- },
1746
- {
1747
- title: '小组话题的新回复',
1748
- docs: 'https://docs.rsshub.app/anime.html#bangumi',
1749
- source: '/group/topic/:id',
1750
- target: '/bangumi/topic/:id',
1751
- },
1752
- {
1753
- title: '现实人物的新作品',
1754
- docs: 'https://docs.rsshub.app/anime.html#bangumi',
1755
- source: '/person/:id',
1756
- target: '/bangumi/person/:id',
1757
- },
1758
- {
1759
- title: '用户日志',
1760
- docs: 'https://docs.rsshub.app/anime.html#bangumi',
1761
- source: '/user/:id',
1762
- target: '/bangumi/user/blog/:id',
1763
- },
1764
- {
1765
- title: '条目的讨论',
1766
- docs: 'https://docs.rsshub.app/anime.html#bangumi',
1767
- source: '/subject/:id',
1768
- target: '/bangumi/subject/:id/topics',
1769
- },
1770
- {
1771
- title: '条目的评论',
1772
- docs: 'https://docs.rsshub.app/anime.html#bangumi',
1773
- source: '/subject/:id',
1774
- target: '/bangumi/subject/:id/blogs',
1775
- },
1776
- {
1777
- title: '条目的章节',
1778
- docs: 'https://docs.rsshub.app/anime.html#bangumi',
1779
- source: '/subject/:id',
1780
- target: '/bangumi/subject/:id',
1781
- },
1782
- {
1783
- title: '条目的吐槽箱',
1784
- docs: 'https://docs.rsshub.app/anime.html#bangumi',
1785
- source: '/subject/:id',
1786
- target: '/bangumi/subject/:id/comments',
1787
- },
1788
- {
1789
- title: '放送列表',
1790
- docs: 'https://docs.rsshub.app/anime.html#bangumi',
1791
- source: '/calendar',
1792
- target: '/bangumi/calendar/today',
1793
- },
1794
- ],
1795
- },
1796
1661
  'e-hentai.org/': {
1797
1662
  _name: 'E-Hentai',
1798
1663
  '.': [