rsshub 1.0.0-master.ca54298 → 1.0.0-master.ca9efda

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 (374) hide show
  1. package/lib/config.js +7 -0
  2. package/lib/middleware/parameter.js +1 -1
  3. package/lib/radar-rules.js +0 -117
  4. package/lib/router.js +17 -20
  5. package/lib/routes/fanxinzhui/latest.js +12 -13
  6. package/lib/routes/fashionnetwork/headline.js +11 -12
  7. package/lib/routes/fashionnetwork/news.js +11 -12
  8. package/lib/routes/questmobile/report.js +13 -14
  9. package/lib/routes/rss3/blog.js +11 -12
  10. package/lib/utils/render.js +2 -46
  11. package/lib/utils/wechat-mp.js +3 -3
  12. package/lib/v2/0818tuan/index.js +47 -0
  13. package/lib/v2/0818tuan/maintainer.js +3 -0
  14. package/lib/v2/0818tuan/radar.js +13 -0
  15. package/lib/v2/0818tuan/router.js +3 -0
  16. package/lib/v2/163/maintainer.js +9 -0
  17. package/lib/v2/163/music/artist-songs.js +39 -0
  18. package/lib/{routes/ncm → v2/163/music}/artist.js +10 -4
  19. package/lib/{routes/ncm → v2/163/music}/djradio.js +3 -5
  20. package/lib/v2/163/music/maintainer.js +3 -0
  21. package/lib/v2/163/music/playlist.js +55 -0
  22. package/lib/v2/163/music/userevents.js +52 -0
  23. package/lib/{routes/ncm → v2/163/music}/userplaylist.js +10 -12
  24. package/lib/{routes/ncm → v2/163/music}/userplayrecords.js +11 -13
  25. package/lib/v2/163/radar.js +86 -0
  26. package/lib/v2/163/router.js +9 -0
  27. package/lib/v2/163/templates/music/playlist.art +4 -0
  28. package/lib/v2/163/templates/music/userevents.art +7 -0
  29. package/lib/v2/163/templates/music/userplaylist.art +16 -0
  30. package/lib/v2/163/templates/music/userplayrecords.art +7 -0
  31. package/lib/v2/500px/maintainer.js +4 -0
  32. package/lib/v2/500px/radar.js +19 -0
  33. package/lib/v2/500px/router.js +4 -0
  34. package/lib/v2/500px/templates/tribeSet.art +6 -0
  35. package/lib/v2/500px/templates/user.art +3 -0
  36. package/lib/v2/500px/tribeSet.js +29 -0
  37. package/lib/v2/500px/user.js +32 -0
  38. package/lib/v2/500px/utils.js +122 -0
  39. package/lib/v2/50forum/radar.js +1 -1
  40. package/lib/v2/50forum/zhuanjia.js +1 -1
  41. package/lib/v2/52hrtt/index.js +12 -13
  42. package/lib/v2/52hrtt/symposium.js +12 -13
  43. package/lib/v2/6v123/latestMovies.js +14 -0
  44. package/lib/v2/6v123/latestTVSeries.js +14 -0
  45. package/lib/v2/6v123/maintainer.js +4 -0
  46. package/lib/v2/6v123/radar.js +23 -0
  47. package/lib/v2/6v123/router.js +4 -0
  48. package/lib/v2/6v123/utils.js +81 -0
  49. package/lib/v2/7mmtv/index.js +15 -23
  50. package/lib/v2/7mmtv/templates/description.art +5 -1
  51. package/lib/v2/abmedia/category.js +1 -1
  52. package/lib/v2/aeaweb/index.js +81 -0
  53. package/lib/v2/aeaweb/maintainer.js +3 -0
  54. package/lib/v2/aeaweb/radar.js +13 -0
  55. package/lib/v2/aeaweb/router.js +3 -0
  56. package/lib/v2/aeaweb/templates/description.art +3 -0
  57. package/lib/v2/aijishu/index.js +26 -0
  58. package/lib/v2/aijishu/maintainer.js +5 -0
  59. package/lib/v2/aijishu/radar.js +25 -0
  60. package/lib/v2/aijishu/router.js +3 -0
  61. package/lib/v2/aijishu/utils.js +36 -0
  62. package/lib/v2/aliyundrive/files.js +10 -14
  63. package/lib/v2/ally/rail.js +41 -42
  64. package/lib/v2/annualreviews/index.js +68 -0
  65. package/lib/v2/annualreviews/maintainer.js +3 -0
  66. package/lib/v2/annualreviews/radar.js +13 -0
  67. package/lib/v2/annualreviews/router.js +3 -0
  68. package/lib/v2/apkpure/maintainer.js +3 -0
  69. package/lib/v2/apkpure/radar.js +13 -0
  70. package/lib/v2/apkpure/router.js +3 -0
  71. package/lib/v2/apkpure/versions.js +48 -0
  72. package/lib/v2/arcteryx/maintainer.js +3 -0
  73. package/lib/v2/arcteryx/new-arrivals.js +49 -0
  74. package/lib/v2/arcteryx/radar.js +13 -0
  75. package/lib/v2/arcteryx/router.js +3 -0
  76. package/lib/v2/arcteryx/templates/product-description.art +6 -0
  77. package/lib/v2/bellroy/maintainer.js +3 -0
  78. package/lib/v2/bellroy/new-releases.js +26 -0
  79. package/lib/v2/bellroy/radar.js +13 -0
  80. package/lib/v2/bellroy/router.js +3 -0
  81. package/lib/v2/bilibili/hotSearch.js +25 -0
  82. package/lib/v2/bilibili/maintainer.js +1 -0
  83. package/lib/v2/bilibili/radar.js +6 -0
  84. package/lib/v2/bilibili/router.js +1 -0
  85. package/lib/v2/bilibili/video-all.js +1 -1
  86. package/lib/v2/bioone/journal.js +21 -22
  87. package/lib/v2/bjfu/it/utils.js +3 -3
  88. package/lib/v2/bloomberg/utils.js +9 -9
  89. package/lib/v2/bnu/fdy.js +41 -0
  90. package/lib/v2/bnu/lib.js +40 -0
  91. package/lib/v2/bnu/maintainer.js +3 -0
  92. package/lib/v2/bnu/radar.js +23 -5
  93. package/lib/v2/bnu/router.js +2 -0
  94. package/lib/v2/caai/index.js +22 -0
  95. package/lib/v2/caai/maintainer.js +3 -0
  96. package/lib/v2/caai/radar.js +13 -0
  97. package/lib/v2/caai/router.js +3 -0
  98. package/lib/v2/caai/utils.js +46 -0
  99. package/lib/v2/caareviews/utils.js +2 -2
  100. package/lib/v2/{ccfcv → ccf/ccfcv}/index.js +2 -2
  101. package/lib/v2/ccf/maintainer.js +5 -0
  102. package/lib/{routes → v2}/ccf/news.js +8 -14
  103. package/lib/v2/ccf/radar.js +41 -0
  104. package/lib/v2/ccf/router.js +5 -0
  105. package/lib/v2/ccf/templates/tfbd/description.art +1 -0
  106. package/lib/v2/ccf/tfbd/index.js +22 -0
  107. package/lib/v2/ccf/tfbd/utils.js +47 -0
  108. package/lib/v2/cctv/lm.js +22 -23
  109. package/lib/v2/chinacef/experts.js +1 -1
  110. package/lib/v2/chinacef/hot.js +1 -1
  111. package/lib/v2/chinacef/index.js +1 -1
  112. package/lib/v2/chinafactcheck/index.js +1 -1
  113. package/lib/v2/chinathinktanks/viewpoint.js +12 -13
  114. package/lib/v2/ciidbnu/index.js +14 -15
  115. package/lib/v2/codeforces/contests.js +13 -5
  116. package/lib/v2/codeforces/templates/contest.art +2 -3
  117. package/lib/v2/crossbell/radar.js +2 -2
  118. package/lib/v2/csu/career.js +51 -0
  119. package/lib/v2/csu/mail.js +30 -26
  120. package/lib/v2/csu/maintainer.js +2 -0
  121. package/lib/v2/csu/radar.js +10 -2
  122. package/lib/v2/csu/router.js +1 -1
  123. package/lib/v2/csu/utils.js +17 -0
  124. package/lib/v2/dcard/section.js +1 -1
  125. package/lib/v2/dcfever/maintainer.js +6 -0
  126. package/lib/v2/dcfever/news.js +36 -0
  127. package/lib/v2/dcfever/radar.js +37 -0
  128. package/lib/v2/dcfever/reviews.js +29 -0
  129. package/lib/v2/dcfever/router.js +6 -0
  130. package/lib/v2/dcfever/templates/trading.art +14 -0
  131. package/lib/v2/dcfever/trading-search.js +39 -0
  132. package/lib/v2/dcfever/trading.js +39 -0
  133. package/lib/v2/dcfever/utils.js +78 -0
  134. package/lib/v2/discord/channel.js +38 -0
  135. package/lib/v2/discord/discord-api.js +61 -0
  136. package/lib/v2/discord/maintainer.js +3 -0
  137. package/lib/v2/discord/radar.js +13 -0
  138. package/lib/v2/discord/router.js +3 -0
  139. package/lib/v2/discord/templates/message.art +47 -0
  140. package/lib/v2/disinformationindex/blog.js +12 -13
  141. package/lib/v2/dtcj/datainsight.js +13 -14
  142. package/lib/v2/eastday/24.js +14 -15
  143. package/lib/v2/economist/full.js +2 -2
  144. package/lib/v2/fffdm/maintainer.js +3 -0
  145. package/lib/v2/fffdm/manhua/manhua.js +55 -0
  146. package/lib/v2/fffdm/radar.js +14 -0
  147. package/lib/v2/fffdm/router.js +3 -0
  148. package/lib/v2/fffdm/templates/manhua.art +5 -0
  149. package/lib/v2/flyert/utils.js +3 -3
  150. package/lib/v2/furstar/templates/description.art +1 -1
  151. package/lib/v2/gameapps/index.js +32 -13
  152. package/lib/v2/gettr/maintainer.js +3 -0
  153. package/lib/v2/gettr/radar.js +13 -0
  154. package/lib/v2/gettr/router.js +3 -0
  155. package/lib/v2/gettr/templates/post.art +13 -0
  156. package/lib/v2/gettr/user.js +56 -0
  157. package/lib/v2/gocn/topics.js +1 -1
  158. package/lib/v2/google/sitesRecentChanges.js +12 -13
  159. package/lib/v2/gov/ccdi/utils.js +1 -1
  160. package/lib/v2/gov/csrc/auditstatus.js +54 -0
  161. package/lib/v2/gov/csrc/news.js +69 -0
  162. package/lib/v2/gov/csrc/templates/attachment.art +3 -0
  163. package/lib/v2/gov/maintainer.js +3 -0
  164. package/lib/v2/gov/moe/moe.js +4 -4
  165. package/lib/v2/gov/moe/s78.js +44 -0
  166. package/lib/v2/gov/pbc/utils.js +2 -2
  167. package/lib/v2/gov/radar.js +25 -0
  168. package/lib/v2/gov/router.js +3 -0
  169. package/lib/v2/gov/sichuan/deyang/govpulicinfo.js +3 -3
  170. package/lib/v2/gov/stats/index.js +1 -1
  171. package/lib/v2/gov/stats/utils.js +6 -4
  172. package/lib/v2/gzh360/universal.js +3 -3
  173. package/lib/v2/gzh360/utils.js +2 -2
  174. package/lib/v2/hk01/utils.js +2 -2
  175. package/lib/v2/hkepc/data.js +62 -0
  176. package/lib/v2/hkepc/index.js +55 -164
  177. package/lib/v2/hrbust/jwzx.js +36 -0
  178. package/lib/v2/hrbust/maintainer.js +3 -0
  179. package/lib/v2/hrbust/radar.js +13 -0
  180. package/lib/v2/hrbust/router.js +3 -0
  181. package/lib/v2/hrbust/templates/description.art +1 -0
  182. package/lib/v2/hrbust/utils.js +71 -0
  183. package/lib/v2/hunanpea/maintainer.js +3 -0
  184. package/lib/v2/hunanpea/radar.js +13 -0
  185. package/lib/v2/hunanpea/router.js +3 -0
  186. package/lib/v2/hunanpea/rsks.js +42 -0
  187. package/lib/v2/infoq/utils.js +2 -1
  188. package/lib/v2/inoreader/index.js +46 -0
  189. package/lib/v2/inoreader/maintainer.js +3 -0
  190. package/lib/v2/inoreader/radar.js +17 -0
  191. package/lib/v2/inoreader/router.js +3 -0
  192. package/lib/v2/instagram/common-utils.js +59 -0
  193. package/lib/v2/instagram/maintainer.js +4 -0
  194. package/lib/v2/instagram/private-api/index.js +94 -0
  195. package/lib/v2/instagram/private-api/utils.js +37 -0
  196. package/lib/v2/instagram/radar.js +19 -0
  197. package/lib/v2/instagram/router.js +4 -0
  198. package/lib/v2/instagram/templates/images.art +5 -0
  199. package/lib/v2/instagram/templates/video.art +5 -0
  200. package/lib/v2/instagram/web-api/index.js +70 -0
  201. package/lib/v2/instagram/web-api/utils.js +99 -0
  202. package/lib/v2/kemono/index.js +21 -17
  203. package/lib/v2/kemono/templates/discord.art +22 -0
  204. package/lib/v2/layoffs/index.js +51 -21
  205. package/lib/v2/misskey/templates/note.art +3 -1
  206. package/lib/v2/nber/index.js +48 -0
  207. package/lib/v2/nber/maintainer.js +4 -0
  208. package/lib/v2/nber/radar.js +19 -0
  209. package/lib/v2/nber/router.js +4 -0
  210. package/lib/v2/nber/template/description.art +6 -0
  211. package/lib/v2/{nikkei-asia → nikkei/asia}/index.js +16 -3
  212. package/lib/v2/nikkei/cn/index.js +90 -0
  213. package/lib/v2/nikkei/index.js +36 -0
  214. package/lib/v2/nikkei/maintainer.js +6 -0
  215. package/lib/v2/nikkei/news.js +90 -0
  216. package/lib/v2/nikkei/radar.js +59 -0
  217. package/lib/v2/nikkei/router.js +7 -0
  218. package/lib/v2/nikkei/templates/news.art +4 -0
  219. package/lib/v2/njnu/ceai/utils.js +3 -3
  220. package/lib/v2/njnu/jwc/utils.js +3 -3
  221. package/lib/v2/nua/utils.js +2 -2
  222. package/lib/v2/odaily/activity.js +13 -14
  223. package/lib/v2/odaily/user.js +14 -15
  224. package/lib/v2/oilchem/index.js +20 -21
  225. package/lib/{routes → v2}/phoronix/index.js +42 -46
  226. package/lib/v2/phoronix/maintainer.js +3 -0
  227. package/lib/v2/phoronix/radar.js +13 -0
  228. package/lib/v2/phoronix/router.js +3 -0
  229. package/lib/v2/picnob/maintainer.js +3 -0
  230. package/lib/v2/picnob/radar.js +13 -0
  231. package/lib/v2/picnob/router.js +3 -0
  232. package/lib/v2/picnob/templates/desc.art +13 -0
  233. package/lib/v2/picnob/user.js +61 -0
  234. package/lib/v2/pikabu/community.js +37 -0
  235. package/lib/v2/pikabu/maintainer.js +5 -0
  236. package/lib/v2/pikabu/radar.js +25 -0
  237. package/lib/v2/pikabu/router.js +4 -0
  238. package/lib/v2/pikabu/templates/video.art +8 -0
  239. package/lib/v2/pikabu/user.js +46 -0
  240. package/lib/v2/pikabu/utils.js +43 -0
  241. package/lib/v2/pixabay/maintainer.js +3 -0
  242. package/lib/v2/pixabay/radar.js +13 -0
  243. package/lib/v2/pixabay/router.js +3 -0
  244. package/lib/v2/pixabay/search.js +50 -0
  245. package/lib/v2/pixabay/templates/img.art +1 -0
  246. package/lib/v2/pixiv/api/getRanking.js +1 -1
  247. package/lib/v2/pixiv/ranking.js +3 -0
  248. package/lib/v2/pnas/index.js +101 -0
  249. package/lib/v2/pnas/maintainer.js +3 -0
  250. package/lib/v2/pnas/radar.js +13 -0
  251. package/lib/v2/pnas/router.js +3 -0
  252. package/lib/v2/pnas/templates/article.art +8 -0
  253. package/lib/v2/qdaily/index.js +87 -0
  254. package/lib/v2/qdaily/maintainer.js +3 -0
  255. package/lib/v2/qdaily/router.js +3 -0
  256. package/lib/v2/qdaily/templates/article.art +5 -0
  257. package/lib/v2/qdaily/templates/radar.js +25 -0
  258. package/lib/v2/qiyoujiage/maintainer.js +3 -0
  259. package/lib/v2/qiyoujiage/price.js +28 -0
  260. package/lib/v2/qiyoujiage/radar.js +13 -0
  261. package/lib/v2/qiyoujiage/router.js +3 -0
  262. package/lib/v2/sdu/extractor/index.js +5 -5
  263. package/lib/v2/sdu/extractor/sdrj.js +2 -2
  264. package/lib/v2/sdu/extractor/view.js +2 -2
  265. package/lib/v2/sdu/extractor/wh/jwc.js +2 -2
  266. package/lib/v2/sdu/extractor/wh/news.js +2 -2
  267. package/lib/v2/sdu/wh/jwc.js +1 -1
  268. package/lib/v2/sdu/wh/news.js +1 -1
  269. package/lib/v2/sehuatang/index.js +129 -0
  270. package/lib/v2/{dsndsht23 → sehuatang}/radar.js +2 -2
  271. package/lib/v2/shmeea/self-study.js +4 -4
  272. package/lib/v2/sicau/dky.js +12 -13
  273. package/lib/v2/sicau/yan.js +13 -14
  274. package/lib/v2/swjtu/jtys/yjs.js +33 -13
  275. package/lib/v2/swjtu/jyzpxx.js +28 -0
  276. package/lib/v2/swjtu/maintainer.js +1 -0
  277. package/lib/v2/swjtu/radar.js +8 -0
  278. package/lib/v2/swjtu/router.js +1 -0
  279. package/lib/v2/swjtu/templates/job_desc.art +19 -0
  280. package/lib/v2/swjtu/templates/job_detail.art +21 -0
  281. package/lib/v2/swjtu/utils.js +33 -0
  282. package/lib/v2/thepaper/maintainer.js +2 -1
  283. package/lib/v2/thepaper/radar.js +6 -0
  284. package/lib/v2/thepaper/router.js +2 -1
  285. package/lib/v2/thepaper/sidebar.js +24 -0
  286. package/lib/v2/thepaper/utils.js +2 -2
  287. package/lib/v2/twitter/utils.js +10 -31
  288. package/lib/v2/twitter/web-api/twitter-api.js +5 -5
  289. package/lib/v2/uber/blog.js +20 -21
  290. package/lib/v2/uchicago/current.js +80 -0
  291. package/lib/v2/uchicago/maintainer.js +3 -0
  292. package/lib/v2/uchicago/radar.js +13 -0
  293. package/lib/v2/uchicago/router.js +3 -0
  294. package/lib/v2/urbandictionary/maintainer.js +3 -0
  295. package/lib/v2/urbandictionary/radar.js +13 -0
  296. package/lib/v2/urbandictionary/random.js +24 -0
  297. package/lib/v2/urbandictionary/router.js +3 -0
  298. package/lib/v2/urbandictionary/templates/definition.art +11 -0
  299. package/lib/v2/v1tx/index.js +36 -0
  300. package/lib/v2/v1tx/maintainer.js +4 -0
  301. package/lib/v2/v1tx/radar.js +13 -0
  302. package/lib/v2/{nikkei-asia → v1tx}/router.js +1 -1
  303. package/lib/v2/wechat/ce.js +2 -2
  304. package/lib/v2/wechat/data258.js +1 -1
  305. package/lib/v2/wechat/ershcimi.js +1 -1
  306. package/lib/v2/wechat/feeddd.js +1 -1
  307. package/lib/v2/wechat/feeds.js +1 -1
  308. package/lib/v2/wechat/mp.js +2 -2
  309. package/lib/v2/wechat/msgalbum.js +2 -2
  310. package/lib/v2/weekendhk/maintainer.js +4 -0
  311. package/lib/v2/weekendhk/posts.js +29 -0
  312. package/lib/v2/weekendhk/radar.js +13 -0
  313. package/lib/v2/weekendhk/router.js +3 -0
  314. package/lib/v2/wfu/news.js +1 -1
  315. package/lib/v2/who/news-room.js +17 -18
  316. package/lib/v2/who/news.js +11 -12
  317. package/lib/v2/wp-china/news.js +12 -13
  318. package/lib/v2/wxkol/maintainer.js +3 -0
  319. package/lib/v2/wxkol/radar.js +13 -0
  320. package/lib/v2/wxkol/router.js +3 -0
  321. package/lib/v2/wxkol/show.js +80 -0
  322. package/lib/v2/wyzxwk/article.js +20 -21
  323. package/lib/v2/xiaohongshu/board.js +4 -2
  324. package/lib/v2/xiaohongshu/maintainer.js +2 -1
  325. package/lib/v2/xiaohongshu/radar.js +2 -2
  326. package/lib/v2/xiaohongshu/user.js +20 -41
  327. package/lib/v2/xiaohongshu/util.js +44 -7
  328. package/lib/v2/ycwb/index.js +82 -0
  329. package/lib/v2/ycwb/maintainer.js +3 -0
  330. package/lib/v2/ycwb/radar.js +12 -0
  331. package/lib/v2/ycwb/router.js +3 -0
  332. package/lib/v2/ycwb/templates/description.art +7 -0
  333. package/lib/v2/yicai/utils.js +1 -1
  334. package/lib/v2/youtube/channel.js +3 -4
  335. package/lib/v2/youtube/charts.js +97 -0
  336. package/lib/v2/youtube/community.js +56 -0
  337. package/lib/v2/youtube/maintainer.js +2 -0
  338. package/lib/v2/youtube/radar.js +14 -0
  339. package/lib/v2/youtube/router.js +2 -0
  340. package/lib/v2/youtube/templates/community.art +17 -0
  341. package/lib/v2/youtube/user.js +1 -1
  342. package/lib/v2/youtube/utils.js +3 -1
  343. package/lib/views/json.js +46 -0
  344. package/package.json +19 -19
  345. package/lib/routes/apkpure/versions.js +0 -23
  346. package/lib/routes/csrc/auditstatus.js +0 -61
  347. package/lib/routes/csrc/fashenwei.js +0 -42
  348. package/lib/routes/csrc/news.js +0 -45
  349. package/lib/routes/fzdm/manhua.js +0 -62
  350. package/lib/routes/instagram/index.js +0 -131
  351. package/lib/routes/instagram/utils.js +0 -28
  352. package/lib/routes/ncm/playlist.js +0 -45
  353. package/lib/routes/nikkei/index.js +0 -34
  354. package/lib/routes/nikkei/news.js +0 -155
  355. package/lib/routes/oilprice/index.js +0 -66
  356. package/lib/routes/pnas/index.js +0 -66
  357. package/lib/routes/qdaily/index.js +0 -88
  358. package/lib/v2/ccfcv/maintainer.js +0 -3
  359. package/lib/v2/ccfcv/radar.js +0 -25
  360. package/lib/v2/ccfcv/router.js +0 -3
  361. package/lib/v2/csu/job.js +0 -34
  362. package/lib/v2/dsndsht23/index.js +0 -121
  363. package/lib/v2/hkepc/templates/image.art +0 -1
  364. package/lib/v2/nikkei-asia/maintainer.js +0 -3
  365. package/lib/v2/nikkei-asia/radar.js +0 -13
  366. package/lib/v2/nikkei-cn/index.js +0 -89
  367. package/lib/v2/nikkei-cn/maintainer.js +0 -3
  368. package/lib/v2/nikkei-cn/radar.js +0 -21
  369. package/lib/v2/nikkei-cn/router.js +0 -3
  370. /package/lib/{routes/ncm/templates → v2/163/templates/music}/djradio-content.art +0 -0
  371. /package/lib/v2/{hkepc → caai}/templates/description.art +0 -0
  372. /package/lib/v2/{ccfcv/templates → ccf/templates/ccfcv}/description.art +0 -0
  373. /package/lib/v2/{dsndsht23 → sehuatang}/maintainer.js +0 -0
  374. /package/lib/v2/{dsndsht23 → sehuatang}/router.js +0 -0
package/lib/config.js CHANGED
@@ -124,6 +124,9 @@ const calculateValue = () => {
124
124
  username: envs.DIDA365_USERNAME,
125
125
  password: envs.DIDA365_PASSWORD,
126
126
  },
127
+ discord: {
128
+ authorization: envs.DISCORD_AUTHORIZATION,
129
+ },
127
130
  discuz: {
128
131
  cookies: discuz_cookies,
129
132
  },
@@ -185,6 +188,7 @@ const calculateValue = () => {
185
188
  username: envs.IG_USERNAME,
186
189
  password: envs.IG_PASSWORD,
187
190
  proxy: envs.IG_PROXY,
191
+ cookie: envs.IG_COOKIE,
188
192
  },
189
193
  iwara: {
190
194
  cookie: envs.IWARA_COOKIE,
@@ -221,6 +225,9 @@ const calculateValue = () => {
221
225
  pianyuan: {
222
226
  cookie: envs.PIANYUAN_COOKIE,
223
227
  },
228
+ pixabay: {
229
+ key: envs.PIXABAY_KEY,
230
+ },
224
231
  pixiv: {
225
232
  refreshToken: envs.PIXIV_REFRESHTOKEN,
226
233
  bypassCdn: envs.PIXIV_BYPASS_CDN !== '0' && envs.PIXIV_BYPASS_CDN !== 'false',
@@ -313,7 +313,7 @@ module.exports = async (ctx, next) => {
313
313
  }
314
314
  });
315
315
  } else {
316
- throw Error(`Invalid parameter <code>brief=${ctx.query.brief}</code>. Please check the doc https://docs.rsshub.app/parameter.html#shu-chu-jian-xun`);
316
+ throw Error(`Invalid parameter brief. Please check the doc https://docs.rsshub.app/parameter.html#shu-chu-jian-xun`);
317
317
  }
318
318
  }
319
319
 
@@ -231,30 +231,6 @@ module.exports = {
231
231
  },
232
232
  ],
233
233
  },
234
- 'qdaily.com': {
235
- _name: '好奇心日报',
236
- www: [
237
- {
238
- title: '标签',
239
- docs: 'https://docs.rsshub.app/new-media.html#hao-qi-xin-ri-bao',
240
- source: '/tags/:idd',
241
- target: (params) => `/qdaily/tag/${params.idd.replace('.html', '')}`,
242
- },
243
- {
244
- title: '栏目',
245
- docs: 'https://docs.rsshub.app/new-media.html#hao-qi-xin-ri-bao',
246
- source: '/special_columns/:idd',
247
- target: (params) => `/qdaily/column/${params.idd.replace('.html', '')}`,
248
- },
249
- {
250
- title: '分类',
251
- docs: 'https://docs.rsshub.app/new-media.html#hao-qi-xin-ri-bao',
252
- source: '/categories/:idd',
253
- target: (params) => `/qdaily/category/${params.idd.replace('.html', '')}`,
254
- },
255
- ],
256
- },
257
-
258
234
  '3ycy.com': {
259
235
  _name: '三界异次元',
260
236
  www: [
@@ -395,73 +371,6 @@ module.exports = {
395
371
  },
396
372
  ],
397
373
  },
398
- '163.com': {
399
- _name: '网易',
400
- music: [
401
- {
402
- title: '云音乐 - 用户歌单',
403
- docs: 'https://docs.rsshub.app/multimedia.html#wang-yi-yun-yin-yue',
404
- source: '/',
405
- target: (params, url) => {
406
- const id = new URL(url).hash.match(/home\?id=(.*)/)[1];
407
- return id ? `/ncm/user/playlist/${id}` : '';
408
- },
409
- },
410
- {
411
- title: '云音乐 - 歌单歌曲',
412
- docs: 'https://docs.rsshub.app/multimedia.html#wang-yi-yun-yin-yue',
413
- source: '/',
414
- target: (params, url) => {
415
- const id = new URL(url).hash.match(/playlist\?id=(.*)/)[1];
416
- return id ? `/ncm/playlist/${id}` : '';
417
- },
418
- },
419
- {
420
- title: '云音乐 - 歌手专辑',
421
- docs: 'https://docs.rsshub.app/multimedia.html#wang-yi-yun-yin-yue',
422
- source: '/',
423
- target: (params, url) => {
424
- const id = new URL(url).hash.match(/album\?id=(.*)/)[1];
425
- return id ? `/ncm/artist/${id}` : '';
426
- },
427
- },
428
- {
429
- title: '云音乐 - 电台节目',
430
- docs: 'https://docs.rsshub.app/multimedia.html#wang-yi-yun-yin-yue',
431
- source: '/',
432
- target: (params, url) => {
433
- const id = new URL(url).hash.match(/djradio\?id=(.*)/)[1];
434
- return id ? `/ncm/djradio/${id}` : '';
435
- },
436
- },
437
- ],
438
- 'y.music': [
439
- {
440
- title: '云音乐 - 用户歌单',
441
- docs: 'https://docs.rsshub.app/multimedia.html#wang-yi-yun-yin-yue',
442
- source: '/m/user',
443
- target: (params, url) => `/ncm/playlist/${new URL(url).searchParams.get('id')}`,
444
- },
445
- {
446
- title: '云音乐 - 歌单歌曲',
447
- docs: 'https://docs.rsshub.app/multimedia.html#wang-yi-yun-yin-yue',
448
- source: '/m/playlist',
449
- target: (params, url) => `/ncm/playlist/${new URL(url).searchParams.get('id')}`,
450
- },
451
- {
452
- title: '云音乐 - 歌手专辑',
453
- docs: 'https://docs.rsshub.app/multimedia.html#wang-yi-yun-yin-yue',
454
- source: '/m/album',
455
- target: (params, url) => `/ncm/playlist/${new URL(url).searchParams.get('id')}`,
456
- },
457
- {
458
- title: '云音乐 - 播单声音',
459
- docs: 'https://docs.rsshub.app/multimedia.html#wang-yi-yun-yin-yue',
460
- source: ['/m/radio', '/m/djradio'],
461
- target: (params, url) => `/ncm/playlist/${new URL(url).searchParams.get('id')}`,
462
- },
463
- ],
464
- },
465
374
  'suzhou.gov.cn': {
466
375
  _name: '苏州市政府',
467
376
  www: [
@@ -502,17 +411,6 @@ module.exports = {
502
411
  },
503
412
  ],
504
413
  },
505
- 'nikkei.com': {
506
- _name: '日本経済新聞',
507
- www: [
508
- {
509
- title: 'ホームページ',
510
- docs: 'https://docs.rsshub.app/traditional-media.html#ri-ben-jing-ji-xin-wen',
511
- source: '/',
512
- target: '/nikkei/index',
513
- },
514
- ],
515
- },
516
414
  'last.fm': {
517
415
  _name: 'Last.fm',
518
416
  www: [
@@ -1350,21 +1248,6 @@ module.exports = {
1350
1248
  },
1351
1249
  ],
1352
1250
  },
1353
- 'instagram.com': {
1354
- _name: 'Instagram',
1355
- www: [
1356
- {
1357
- title: '用户',
1358
- docs: 'https://docs.rsshub.app/social-media.html#instagram',
1359
- source: '/:id',
1360
- target: (params) => {
1361
- if (params.id !== 'explore' && params.id !== 'developer') {
1362
- return '/instagram/user/:id';
1363
- }
1364
- },
1365
- },
1366
- ],
1367
- },
1368
1251
  'huya.com': {
1369
1252
  _name: '虎牙直播',
1370
1253
  '.': [
package/lib/router.js CHANGED
@@ -62,11 +62,11 @@ router.get('/benedictevans', lazyloadRouteHandler('./routes/benedictevans/recent
62
62
  // router.get('/tieba/user/:uid', lazyloadRouteHandler('./routes/tieba/user'));
63
63
 
64
64
  // 网易云音乐
65
- router.get('/ncm/playlist/:id', lazyloadRouteHandler('./routes/ncm/playlist'));
66
- router.get('/ncm/user/playlist/:uid', lazyloadRouteHandler('./routes/ncm/userplaylist'));
67
- router.get('/ncm/artist/:id', lazyloadRouteHandler('./routes/ncm/artist'));
68
- router.get('/ncm/djradio/:id', lazyloadRouteHandler('./routes/ncm/djradio'));
69
- router.get('/ncm/user/playrecords/:uid/:type?', lazyloadRouteHandler('./routes/ncm/userplayrecords'));
65
+ // router.get('/ncm/playlist/:id', lazyloadRouteHandler('./routes/ncm/playlist'));
66
+ // router.get('/ncm/user/playlist/:uid', lazyloadRouteHandler('./routes/ncm/userplaylist'));
67
+ // router.get('/ncm/artist/:id', lazyloadRouteHandler('./routes/ncm/artist'));
68
+ // router.get('/ncm/djradio/:id', lazyloadRouteHandler('./routes/ncm/djradio'));
69
+ // router.get('/ncm/user/playrecords/:uid/:type?', lazyloadRouteHandler('./routes/ncm/userplayrecords'));
70
70
 
71
71
  // 掘金 migrated to v2
72
72
  // router.get('/juejin/category/:category', lazyloadRouteHandler('./routes/juejin/category'));
@@ -173,7 +173,7 @@ router.get('/geektime/news', lazyloadRouteHandler('./routes/geektime/news'));
173
173
  // router.get('/jiemian/list/:cid', lazyloadRouteHandler('./routes/jiemian/list.js'));
174
174
 
175
175
  // 好奇心日报
176
- router.get('/qdaily/:type/:id', lazyloadRouteHandler('./routes/qdaily/index'));
176
+ // router.get('/qdaily/:type/:id', lazyloadRouteHandler('./routes/qdaily/index'));
177
177
 
178
178
  // 爱奇艺
179
179
  // router.get('/iqiyi/dongman/:id', lazyloadRouteHandler('./routes/iqiyi/dongman'));
@@ -928,9 +928,6 @@ router.get('/chouti/:subject?', lazyloadRouteHandler('./routes/chouti'));
928
928
  // Westore
929
929
  router.get('/westore/new', lazyloadRouteHandler('./routes/westore/new'));
930
930
 
931
- // 油价
932
- router.get('/oilprice/:area', lazyloadRouteHandler('./routes/oilprice'));
933
-
934
931
  // nHentai
935
932
  router.get('/nhentai/search/:keyword/:mode?', lazyloadRouteHandler('./routes/nhentai/search'));
936
933
  router.get('/nhentai/:key/:keyword/:mode?', lazyloadRouteHandler('./routes/nhentai/other'));
@@ -1091,7 +1088,7 @@ router.get('/anigamer/new_anime', lazyloadRouteHandler('./routes/anigamer/new_an
1091
1088
  router.get('/anigamer/anime/:sn', lazyloadRouteHandler('./routes/anigamer/anime'));
1092
1089
 
1093
1090
  // Apkpure
1094
- router.get('/apkpure/versions/:region/:pkg', lazyloadRouteHandler('./routes/apkpure/versions'));
1091
+ // router.get('/apkpure/versions/:region/:pkg', lazyloadRouteHandler('./routes/apkpure/versions'));
1095
1092
 
1096
1093
  // 豆瓣美女 migrated to v2
1097
1094
  // router.get('/dbmv/:category?', lazyloadRouteHandler('./routes/dbmv/index'));
@@ -1757,9 +1754,9 @@ router.get('/8btc/news/flash', lazyloadRouteHandler('./routes/8btc/news/flash'))
1757
1754
  router.get('/vuevideo/:userid', lazyloadRouteHandler('./routes/vuevideo/user'));
1758
1755
 
1759
1756
  // 证监会
1760
- router.get('/csrc/news/:suffix?', lazyloadRouteHandler('./routes/csrc/news'));
1761
- router.get('/csrc/fashenwei', lazyloadRouteHandler('./routes/csrc/fashenwei'));
1762
- router.get('/csrc/auditstatus/:apply_id', lazyloadRouteHandler('./routes/csrc/auditstatus'));
1757
+ // router.get('/csrc/news/:suffix?', lazyloadRouteHandler('./routes/csrc/news'));
1758
+ // router.get('/csrc/fashenwei', lazyloadRouteHandler('./routes/csrc/fashenwei'));
1759
+ // router.get('/csrc/auditstatus/:apply_id', lazyloadRouteHandler('./routes/csrc/auditstatus'));
1763
1760
 
1764
1761
  // LWN.net Alerts
1765
1762
  router.get('/lwn/alerts/:distributor', lazyloadRouteHandler('./routes/lwn/alerts'));
@@ -2168,7 +2165,7 @@ router.get('/elife/:tid', lazyloadRouteHandler('./routes/elife/index'));
2168
2165
  router.get('/ieee/author/:aid/:sortType/:count?', lazyloadRouteHandler('./routes/ieee/author'));
2169
2166
 
2170
2167
  // PNAS [Sci Journal]
2171
- router.get('/pnas/:topic?', lazyloadRouteHandler('./routes/pnas/index'));
2168
+ // router.get('/pnas/:topic?', lazyloadRouteHandler('./routes/pnas/index'));
2172
2169
 
2173
2170
  // cell [Sci Journal]
2174
2171
  router.get('/cell/cell/:category', lazyloadRouteHandler('./routes/cell/cell/index'));
@@ -2405,8 +2402,8 @@ router.get('/coronavirus/yahoo-japan/:tdfk?', lazyloadRouteHandler('./routes/cor
2405
2402
  router.get('/njfu/jwc/:category?', lazyloadRouteHandler('./routes/universities/njfu/jwc'));
2406
2403
 
2407
2404
  // 日本経済新聞
2408
- router.get('/nikkei/index', lazyloadRouteHandler('./routes/nikkei/index'));
2409
- router.get('/nikkei/:category/:article_type?', lazyloadRouteHandler('./routes/nikkei/news'));
2405
+ // router.get('/nikkei/index', lazyloadRouteHandler('./routes/nikkei/index'));
2406
+ // router.get('/nikkei/:category/:article_type?', lazyloadRouteHandler('./routes/nikkei/news'));
2410
2407
 
2411
2408
  // MQube
2412
2409
  router.get('/mqube/user/:user', lazyloadRouteHandler('./routes/mqube/user'));
@@ -2800,7 +2797,7 @@ router.get('/grubstreet', lazyloadRouteHandler('./routes/grubstreet/index'));
2800
2797
  router.get('/manhuadui/manhua/:name/:serial?', lazyloadRouteHandler('./routes/manhuadui/manhua'));
2801
2798
 
2802
2799
  // 风之漫画
2803
- router.get('/fzdm/manhua/:id', lazyloadRouteHandler('./routes/fzdm/manhua'));
2800
+ // router.get('/fzdm/manhua/:id', lazyloadRouteHandler('./routes/fzdm/manhua'));
2804
2801
 
2805
2802
  // Aljazeera 半岛网
2806
2803
  // router.get('/aljazeera/news', lazyloadRouteHandler('./routes/aljazeera/news'));
@@ -3365,7 +3362,7 @@ router.get('/mitbbs/:caty?', lazyloadRouteHandler('./routes/mitbbs/index'));
3365
3362
  router.get('/jiazhen108', lazyloadRouteHandler('./routes/jiazhen108/index'));
3366
3363
 
3367
3364
  // Instagram
3368
- router.get('/instagram/:category/:key', lazyloadRouteHandler('./routes/instagram/index'));
3365
+ // router.get('/instagram/:category/:key', lazyloadRouteHandler('./routes/instagram/index'));
3369
3366
 
3370
3367
  // 优设网
3371
3368
  router.get('/uisdc/talk/:sort?', lazyloadRouteHandler('./routes/uisdc/talk'));
@@ -3378,7 +3375,7 @@ router.get('/uisdc/topic/:title?/:sort?', lazyloadRouteHandler('./routes/uisdc/t
3378
3375
  router.get('/chinalaborwatch/reports/:lang?/:industry?', lazyloadRouteHandler('./routes/chinalaborwatch/reports'));
3379
3376
 
3380
3377
  // Phoronix
3381
- router.get('/phoronix/:page/:queryOrItem?', lazyloadRouteHandler('./routes/phoronix/index'));
3378
+ // router.get('/phoronix/:page/:queryOrItem?', lazyloadRouteHandler('./routes/phoronix/index'));
3382
3379
 
3383
3380
  // 美国中央情报局
3384
3381
  router.get('/cia/foia-annual-report', lazyloadRouteHandler('./routes/us/cia/foia-annual-report'));
@@ -3544,7 +3541,7 @@ router.get('/vgn/:platform?', lazyloadRouteHandler('./routes/vgn/index'));
3544
3541
  router.get('/iea/:category?', lazyloadRouteHandler('./routes/iea/index'));
3545
3542
 
3546
3543
  // 中国计算机学会
3547
- router.get('/ccf/news/:category?', lazyloadRouteHandler('./routes/ccf/news'));
3544
+ // router.get('/ccf/news/:category?', lazyloadRouteHandler('./routes/ccf/news'));
3548
3545
 
3549
3546
  // The Brain
3550
3547
  router.get('/thebrain/:category?', lazyloadRouteHandler('./routes/thebrain/blog'));
@@ -29,19 +29,18 @@ module.exports = async (ctx) => {
29
29
  .get();
30
30
 
31
31
  const items = await Promise.all(
32
- list.map(
33
- async (item) =>
34
- await ctx.cache.tryGet(item.link, async () => {
35
- const detailResponse = await got({
36
- method: 'get',
37
- url: item.link,
38
- });
39
- const content = cheerio.load(detailResponse.data);
40
-
41
- item.description = content('.middle_box').html();
42
-
43
- return item;
44
- })
32
+ list.map((item) =>
33
+ ctx.cache.tryGet(item.link, async () => {
34
+ const detailResponse = await got({
35
+ method: 'get',
36
+ url: item.link,
37
+ });
38
+ const content = cheerio.load(detailResponse.data);
39
+
40
+ item.description = content('.middle_box').html();
41
+
42
+ return item;
43
+ })
45
44
  )
46
45
  );
47
46
 
@@ -31,21 +31,20 @@ module.exports = async (ctx) => {
31
31
  .get();
32
32
 
33
33
  const items = await Promise.all(
34
- list.map(
35
- async (item) =>
36
- await ctx.cache.tryGet(item.link, async () => {
37
- const detailResponse = await got({
38
- method: 'get',
39
- url: item.link,
40
- });
41
- const content = cheerio.load(detailResponse.data);
34
+ list.map((item) =>
35
+ ctx.cache.tryGet(item.link, async () => {
36
+ const detailResponse = await got({
37
+ method: 'get',
38
+ url: item.link,
39
+ });
40
+ const content = cheerio.load(detailResponse.data);
42
41
 
43
- content('.newsTitle, .ads').remove();
42
+ content('.newsTitle, .ads').remove();
44
43
 
45
- item.description = content('div[itemprop="text"]').html();
44
+ item.description = content('div[itemprop="text"]').html();
46
45
 
47
- return item;
48
- })
46
+ return item;
47
+ })
49
48
  )
50
49
  );
51
50
 
@@ -43,21 +43,20 @@ module.exports = async (ctx) => {
43
43
  .get();
44
44
 
45
45
  const items = await Promise.all(
46
- list.map(
47
- async (item) =>
48
- await ctx.cache.tryGet(item.link, async () => {
49
- const detailResponse = await got({
50
- method: 'get',
51
- url: item.link,
52
- });
53
- const content = cheerio.load(detailResponse.data);
46
+ list.map((item) =>
47
+ ctx.cache.tryGet(item.link, async () => {
48
+ const detailResponse = await got({
49
+ method: 'get',
50
+ url: item.link,
51
+ });
52
+ const content = cheerio.load(detailResponse.data);
54
53
 
55
- content('.newsTitle, .ads').remove();
54
+ content('.newsTitle, .ads').remove();
56
55
 
57
- item.description = content('div[itemprop="text"]').html();
56
+ item.description = content('div[itemprop="text"]').html();
58
57
 
59
- return item;
60
- })
58
+ return item;
59
+ })
61
60
  )
62
61
  );
63
62
 
@@ -94,23 +94,22 @@ module.exports = async (ctx) => {
94
94
  }));
95
95
 
96
96
  const items = await Promise.all(
97
- list.map(
98
- async (item) =>
99
- await ctx.cache.tryGet(item.link, async () => {
100
- const detailResponse = await got({
101
- method: 'get',
102
- url: item.link,
103
- });
104
- const content = cheerio.load(detailResponse.data);
97
+ list.map((item) =>
98
+ ctx.cache.tryGet(item.link, async () => {
99
+ const detailResponse = await got({
100
+ method: 'get',
101
+ url: item.link,
102
+ });
103
+ const content = cheerio.load(detailResponse.data);
105
104
 
106
- content('img[_ngcontent-c11]').each(function () {
107
- content(this).attr('alt', '');
108
- });
105
+ content('img[_ngcontent-c11]').each(function () {
106
+ content(this).attr('alt', '');
107
+ });
109
108
 
110
- item.description = content('.text').html();
109
+ item.description = content('.text').html();
111
110
 
112
- return item;
113
- })
111
+ return item;
112
+ })
114
113
  )
115
114
  );
116
115
 
@@ -22,20 +22,19 @@ module.exports = async (ctx) => {
22
22
  .get();
23
23
 
24
24
  const items = await Promise.all(
25
- list.map(
26
- async (item) =>
27
- await ctx.cache.tryGet(item.link, async () => {
28
- const detailResponse = await got({
29
- method: 'get',
30
- url: item.link,
31
- });
32
- const content = cheerio.load(detailResponse.data);
25
+ list.map((item) =>
26
+ ctx.cache.tryGet(item.link, async () => {
27
+ const detailResponse = await got({
28
+ method: 'get',
29
+ url: item.link,
30
+ });
31
+ const content = cheerio.load(detailResponse.data);
33
32
 
34
- item.description = content('.post-content').html();
35
- item.pubDate = Date.parse(content('small time').attr('datetime'));
33
+ item.description = content('.post-content').html();
34
+ item.pubDate = Date.parse(content('small time').attr('datetime'));
36
35
 
37
- return item;
38
- })
36
+ return item;
37
+ })
39
38
  )
40
39
  );
41
40
 
@@ -1,53 +1,9 @@
1
1
  const art = require('art-template');
2
+ const json = require('@/views/json');
2
3
 
3
4
  // We may add more control over it later
4
5
 
5
- /**
6
- * This function should be used by RSSHub middleware only.
7
- * @param {object} data ctx.state.data
8
- * @returns `JSON.stringify`-ed [JSON Feed](https://www.jsonfeed.org/)
9
- */
10
- const json = (data) => {
11
- const jsonFeed = {
12
- version: 'https://jsonfeed.org/version/1.1',
13
- title: data.title || 'RSSHub',
14
- home_page_url: data.link || 'https://docs.rsshub.app',
15
- feed_url: data.feedLink,
16
- description: `${data.description || data.title} - Made with love by RSSHub(https://github.com/DIYgod/RSSHub)`,
17
- icon: data.image,
18
- authors: typeof data.author === 'string' ? [{ name: data.author }] : data.author,
19
- language: data.language || 'zh-cn',
20
- items: data.item.map((item) => ({
21
- id: item.guid || item.id || item.link,
22
- url: item.link,
23
- title: item.title,
24
- content_html: (item.content && item.content.html) || item.description || item.title,
25
- content_text: item.content && item.content.text,
26
- image: item.image,
27
- banner_image: item.banner,
28
- date_published: item.pubDate,
29
- date_modified: item.updated,
30
- authors: typeof item.author === 'string' ? [{ name: item.author }] : item.author,
31
- tags: typeof item.category === 'string' ? [item.category] : item.category,
32
- language: item.language,
33
- attachments: item.enclosure_url
34
- ? [
35
- {
36
- url: item.enclosure_url,
37
- mime_type: item.enclosure_type,
38
- title: item.enclosure_title,
39
- size_in_bytes: item.enclosure_length,
40
- duration_in_seconds: item.itunes_duration,
41
- },
42
- ]
43
- : undefined,
44
- _extra: item._extra || undefined,
45
- })),
46
- };
47
- return JSON.stringify(jsonFeed, null, 4);
48
- };
49
-
50
6
  module.exports = {
51
7
  art,
52
- json,
8
+ json, // This should be used by RSSHub middleware only.
53
9
  };
@@ -187,9 +187,9 @@ const normalizeUrl = (url, bypassHostCheck = false) => {
187
187
  * @param {boolean} bypassHostCheck - Whether to bypass host check.
188
188
  * @return {Promise<object>} - An object containing the article and its metadata.
189
189
  */
190
- const fetchArticle = async (ctx, url, bypassHostCheck = false) => {
190
+ const fetchArticle = (ctx, url, bypassHostCheck = false) => {
191
191
  url = normalizeUrl(url, bypassHostCheck);
192
- return await ctx.cache.tryGet(url, async () => {
192
+ return ctx.cache.tryGet(url, async () => {
193
193
  const response = await got(url);
194
194
  const $ = cheerio.load(response.data);
195
195
 
@@ -222,7 +222,7 @@ const fetchArticle = async (ctx, url, bypassHostCheck = false) => {
222
222
 
223
223
  let mpName = $('.profile_nickname').first().text();
224
224
  mpName = mpName && mpName.trim();
225
- return { title, author, description, summary, pubDate, mpName, link: url };
225
+ return { title, author, description, summary, pubDate, mpName, link: response.url };
226
226
  });
227
227
  };
228
228
 
@@ -0,0 +1,47 @@
1
+ const got = require('@/utils/got');
2
+ const cheerio = require('cheerio');
3
+ const { parseDate } = require('@/utils/parse-date');
4
+ const timezone = require('@/utils/timezone');
5
+
6
+ module.exports = async (ctx) => {
7
+ const baseUrl = 'http://www.0818tuan.com';
8
+ const { listId = '1' } = ctx.params;
9
+ const url = `${baseUrl}/list-${listId}-0.html`;
10
+
11
+ const { data: response } = await got(url);
12
+ const $ = cheerio.load(response);
13
+
14
+ const list = $(listId === '3' ? '.col-xs-12 .thumbnail > a' : '.col-md-8 .list-group > a')
15
+ .toArray()
16
+ .map((item) => {
17
+ item = $(item);
18
+ return {
19
+ title: item.attr('title'),
20
+ link: `${baseUrl}${item.attr('href')}`,
21
+ };
22
+ })
23
+ .filter((i) => !i.link.includes('m.0818tuan.com/tb1111.php'));
24
+
25
+ const items = await Promise.all(
26
+ list.map((item) =>
27
+ ctx.cache.tryGet(item.link, async () => {
28
+ const { data: response } = await got(item.link);
29
+ const $ = cheerio.load(response);
30
+
31
+ $('.pageLink, .alert, p[style="margin:15px;"]').remove();
32
+
33
+ item.description = $('.post-content').html();
34
+ item.pubDate = timezone(parseDate($('.panel-body > .text-center').text().replace('时间:', ''), 'YYYY-MM-DD HH:mm:ss'), +8);
35
+
36
+ return item;
37
+ })
38
+ )
39
+ );
40
+
41
+ ctx.state.data = {
42
+ title: $('head title').text(),
43
+ link: url,
44
+ image: 'http://www.0818tuan.com/favicon.ico',
45
+ item: items,
46
+ };
47
+ };
@@ -0,0 +1,3 @@
1
+ module.exports = {
2
+ '/:listId?': ['TonyRL'],
3
+ };
@@ -0,0 +1,13 @@
1
+ module.exports = {
2
+ '0818tuan.com': {
3
+ _name: '0818 团',
4
+ '.': [
5
+ {
6
+ title: '分类',
7
+ docs: 'https://docs.rsshub.app/shopping.html#_0818-tuan',
8
+ source: ['/:listId', '/'],
9
+ target: (params) => `/0818tuan${params.listId ? '/' + params.listId.replace('list-', '').replace('-0.html', '') : ''}`,
10
+ },
11
+ ],
12
+ },
13
+ };
@@ -0,0 +1,3 @@
1
+ module.exports = (router) => {
2
+ router.get('/:listId?', require('./index'));
3
+ };
@@ -3,6 +3,15 @@ module.exports = {
3
3
  '/ds/:id': ['luyuhuang'],
4
4
  '/dy/:id': ['HendricksZheng'],
5
5
  '/dy2/:id': ['mjysci'],
6
+
7
+ '/music/artist/:id': ['metowolf'],
8
+ '/music/artist/songs/:id': ['ZhongMingKun'],
9
+ '/music/djradio/:id': ['magic-akari'],
10
+ '/music/playlist/:id': ['DIYgod'],
11
+ '/music/user/events/:id': ['Master-Hash'],
12
+ '/music/user/playlist/:uid': ['DIYgod'],
13
+ '/music/user/playrecords/:uid/:type?': ['alfredcai'],
14
+
6
15
  '/news/rank/:category?/:type?/:time?': ['nczitzk'],
7
16
  '/news/special/:type?': ['nczitzk'],
8
17
  '/open/vip': ['hoilc'],