rsshub 1.0.0-master.d3fbdfe → 1.0.0-master.d424adf

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 (505) hide show
  1. package/README.md +11 -23
  2. package/lib/app.js +2 -2
  3. package/lib/config.js +12 -1
  4. package/lib/index.js +1 -1
  5. package/lib/middleware/anti-hotlink.js +2 -2
  6. package/lib/middleware/parameter.js +47 -47
  7. package/lib/radar-rules.js +13 -30
  8. package/lib/radar.js +2 -1
  9. package/lib/router.js +35 -49
  10. package/lib/routes/miniflux/get_feeds.js +2 -2
  11. package/lib/utils/logger.js +14 -2
  12. package/lib/utils/rand-user-agent.js +3 -2
  13. package/lib/v2/141ppv/index.js +4 -1
  14. package/lib/v2/2048/index.js +12 -4
  15. package/lib/v2/8264/list.js +92 -0
  16. package/lib/v2/8264/maintainer.js +3 -0
  17. package/lib/v2/8264/radar.js +355 -0
  18. package/lib/v2/8264/router.js +3 -0
  19. package/lib/v2/8264/templates/description.art +5 -0
  20. package/lib/v2/abskoop/index.js +21 -31
  21. package/lib/v2/abskoop/nsfw.js +16 -37
  22. package/lib/v2/abskoop/radar.js +13 -2
  23. package/lib/v2/ainvest/article.js +42 -0
  24. package/lib/v2/ainvest/maintainer.js +4 -0
  25. package/lib/v2/ainvest/news.js +39 -0
  26. package/lib/v2/ainvest/radar.js +19 -0
  27. package/lib/v2/ainvest/router.js +4 -0
  28. package/lib/v2/ainvest/utils.js +73 -0
  29. package/lib/v2/{scitation/journal.js → aip/journal-pupp.js} +2 -2
  30. package/lib/v2/aip/journal.js +55 -0
  31. package/lib/v2/{scitation → aip}/maintainer.js +0 -1
  32. package/lib/v2/aip/radar.js +13 -0
  33. package/lib/v2/aip/router.js +4 -0
  34. package/lib/v2/alternativeto/maintainer.js +4 -0
  35. package/lib/v2/alternativeto/platform.js +32 -0
  36. package/lib/v2/alternativeto/radar.js +19 -0
  37. package/lib/v2/alternativeto/router.js +4 -0
  38. package/lib/v2/alternativeto/software.js +32 -0
  39. package/lib/v2/alternativeto/utils.js +22 -0
  40. package/lib/v2/apnews/topics.js +1 -0
  41. package/lib/v2/apple/apps.js +51 -0
  42. package/lib/v2/apple/maintainer.js +1 -0
  43. package/lib/v2/apple/radar.js +8 -0
  44. package/lib/v2/apple/router.js +1 -0
  45. package/lib/v2/appstore/maintainer.js +0 -1
  46. package/lib/v2/appstore/radar.js +0 -6
  47. package/lib/v2/appstore/router.js +0 -1
  48. package/lib/v2/aqara/maintainer.js +4 -1
  49. package/lib/v2/aqara/news.js +25 -25
  50. package/lib/v2/aqara/post.js +92 -0
  51. package/lib/v2/aqara/radar.js +24 -6
  52. package/lib/v2/aqara/router.js +12 -1
  53. package/lib/v2/aqara/templates/figure.art +3 -0
  54. package/lib/v2/baidu/maintainer.js +3 -2
  55. package/lib/v2/baidu/radar.js +15 -1
  56. package/lib/v2/baidu/router.js +3 -2
  57. package/lib/v2/baidu/templates/tieba_search.art +1 -0
  58. package/lib/v2/baidu/tieba/forum.js +4 -3
  59. package/lib/v2/baidu/tieba/search.js +63 -0
  60. package/lib/v2/bangumi/maintainer.js +1 -0
  61. package/lib/v2/bangumi/radar.js +9 -9
  62. package/lib/v2/bangumi/router.js +1 -2
  63. package/lib/v2/bangumi/tv/subject/ep.js +4 -3
  64. package/lib/v2/bangumi/tv/subject/index.js +18 -16
  65. package/lib/v2/bangumi/tv/subject/offcial-subject-api.js +3 -2
  66. package/lib/v2/bangumi/tv/subject/utils.js +5 -0
  67. package/lib/{routes → v2}/bbc/index.js +4 -4
  68. package/lib/v2/bbc/maintainer.js +4 -0
  69. package/lib/v2/bbc/radar.js +11 -0
  70. package/lib/v2/bbc/router.js +3 -0
  71. package/lib/v2/bilibili/article.js +2 -17
  72. package/lib/v2/bilibili/cache.js +85 -27
  73. package/lib/v2/bilibili/danmaku.js +9 -2
  74. package/lib/v2/bilibili/dynamic.js +54 -19
  75. package/lib/v2/bilibili/fav.js +2 -0
  76. package/lib/v2/bilibili/followings_article.js +1 -10
  77. package/lib/v2/bilibili/followings_dynamic.js +25 -11
  78. package/lib/v2/bilibili/maintainer.js +3 -2
  79. package/lib/v2/bilibili/router.js +3 -2
  80. package/lib/v2/bilibili/userFav.js +2 -0
  81. package/lib/v2/bilibili/utils.js +67 -3
  82. package/lib/v2/bilibili/video-all.js +1 -5
  83. package/lib/v2/bilibili/video.js +8 -6
  84. package/lib/v2/bilibili/watchlater.js +44 -0
  85. package/lib/v2/bjfu/grs.js +22 -36
  86. package/lib/v2/bjfu/it/index.js +9 -7
  87. package/lib/v2/bjfu/it/utils.js +38 -29
  88. package/lib/v2/bjfu/jwc/index.js +3 -8
  89. package/lib/v2/bjfu/jwc/utils.js +26 -29
  90. package/lib/v2/bjfu/kjc.js +25 -38
  91. package/lib/v2/bjfu/news/index.js +12 -9
  92. package/lib/v2/bjfu/news/utils.js +17 -19
  93. package/lib/v2/bloomberg/utils.js +6 -4
  94. package/lib/v2/boc/maintainer.js +3 -0
  95. package/lib/v2/boc/radar.js +13 -0
  96. package/lib/v2/boc/router.js +3 -0
  97. package/lib/{routes → v2}/boc/whpj.js +16 -15
  98. package/lib/v2/booru/maintainer.js +3 -0
  99. package/lib/v2/booru/mmda.js +47 -0
  100. package/lib/v2/booru/radar.js +12 -0
  101. package/lib/v2/booru/router.js +3 -0
  102. package/lib/v2/caixin/latest.js +7 -12
  103. package/lib/v2/caixin/radar.js +1 -1
  104. package/lib/v2/cas/genetics/xshd.js +29 -0
  105. package/lib/v2/cas/maintainer.js +1 -0
  106. package/lib/v2/cas/radar.js +16 -8
  107. package/lib/v2/cas/router.js +1 -0
  108. package/lib/{routes → v2}/caus/index.js +7 -6
  109. package/lib/v2/caus/maintainer.js +3 -0
  110. package/lib/v2/caus/radar.js +13 -0
  111. package/lib/v2/caus/router.js +3 -0
  112. package/lib/v2/cbc/maintainer.js +3 -0
  113. package/lib/v2/cbc/radar.js +13 -0
  114. package/lib/v2/cbc/router.js +3 -0
  115. package/lib/{routes → v2}/cbc/topics.js +11 -26
  116. package/lib/v2/chinawriter/index.js +88 -0
  117. package/lib/v2/chinawriter/maintainer.js +3 -0
  118. package/lib/v2/chinawriter/radar.js +660 -0
  119. package/lib/v2/chinawriter/router.js +3 -0
  120. package/lib/v2/cna/index.js +63 -0
  121. package/lib/v2/cna/maintainer.js +3 -0
  122. package/lib/v2/cna/radar.js +13 -0
  123. package/lib/v2/cna/router.js +3 -0
  124. package/lib/v2/cyzone/author.js +20 -0
  125. package/lib/v2/cyzone/index.js +27 -0
  126. package/lib/v2/cyzone/label.js +20 -0
  127. package/lib/v2/cyzone/maintainer.js +7 -0
  128. package/lib/v2/cyzone/radar.js +25 -0
  129. package/lib/v2/cyzone/router.js +6 -0
  130. package/lib/v2/cyzone/util.js +125 -0
  131. package/lib/v2/deltaio/blog.js +33 -0
  132. package/lib/v2/deltaio/maintainer.js +3 -0
  133. package/lib/v2/deltaio/radar.js +13 -0
  134. package/lib/v2/deltaio/router.js +3 -0
  135. package/lib/v2/discourse/maintainer.js +4 -0
  136. package/lib/v2/discourse/notifications.js +39 -0
  137. package/lib/v2/discourse/posts.js +25 -0
  138. package/lib/v2/discourse/router.js +4 -0
  139. package/lib/v2/discourse/utils.js +12 -0
  140. package/lib/v2/discuz/discuz.js +156 -0
  141. package/lib/v2/discuz/maintainer.js +5 -0
  142. package/lib/v2/discuz/radar.js +0 -0
  143. package/lib/v2/discuz/router.js +5 -0
  144. package/lib/v2/dlnews/category.js +81 -0
  145. package/lib/v2/dlnews/maintainer.js +3 -0
  146. package/lib/v2/dlnews/radar.js +19 -0
  147. package/lib/v2/dlnews/router.js +3 -0
  148. package/lib/v2/dlnews/templates/description.art +24 -0
  149. package/lib/v2/dlnews/utils.js +22 -0
  150. package/lib/v2/dn/maintainer.js +3 -0
  151. package/lib/v2/dn/news.js +90 -0
  152. package/lib/v2/dn/radar.js +55 -0
  153. package/lib/v2/dn/router.js +3 -0
  154. package/lib/v2/dn/templates/description.art +15 -0
  155. package/lib/v2/domp4/detail.js +4 -2
  156. package/lib/v2/domp4/latest.js +7 -4
  157. package/lib/v2/domp4/utils.js +15 -2
  158. package/lib/v2/dorohedoro/news.js +3 -1
  159. package/lib/v2/douyin/live.js +45 -15
  160. package/lib/v2/dribbble/maintainer.js +5 -0
  161. package/lib/v2/dribbble/radar.js +25 -0
  162. package/lib/v2/dribbble/router.js +5 -0
  163. package/lib/v2/dribbble/templates/description.art +15 -0
  164. package/lib/v2/dribbble/utils.js +156 -0
  165. package/lib/v2/economist/full.js +4 -2
  166. package/lib/v2/fantia/user.js +16 -0
  167. package/lib/v2/farmatters/index.js +85 -0
  168. package/lib/v2/farmatters/maintainer.js +7 -0
  169. package/lib/v2/farmatters/radar.js +36 -0
  170. package/lib/v2/farmatters/router.js +6 -0
  171. package/lib/v2/farmatters/templates/description.art +9 -0
  172. package/lib/v2/finology/radar.js +4 -4
  173. package/lib/v2/foresightnews/article.js +22 -0
  174. package/lib/v2/foresightnews/column.js +28 -0
  175. package/lib/v2/foresightnews/index.js +13 -76
  176. package/lib/v2/foresightnews/maintainer.js +1 -0
  177. package/lib/v2/foresightnews/news.js +23 -0
  178. package/lib/v2/foresightnews/radar.js +2 -2
  179. package/lib/v2/foresightnews/router.js +4 -1
  180. package/lib/v2/foresightnews/templates/description.art +13 -0
  181. package/lib/v2/foresightnews/util.js +96 -0
  182. package/lib/v2/ft/myft.js +9 -2
  183. package/lib/v2/gamegene/maintainer.js +3 -0
  184. package/lib/v2/gamegene/news.js +50 -0
  185. package/lib/v2/gamegene/radar.js +13 -0
  186. package/lib/v2/gamegene/router.js +3 -0
  187. package/lib/v2/github/maintainer.js +1 -0
  188. package/lib/v2/github/pulse.js +87 -0
  189. package/lib/v2/github/radar.js +6 -0
  190. package/lib/v2/github/router.js +1 -0
  191. package/lib/v2/github/templates/pulse-description.art +24 -0
  192. package/lib/v2/gogoanimehd/maintainer.js +3 -0
  193. package/lib/v2/gogoanimehd/radar.js +13 -0
  194. package/lib/v2/gogoanimehd/recent-releases.js +37 -0
  195. package/lib/v2/gogoanimehd/router.js +3 -0
  196. package/lib/v2/gov/chongqing/gzw.js +68 -0
  197. package/lib/v2/gov/chongqing/sydwgkzp.js +47 -0
  198. package/lib/v2/gov/maintainer.js +4 -0
  199. package/lib/v2/gov/npc/index.js +47 -0
  200. package/lib/v2/gov/radar.js +37 -0
  201. package/lib/v2/gov/router.js +4 -0
  202. package/lib/v2/gov/shenzhen/zjj/index.js +45 -0
  203. package/lib/v2/grist/radar.js +4 -4
  204. package/lib/v2/grubstreet/maintainer.js +4 -0
  205. package/lib/v2/grubstreet/radar.js +13 -0
  206. package/lib/v2/grubstreet/router.js +3 -0
  207. package/lib/v2/grubstreet/utils.js +84 -0
  208. package/lib/v2/gxmzu/lib.js +70 -0
  209. package/lib/v2/gxmzu/maintainer.js +1 -0
  210. package/lib/v2/gxmzu/radar.js +8 -0
  211. package/lib/v2/gxmzu/router.js +1 -0
  212. package/lib/v2/hackyournews/index.js +50 -0
  213. package/lib/v2/hackyournews/maintainer.js +3 -0
  214. package/lib/v2/hackyournews/radar.js +13 -0
  215. package/lib/v2/hackyournews/router.js +3 -0
  216. package/lib/v2/hrbeu/radar.js +3 -3
  217. package/lib/v2/hrbeu/router.js +1 -1
  218. package/lib/v2/hrbeu/uae/news.js +66 -0
  219. package/lib/v2/icbc/maintainer.js +3 -0
  220. package/lib/v2/icbc/radar.js +13 -0
  221. package/lib/v2/icbc/router.js +3 -0
  222. package/lib/v2/icbc/whpj.js +57 -0
  223. package/lib/v2/iqiyi/maintainer.js +1 -1
  224. package/lib/v2/iqiyi/video.js +42 -33
  225. package/lib/v2/ithome/tag.js +14 -3
  226. package/lib/v2/japanpost/maintainer.js +3 -0
  227. package/lib/v2/japanpost/radar.js +22 -0
  228. package/lib/v2/japanpost/router.js +3 -0
  229. package/lib/v2/japanpost/templates/track_item_desc.art +14 -0
  230. package/lib/{routes → v2}/japanpost/track.js +32 -29
  231. package/lib/{routes → v2}/japanpost/utils.js +10 -11
  232. package/lib/v2/kamen-rider-official/maintainer.js +3 -0
  233. package/lib/v2/kamen-rider-official/news.js +110 -0
  234. package/lib/v2/kamen-rider-official/radar.js +18 -0
  235. package/lib/v2/kamen-rider-official/router.js +3 -0
  236. package/lib/v2/kamen-rider-official/templates/description.art +10 -0
  237. package/lib/v2/kantarworldpanel/index.js +96 -0
  238. package/lib/v2/kantarworldpanel/maintainer.js +3 -0
  239. package/lib/v2/kantarworldpanel/radar.js +199 -0
  240. package/lib/v2/kantarworldpanel/router.js +3 -0
  241. package/lib/v2/kantarworldpanel/templates/description.art +9 -0
  242. package/lib/v2/kunchengblog/essay.js +35 -19
  243. package/lib/v2/kunchengblog/radar.js +1 -1
  244. package/lib/v2/kunchengblog/router.js +1 -1
  245. package/lib/v2/latepost/index.js +83 -29
  246. package/lib/v2/latepost/radar.js +7 -2
  247. package/lib/v2/latepost/router.js +1 -1
  248. package/lib/v2/leetcode/articles.js +1 -1
  249. package/lib/v2/lemmy/index.js +61 -0
  250. package/lib/v2/lemmy/maintainer.js +3 -0
  251. package/lib/v2/lemmy/router.js +3 -0
  252. package/lib/v2/liulinblog/index.js +98 -0
  253. package/lib/v2/liulinblog/maintainer.js +6 -2
  254. package/lib/v2/liulinblog/radar.js +36 -16
  255. package/lib/v2/liulinblog/router.js +7 -3
  256. package/lib/v2/lsnu/jiaowc/tzgg.js +52 -0
  257. package/lib/v2/lsnu/maintainer.js +3 -0
  258. package/lib/v2/lsnu/radar.js +13 -0
  259. package/lib/v2/lsnu/router.js +3 -0
  260. package/lib/v2/luxiangdong/archive.js +28 -0
  261. package/lib/v2/luxiangdong/maintainer.js +3 -0
  262. package/lib/v2/luxiangdong/radar.js +13 -0
  263. package/lib/v2/luxiangdong/router.js +3 -0
  264. package/lib/v2/mail/imap.js +99 -0
  265. package/lib/v2/mail/maintainer.js +3 -0
  266. package/lib/v2/mail/router.js +3 -0
  267. package/lib/v2/mihoyo/bbs/img-ranking.js +106 -0
  268. package/lib/v2/mihoyo/{bbs.js → bbs/official.js} +1 -1
  269. package/lib/v2/mihoyo/bbs/static-data.js +137 -0
  270. package/lib/v2/mihoyo/maintainer.js +1 -0
  271. package/lib/v2/mihoyo/radar.js +7 -1
  272. package/lib/v2/mihoyo/router.js +2 -1
  273. package/lib/v2/mixcloud/index.js +5 -22
  274. package/lib/v2/mixcloud/queries.js +187 -179
  275. package/lib/v2/mydrivers/cid.js +38 -0
  276. package/lib/v2/mydrivers/index.js +40 -89
  277. package/lib/v2/mydrivers/maintainer.js +5 -1
  278. package/lib/v2/mydrivers/radar.js +205 -4
  279. package/lib/v2/mydrivers/rank.js +40 -0
  280. package/lib/v2/mydrivers/router.js +4 -1
  281. package/lib/v2/mydrivers/templates/description.art +5 -0
  282. package/lib/v2/mydrivers/util.js +125 -0
  283. package/lib/v2/mymusicsheet/maintainer.js +3 -0
  284. package/lib/v2/mymusicsheet/radar.js +13 -0
  285. package/lib/v2/mymusicsheet/router.js +3 -0
  286. package/lib/v2/mymusicsheet/templates/description.art +41 -0
  287. package/lib/v2/mymusicsheet/usersheets.js +120 -0
  288. package/lib/v2/netflav/index.js +39 -0
  289. package/lib/v2/netflav/maintainer.js +4 -0
  290. package/lib/v2/netflav/radar.js +13 -0
  291. package/lib/v2/netflav/router.js +3 -0
  292. package/lib/v2/netflav/templates/description.art +8 -0
  293. package/lib/v2/news/whxw.js +1 -0
  294. package/lib/v2/newzmz/index.js +53 -77
  295. package/lib/v2/newzmz/maintainer.js +2 -2
  296. package/lib/v2/newzmz/router.js +1 -3
  297. package/lib/v2/newzmz/templates/description.art +59 -7
  298. package/lib/v2/newzmz/util.js +166 -0
  299. package/lib/v2/niaogebiji/cat.js +53 -0
  300. package/lib/v2/niaogebiji/index.js +41 -0
  301. package/lib/v2/niaogebiji/maintainer.js +6 -0
  302. package/lib/v2/niaogebiji/radar.js +25 -0
  303. package/lib/v2/niaogebiji/router.js +5 -0
  304. package/lib/v2/niaogebiji/today.js +34 -0
  305. package/lib/v2/nju/gra.js +13 -5
  306. package/lib/v2/nwafu/all.js +43 -0
  307. package/lib/v2/nwafu/maintainer.js +3 -0
  308. package/lib/v2/nwafu/radar.js +13 -0
  309. package/lib/v2/nwafu/router.js +3 -0
  310. package/lib/v2/nwafu/utils.js +35 -0
  311. package/lib/v2/nytimes/index.js +1 -4
  312. package/lib/v2/nytimes/utils.js +5 -0
  313. package/lib/v2/oreno3d/radar.js +1 -1
  314. package/lib/v2/osu/beatmaps/packs.js +35 -0
  315. package/lib/v2/osu/maintainer.js +3 -0
  316. package/lib/v2/osu/radar.js +13 -0
  317. package/lib/v2/osu/router.js +3 -0
  318. package/lib/v2/pornhub/category.js +44 -0
  319. package/lib/v2/pornhub/category_url.js +25 -0
  320. package/lib/v2/pornhub/maintainer.js +8 -0
  321. package/lib/v2/pornhub/model.js +29 -0
  322. package/lib/v2/pornhub/pornstar.js +29 -0
  323. package/lib/v2/pornhub/radar.js +46 -0
  324. package/lib/v2/pornhub/router.js +8 -0
  325. package/lib/v2/pornhub/search.js +23 -0
  326. package/lib/v2/pornhub/templates/description.art +11 -0
  327. package/lib/v2/pornhub/users.js +30 -0
  328. package/lib/v2/pornhub/utils.js +30 -0
  329. package/lib/v2/radio-canada/latest.js +8 -1
  330. package/lib/v2/reuters/common.js +52 -26
  331. package/lib/v2/rfi/maintainer.js +1 -1
  332. package/lib/v2/rfi/news.js +9 -2
  333. package/lib/v2/rfi/router.js +1 -1
  334. package/lib/v2/rsc/journal.js +106 -0
  335. package/lib/v2/rsc/maintainer.js +3 -0
  336. package/lib/v2/rsc/radar.js +23 -0
  337. package/lib/v2/rsc/router.js +3 -0
  338. package/lib/v2/rsc/templates/image.art +5 -0
  339. package/lib/v2/rsshub/maintainer.js +1 -0
  340. package/lib/v2/rsshub/router.js +1 -0
  341. package/lib/v2/rsshub/routes.js +14 -18
  342. package/lib/v2/rsshub/transform/html.js +9 -0
  343. package/lib/v2/rsshub/transform/json.js +1 -0
  344. package/lib/v2/rsshub/transform/sitemap.js +52 -0
  345. package/lib/v2/science/radar.js +2 -2
  346. package/lib/v2/scut/maintainer.js +1 -0
  347. package/lib/v2/scut/radar.js +34 -0
  348. package/lib/v2/scut/router.js +1 -0
  349. package/lib/v2/scut/smae/notice.js +54 -0
  350. package/lib/v2/sourceforge/index.js +33 -0
  351. package/lib/v2/sourceforge/maintainer.js +3 -0
  352. package/lib/v2/sourceforge/radar.js +12 -0
  353. package/lib/v2/sourceforge/router.js +3 -0
  354. package/lib/v2/sqmc/maintainer.js +3 -0
  355. package/lib/v2/sqmc/radar.js +13 -0
  356. package/lib/v2/sqmc/router.js +3 -0
  357. package/lib/v2/sqmc/www.js +49 -0
  358. package/lib/v2/stheadline/std/realtime.js +8 -6
  359. package/lib/v2/stockedge/daily-news.js +1 -1
  360. package/lib/v2/stockedge/radar.js +1 -1
  361. package/lib/v2/stockedge/utils.js +1 -0
  362. package/lib/v2/surfshark/blog.js +91 -0
  363. package/lib/v2/surfshark/maintainer.js +3 -0
  364. package/lib/v2/surfshark/radar.js +90 -0
  365. package/lib/v2/surfshark/router.js +3 -0
  366. package/lib/v2/surfshark/templates/description.art +5 -0
  367. package/lib/v2/tesla/cx.js +119 -0
  368. package/lib/v2/tesla/maintainer.js +1 -0
  369. package/lib/v2/tesla/radar.js +13 -1
  370. package/lib/v2/tesla/router.js +1 -0
  371. package/lib/v2/tesla/templates/description.art +140 -0
  372. package/lib/v2/test/index.js +1 -1
  373. package/lib/v2/tfc-taiwan/index.js +36 -0
  374. package/lib/v2/tfc-taiwan/maintainer.js +10 -0
  375. package/lib/v2/tfc-taiwan/radar.js +31 -0
  376. package/lib/v2/tfc-taiwan/router.js +7 -0
  377. package/lib/v2/tfc-taiwan/templates/article.art +7 -0
  378. package/lib/v2/tfc-taiwan/utils.js +56 -0
  379. package/lib/v2/thepaper/utils.js +19 -13
  380. package/lib/v2/thwiki/radar.js +1 -1
  381. package/lib/v2/tiktok/router.js +1 -1
  382. package/lib/v2/tiktok/templates/user.art +5 -1
  383. package/lib/v2/tiktok/user.js +5 -1
  384. package/lib/v2/toodaylab/index.js +99 -0
  385. package/lib/v2/toodaylab/maintainer.js +7 -0
  386. package/lib/v2/toodaylab/radar.js +37 -0
  387. package/lib/v2/toodaylab/router.js +3 -0
  388. package/lib/{routes → v2}/tophub/index.js +12 -6
  389. package/lib/v2/tophub/maintainer.js +3 -0
  390. package/lib/v2/tophub/radar.js +13 -0
  391. package/lib/v2/tophub/router.js +3 -0
  392. package/lib/v2/udn/breaking-news.js +10 -5
  393. package/lib/v2/ustc/eeis.js +5 -4
  394. package/lib/v2/ustc/sist.js +6 -5
  395. package/lib/v2/v2ex/maintainer.js +5 -0
  396. package/lib/v2/v2ex/post.js +35 -0
  397. package/lib/v2/v2ex/radar.js +35 -0
  398. package/lib/v2/v2ex/router.js +5 -0
  399. package/lib/{routes → v2}/v2ex/tab.js +17 -21
  400. package/lib/{routes → v2}/v2ex/topics.js +1 -1
  401. package/lib/v2/weibo/oasis/user.js +4 -3
  402. package/lib/v2/whu/cs.js +71 -0
  403. package/lib/v2/whu/gs/index.js +85 -0
  404. package/lib/v2/whu/maintainer.js +5 -0
  405. package/lib/v2/whu/news.js +102 -0
  406. package/lib/v2/whu/radar.js +27 -0
  407. package/lib/v2/whu/router.js +5 -0
  408. package/lib/v2/x-mol/maintainer.js +4 -0
  409. package/lib/v2/x-mol/news.js +63 -0
  410. package/lib/v2/x-mol/paper.js +73 -0
  411. package/lib/v2/x-mol/radar.js +25 -0
  412. package/lib/v2/x-mol/router.js +4 -0
  413. package/lib/v2/x-mol/templates/description.art +6 -0
  414. package/lib/v2/x-mol/utils.js +3 -0
  415. package/lib/v2/xiaohongshu/user.js +33 -9
  416. package/lib/v2/xiaohongshu/util.js +17 -21
  417. package/lib/v2/xiaote/index.js +48 -0
  418. package/lib/v2/xiaote/maintainer.js +3 -0
  419. package/lib/v2/xiaote/radar.js +13 -0
  420. package/lib/v2/xiaote/router.js +3 -0
  421. package/lib/v2/xinpianchang/index.js +19 -0
  422. package/lib/v2/xinpianchang/maintainer.js +4 -0
  423. package/lib/v2/xinpianchang/radar.js +28 -0
  424. package/lib/v2/xinpianchang/rank.js +33 -0
  425. package/lib/v2/xinpianchang/router.js +5 -0
  426. package/lib/v2/xinpianchang/templates/description.art +13 -0
  427. package/lib/v2/xinpianchang/util.js +110 -0
  428. package/lib/v2/xmut/jwc/bkjw.js +62 -0
  429. package/lib/v2/xmut/jwc/yjs.js +51 -0
  430. package/lib/v2/xmut/maintainer.js +3 -0
  431. package/lib/v2/xmut/radar.js +13 -0
  432. package/lib/v2/xmut/router.js +4 -0
  433. package/lib/v2/youtube/live.js +49 -0
  434. package/lib/v2/youtube/maintainer.js +1 -0
  435. package/lib/v2/youtube/radar.js +6 -0
  436. package/lib/v2/youtube/router.js +1 -0
  437. package/lib/v2/youtube/utils.js +12 -0
  438. package/lib/v2/yuque/utils.js +1 -0
  439. package/lib/v2/yyets/radar.js +2 -2
  440. package/lib/v2/zhihu/maintainer.js +4 -0
  441. package/lib/v2/zhihu/radar.js +24 -0
  442. package/lib/v2/zhihu/router.js +4 -0
  443. package/lib/v2/zhihu/xhu/auth.js +38 -0
  444. package/lib/v2/zhihu/xhu/collection.js +64 -0
  445. package/lib/v2/zhihu/xhu/question.js +44 -0
  446. package/lib/v2/zhihu/xhu/topic.js +70 -0
  447. package/lib/v2/zhihu/xhu/zhuanlan.js +83 -0
  448. package/lib/v2/zhubai/radar.js +2 -1
  449. package/lib/v2/zhubai/templates/description.art +41 -13
  450. package/lib/v2/zhubai/top20.js +31 -22
  451. package/lib/v2/zodgame/forum.js +61 -23
  452. package/lib/v2/zodgame/templates/forum.art +1 -1
  453. package/lib/views/welcome.art +1 -1
  454. package/package.json +50 -21
  455. package/lib/routes/cna/index.js +0 -54
  456. package/lib/routes/cyzone/author.js +0 -55
  457. package/lib/routes/cyzone/label.js +0 -53
  458. package/lib/routes/discuz/discuz.js +0 -148
  459. package/lib/routes/dribbble/utils.js +0 -94
  460. package/lib/routes/growincity/news.js +0 -49
  461. package/lib/routes/grubstreet/utils.js +0 -78
  462. package/lib/routes/kkj/news.js +0 -52
  463. package/lib/routes/mail/imap.js +0 -79
  464. package/lib/routes/niaogebiji/cat.js +0 -86
  465. package/lib/routes/niaogebiji/index.js +0 -40
  466. package/lib/routes/niaogebiji/today.js +0 -29
  467. package/lib/routes/npc/index.js +0 -42
  468. package/lib/routes/pornhub/category.js +0 -22
  469. package/lib/routes/pornhub/category_url.js +0 -34
  470. package/lib/routes/pornhub/model.js +0 -35
  471. package/lib/routes/pornhub/pornstar.js +0 -35
  472. package/lib/routes/pornhub/search.js +0 -22
  473. package/lib/routes/pornhub/users.js +0 -35
  474. package/lib/routes/universities/nwafu/54youth.js +0 -28
  475. package/lib/routes/universities/nwafu/cie.js +0 -28
  476. package/lib/routes/universities/nwafu/gs.js +0 -28
  477. package/lib/routes/universities/nwafu/jcc.js +0 -28
  478. package/lib/routes/universities/nwafu/jiaowu.js +0 -28
  479. package/lib/routes/universities/nwafu/lib.js +0 -28
  480. package/lib/routes/universities/nwafu/news.js +0 -28
  481. package/lib/routes/universities/nwafu/nic.js +0 -28
  482. package/lib/routes/universities/nwafu/yjshy.js +0 -28
  483. package/lib/routes/universities/whu/cs.js +0 -38
  484. package/lib/routes/universities/whu/news.js +0 -128
  485. package/lib/routes/v2ex/post.js +0 -39
  486. package/lib/routes/x-mol/news.js +0 -48
  487. package/lib/routes/x-mol/paper.js +0 -78
  488. package/lib/routes/x-mol/utils.js +0 -16
  489. package/lib/v2/abskoop/templates/description.art +0 -3
  490. package/lib/v2/appstore/update.js +0 -37
  491. package/lib/v2/hrbeu/uae/list.js +0 -57
  492. package/lib/v2/liulinblog/itnews.js +0 -23
  493. package/lib/v2/liulinblog/kuaixun.js +0 -17
  494. package/lib/v2/liulinblog/utils.js +0 -42
  495. package/lib/v2/newzmz/view.js +0 -57
  496. package/lib/v2/scitation/radar.js +0 -19
  497. package/lib/v2/scitation/router.js +0 -4
  498. package/lib/v2/scitation/section.js +0 -76
  499. /package/lib/v2/{scitation → aip}/templates/description.art +0 -0
  500. /package/lib/v2/{scitation → aip}/utils.js +0 -0
  501. /package/lib/{routes → v2}/bbc/utils.js +0 -0
  502. /package/lib/{routes → v2}/dribbble/keyword.js +0 -0
  503. /package/lib/{routes → v2}/dribbble/popular.js +0 -0
  504. /package/lib/{routes → v2}/dribbble/user.js +0 -0
  505. /package/lib/{routes → v2}/grubstreet/index.js +0 -0
@@ -0,0 +1,355 @@
1
+ module.exports = {
2
+ '8264.com': {
3
+ _name: '8264',
4
+ '.': [
5
+ {
6
+ title: '热门推荐',
7
+ docs: 'https://docs.rsshub.app/routes/new-media#8264-lie-biao',
8
+ source: ['/list/751'],
9
+ target: '/8264/list/751',
10
+ },
11
+ {
12
+ title: '户外知识',
13
+ docs: 'https://docs.rsshub.app/routes/new-media#8264-lie-biao',
14
+ source: ['/list/238'],
15
+ target: '/8264/list/238',
16
+ },
17
+ {
18
+ title: '户外装备',
19
+ docs: 'https://docs.rsshub.app/routes/new-media#8264-lie-biao',
20
+ source: ['/list/204'],
21
+ target: '/8264/list/204',
22
+ },
23
+ {
24
+ title: '业界',
25
+ docs: 'https://docs.rsshub.app/routes/new-media#8264-lie-biao',
26
+ source: ['/list/489'],
27
+ target: '/8264/list/489',
28
+ },
29
+ {
30
+ title: '国际',
31
+ docs: 'https://docs.rsshub.app/routes/new-media#8264-lie-biao',
32
+ source: ['/list/733'],
33
+ target: '/8264/list/733',
34
+ },
35
+ {
36
+ title: '专访',
37
+ docs: 'https://docs.rsshub.app/routes/new-media#8264-lie-biao',
38
+ source: ['/list/746'],
39
+ target: '/8264/list/746',
40
+ },
41
+ {
42
+ title: '图说',
43
+ docs: 'https://docs.rsshub.app/routes/new-media#8264-lie-biao',
44
+ source: ['/list/902'],
45
+ target: '/8264/list/902',
46
+ },
47
+ {
48
+ title: '户外',
49
+ docs: 'https://docs.rsshub.app/routes/new-media#8264-lie-biao',
50
+ source: ['/list/914'],
51
+ target: '/8264/list/914',
52
+ },
53
+ {
54
+ title: '登山',
55
+ docs: 'https://docs.rsshub.app/routes/new-media#8264-lie-biao',
56
+ source: ['/list/934'],
57
+ target: '/8264/list/934',
58
+ },
59
+ {
60
+ title: '攀岩',
61
+ docs: 'https://docs.rsshub.app/routes/new-media#8264-lie-biao',
62
+ source: ['/list/935'],
63
+ target: '/8264/list/935',
64
+ },
65
+ {
66
+ title: '徒步',
67
+ docs: 'https://docs.rsshub.app/routes/new-media#8264-lie-biao',
68
+ source: ['/list/242'],
69
+ target: '/8264/list/242',
70
+ },
71
+ {
72
+ title: '露营',
73
+ docs: 'https://docs.rsshub.app/routes/new-media#8264-lie-biao',
74
+ source: ['/list/950'],
75
+ target: '/8264/list/950',
76
+ },
77
+ {
78
+ title: '安全急救',
79
+ docs: 'https://docs.rsshub.app/routes/new-media#8264-lie-biao',
80
+ source: ['/list/931'],
81
+ target: '/8264/list/931',
82
+ },
83
+ {
84
+ title: '领队',
85
+ docs: 'https://docs.rsshub.app/routes/new-media#8264-lie-biao',
86
+ source: ['/list/920'],
87
+ target: '/8264/list/920',
88
+ },
89
+ {
90
+ title: '登雪山',
91
+ docs: 'https://docs.rsshub.app/routes/new-media#8264-lie-biao',
92
+ source: ['/list/915'],
93
+ target: '/8264/list/915',
94
+ },
95
+ {
96
+ title: '攀岩',
97
+ docs: 'https://docs.rsshub.app/routes/new-media#8264-lie-biao',
98
+ source: ['/list/916'],
99
+ target: '/8264/list/916',
100
+ },
101
+ {
102
+ title: '骑行',
103
+ docs: 'https://docs.rsshub.app/routes/new-media#8264-lie-biao',
104
+ source: ['/list/917'],
105
+ target: '/8264/list/917',
106
+ },
107
+ {
108
+ title: '跑步',
109
+ docs: 'https://docs.rsshub.app/routes/new-media#8264-lie-biao',
110
+ source: ['/list/918'],
111
+ target: '/8264/list/918',
112
+ },
113
+ {
114
+ title: '滑雪',
115
+ docs: 'https://docs.rsshub.app/routes/new-media#8264-lie-biao',
116
+ source: ['/list/919'],
117
+ target: '/8264/list/919',
118
+ },
119
+ {
120
+ title: '水上运动',
121
+ docs: 'https://docs.rsshub.app/routes/new-media#8264-lie-biao',
122
+ source: ['/list/921'],
123
+ target: '/8264/list/921',
124
+ },
125
+ {
126
+ title: '钓鱼',
127
+ docs: 'https://docs.rsshub.app/routes/new-media#8264-lie-biao',
128
+ source: ['/list/951'],
129
+ target: '/8264/list/951',
130
+ },
131
+ {
132
+ title: '潜水',
133
+ docs: 'https://docs.rsshub.app/routes/new-media#8264-lie-biao',
134
+ source: ['/list/952'],
135
+ target: '/8264/list/952',
136
+ },
137
+ {
138
+ title: '攀冰',
139
+ docs: 'https://docs.rsshub.app/routes/new-media#8264-lie-biao',
140
+ source: ['/list/953'],
141
+ target: '/8264/list/953',
142
+ },
143
+ {
144
+ title: '冲浪',
145
+ docs: 'https://docs.rsshub.app/routes/new-media#8264-lie-biao',
146
+ source: ['/list/966'],
147
+ target: '/8264/list/966',
148
+ },
149
+ {
150
+ title: '网球',
151
+ docs: 'https://docs.rsshub.app/routes/new-media#8264-lie-biao',
152
+ source: ['/list/967'],
153
+ target: '/8264/list/967',
154
+ },
155
+ {
156
+ title: '绳索知识',
157
+ docs: 'https://docs.rsshub.app/routes/new-media#8264-lie-biao',
158
+ source: ['/list/968'],
159
+ target: '/8264/list/968',
160
+ },
161
+ {
162
+ title: '高尔夫',
163
+ docs: 'https://docs.rsshub.app/routes/new-media#8264-lie-biao',
164
+ source: ['/list/969'],
165
+ target: '/8264/list/969',
166
+ },
167
+ {
168
+ title: '马术',
169
+ docs: 'https://docs.rsshub.app/routes/new-media#8264-lie-biao',
170
+ source: ['/list/970'],
171
+ target: '/8264/list/970',
172
+ },
173
+ {
174
+ title: '户外摄影',
175
+ docs: 'https://docs.rsshub.app/routes/new-media#8264-lie-biao',
176
+ source: ['/list/973'],
177
+ target: '/8264/list/973',
178
+ },
179
+ {
180
+ title: '羽毛球',
181
+ docs: 'https://docs.rsshub.app/routes/new-media#8264-lie-biao',
182
+ source: ['/list/971'],
183
+ target: '/8264/list/971',
184
+ },
185
+ {
186
+ title: '游泳',
187
+ docs: 'https://docs.rsshub.app/routes/new-media#8264-lie-biao',
188
+ source: ['/list/974'],
189
+ target: '/8264/list/974',
190
+ },
191
+ {
192
+ title: '溯溪',
193
+ docs: 'https://docs.rsshub.app/routes/new-media#8264-lie-biao',
194
+ source: ['/list/975'],
195
+ target: '/8264/list/975',
196
+ },
197
+ {
198
+ title: '健身',
199
+ docs: 'https://docs.rsshub.app/routes/new-media#8264-lie-biao',
200
+ source: ['/list/976'],
201
+ target: '/8264/list/976',
202
+ },
203
+ {
204
+ title: '瑜伽',
205
+ docs: 'https://docs.rsshub.app/routes/new-media#8264-lie-biao',
206
+ source: ['/list/977'],
207
+ target: '/8264/list/977',
208
+ },
209
+ {
210
+ title: '服装',
211
+ docs: 'https://docs.rsshub.app/routes/new-media#8264-lie-biao',
212
+ source: ['/list/209'],
213
+ target: '/8264/list/209',
214
+ },
215
+ {
216
+ title: '冲锋衣',
217
+ docs: 'https://docs.rsshub.app/routes/new-media#8264-lie-biao',
218
+ source: ['/list/923'],
219
+ target: '/8264/list/923',
220
+ },
221
+ {
222
+ title: '抓绒衣',
223
+ docs: 'https://docs.rsshub.app/routes/new-media#8264-lie-biao',
224
+ source: ['/list/924'],
225
+ target: '/8264/list/924',
226
+ },
227
+ {
228
+ title: '皮肤衣',
229
+ docs: 'https://docs.rsshub.app/routes/new-media#8264-lie-biao',
230
+ source: ['/list/925'],
231
+ target: '/8264/list/925',
232
+ },
233
+ {
234
+ title: '速干衣',
235
+ docs: 'https://docs.rsshub.app/routes/new-media#8264-lie-biao',
236
+ source: ['/list/926'],
237
+ target: '/8264/list/926',
238
+ },
239
+ {
240
+ title: '羽绒服',
241
+ docs: 'https://docs.rsshub.app/routes/new-media#8264-lie-biao',
242
+ source: ['/list/927'],
243
+ target: '/8264/list/927',
244
+ },
245
+ {
246
+ title: '软壳',
247
+ docs: 'https://docs.rsshub.app/routes/new-media#8264-lie-biao',
248
+ source: ['/list/929'],
249
+ target: '/8264/list/929',
250
+ },
251
+ {
252
+ title: '户外鞋',
253
+ docs: 'https://docs.rsshub.app/routes/new-media#8264-lie-biao',
254
+ source: ['/list/211'],
255
+ target: '/8264/list/211',
256
+ },
257
+ {
258
+ title: '登山鞋',
259
+ docs: 'https://docs.rsshub.app/routes/new-media#8264-lie-biao',
260
+ source: ['/list/928'],
261
+ target: '/8264/list/928',
262
+ },
263
+ {
264
+ title: '徒步鞋',
265
+ docs: 'https://docs.rsshub.app/routes/new-media#8264-lie-biao',
266
+ source: ['/list/930'],
267
+ target: '/8264/list/930',
268
+ },
269
+ {
270
+ title: '越野跑鞋',
271
+ docs: 'https://docs.rsshub.app/routes/new-media#8264-lie-biao',
272
+ source: ['/list/933'],
273
+ target: '/8264/list/933',
274
+ },
275
+ {
276
+ title: '溯溪鞋',
277
+ docs: 'https://docs.rsshub.app/routes/new-media#8264-lie-biao',
278
+ source: ['/list/932'],
279
+ target: '/8264/list/932',
280
+ },
281
+ {
282
+ title: '登山杖',
283
+ docs: 'https://docs.rsshub.app/routes/new-media#8264-lie-biao',
284
+ source: ['/list/220'],
285
+ target: '/8264/list/220',
286
+ },
287
+ {
288
+ title: '帐篷',
289
+ docs: 'https://docs.rsshub.app/routes/new-media#8264-lie-biao',
290
+ source: ['/list/208'],
291
+ target: '/8264/list/208',
292
+ },
293
+ {
294
+ title: '睡袋',
295
+ docs: 'https://docs.rsshub.app/routes/new-media#8264-lie-biao',
296
+ source: ['/list/212'],
297
+ target: '/8264/list/212',
298
+ },
299
+ {
300
+ title: '炉具',
301
+ docs: 'https://docs.rsshub.app/routes/new-media#8264-lie-biao',
302
+ source: ['/list/792'],
303
+ target: '/8264/list/792',
304
+ },
305
+ {
306
+ title: '灯具',
307
+ docs: 'https://docs.rsshub.app/routes/new-media#8264-lie-biao',
308
+ source: ['/list/218'],
309
+ target: '/8264/list/218',
310
+ },
311
+ {
312
+ title: '水具',
313
+ docs: 'https://docs.rsshub.app/routes/new-media#8264-lie-biao',
314
+ source: ['/list/219'],
315
+ target: '/8264/list/219',
316
+ },
317
+ {
318
+ title: '面料',
319
+ docs: 'https://docs.rsshub.app/routes/new-media#8264-lie-biao',
320
+ source: ['/list/222'],
321
+ target: '/8264/list/222',
322
+ },
323
+ {
324
+ title: '背包',
325
+ docs: 'https://docs.rsshub.app/routes/new-media#8264-lie-biao',
326
+ source: ['/list/207'],
327
+ target: '/8264/list/207',
328
+ },
329
+ {
330
+ title: '防潮垫',
331
+ docs: 'https://docs.rsshub.app/routes/new-media#8264-lie-biao',
332
+ source: ['/list/214'],
333
+ target: '/8264/list/214',
334
+ },
335
+ {
336
+ title: '电子导航',
337
+ docs: 'https://docs.rsshub.app/routes/new-media#8264-lie-biao',
338
+ source: ['/list/216'],
339
+ target: '/8264/list/216',
340
+ },
341
+ {
342
+ title: '冰岩绳索',
343
+ docs: 'https://docs.rsshub.app/routes/new-media#8264-lie-biao',
344
+ source: ['/list/215'],
345
+ target: '/8264/list/215',
346
+ },
347
+ {
348
+ title: '综合装备',
349
+ docs: 'https://docs.rsshub.app/routes/new-media#8264-lie-biao',
350
+ source: ['/list/223'],
351
+ target: '/8264/list/223',
352
+ },
353
+ ],
354
+ },
355
+ };
@@ -0,0 +1,3 @@
1
+ module.exports = (router) => {
2
+ router.get('/list/:id?', require('./list'));
3
+ };
@@ -0,0 +1,5 @@
1
+ {{ if image }}
2
+ <figure>
3
+ <img src="{{ image.src }}" alt="{{ image.alt }}">
4
+ </figure>
5
+ {{ /if }}
@@ -1,47 +1,37 @@
1
- const path = require('path');
2
1
  const got = require('@/utils/got');
3
2
  const cheerio = require('cheerio');
4
- const { art } = require('@/utils/render');
5
3
  const { parseDate } = require('@/utils/parse-date');
6
4
 
7
5
  module.exports = async (ctx) => {
8
6
  const response = await got({
9
7
  method: 'get',
10
- url: 'https://www.abskoop.com/page/1/',
8
+ url: 'https://www.ahhhhfs.com/wp-json/wp/v2/posts',
9
+ searchParams: {
10
+ per_page: ctx.query.limit ? parseInt(ctx.query.limit) : 10,
11
+ _embed: '',
12
+ },
11
13
  });
12
-
13
- const $list = cheerio.load(response.data);
14
- const list = $list('.rizhuti_v2-widget-lastpost .scroll article')
15
- .map(function () {
16
- const link = $list(this).find('.entry-wrapper .entry-header a');
17
- return {
18
- title: link.attr('title'),
19
- link: link.attr('href'),
20
- };
21
- })
22
- .get();
14
+ const list = response.data.map((item) => ({
15
+ title: item.title.rendered,
16
+ link: item.link,
17
+ pubDate: parseDate(item.date_gmt),
18
+ updated: parseDate(item.modified_gmt),
19
+ author: item._embedded.author[0].name,
20
+ category: [...new Set(item._embedded['wp:term'].flatMap((i) => i.map((j) => j.name)))],
21
+ }));
23
22
 
24
23
  const items = await Promise.all(
25
- list.reverse().map((item) =>
24
+ list.map((item) =>
26
25
  ctx.cache.tryGet(item.link, async () => {
27
26
  const detailResponse = await got({ method: 'get', url: item.link });
28
27
  const $detail = cheerio.load(detailResponse.data);
29
- $detail('article .entry-content').find('#related_posts').remove();
30
- $detail('article .entry-content').find('#jp-relatedposts').remove();
31
- $detail('article .entry-content').find('.post-note').remove();
32
- $detail('article .entry-content').find('.entry-tags').remove();
33
- $detail('article .entry-content').find('.entry-share').remove();
34
- $detail('article .entry-content a').each(function () {
35
- if ($detail(this).find('img').length > 0) {
36
- $detail(this).replaceWith(`<img src=${$detail(this).attr('href')}>`);
37
- }
38
- });
39
- const desc = [];
40
- $detail('article .entry-content > *').each(function () {
41
- desc.push($detail(this).html());
28
+ $detail('article.post-content').find('.lwptoc').remove();
29
+ $detail('article.post-content').find('#related_posts').remove();
30
+ $detail('article.post-content').find('.entry-copyright').remove();
31
+ $detail('article.post-content img').each(function () {
32
+ $detail(this).replaceWith(`<img src=https:${$detail(this).attr('src')}>`);
42
33
  });
43
- item.description = art(path.join(__dirname, 'templates/description.art'), { desc });
44
- item.pubDate = parseDate($detail('meta[property="article:published_time"]').attr('content'));
34
+ item.description = $detail('article.post-content').html();
45
35
  return item;
46
36
  })
47
37
  )
@@ -49,7 +39,7 @@ module.exports = async (ctx) => {
49
39
 
50
40
  ctx.state.data = {
51
41
  title: 'ahhhhfs-A姐分享',
52
- link: 'https://www.abskoop.com',
42
+ link: 'https://www.ahhhhfs.com',
53
43
  description:
54
44
  'A姐分享,分享各种网络云盘资源、BT种子、高清电影电视剧和羊毛福利,收集各种有趣实用的软件和APP的下载、安装、使用方法,发现一些稀奇古怪的的网站,折腾一些有趣实用的教程,关注谷歌苹果等互联网最新的资讯动态,探索新领域,发现新美好,分享小快乐。',
55
45
  item: items,
@@ -1,52 +1,31 @@
1
- const path = require('path');
2
1
  const got = require('@/utils/got');
3
- const cheerio = require('cheerio');
4
- const { art } = require('@/utils/render');
5
2
  const { parseDate } = require('@/utils/parse-date');
6
3
 
7
4
  module.exports = async (ctx) => {
8
5
  const response = await got({
9
6
  method: 'get',
10
- url: 'https://nsfw.ahhhhfs.com/articles-archive/',
7
+ url: 'https://nsfw.abskoop.com/wp-json/wp/v2/posts',
8
+ searchParams: {
9
+ per_page: ctx.query.limit ? parseInt(ctx.query.limit) : 10,
10
+ _embed: '',
11
+ },
11
12
  });
12
13
 
13
- const $list = cheerio.load(response.data);
14
- const list = $list('article li')
15
- .slice(0, 20)
16
- .map(function () {
17
- return {
18
- link: $list(this).find('a').attr('href'),
19
- };
20
- })
21
- .get();
22
-
23
- const items = await Promise.all(
24
- list.map((item) =>
25
- ctx.cache.tryGet(item.link, async () => {
26
- const detailResponse = await got({ method: 'get', url: item.link });
27
- const $detail = cheerio.load(detailResponse.data);
28
- $detail('article .entry-content a').each(function () {
29
- if ($detail(this).find('img').length > 0) {
30
- $detail(this).replaceWith(`<img src=${$detail(this).attr('href')}>`);
31
- }
32
- });
33
- const desc = [];
34
- $detail('article .entry-content > p').each(function () {
35
- desc.push($detail(this).html());
36
- });
37
- item.title = $detail('article h1.entry-title').text();
38
- item.description = art(path.join(__dirname, 'templates/description.art'), { desc });
39
- item.pubDate = parseDate($detail('meta[property="article:published_time"]').attr('content'));
40
- return item;
41
- })
42
- )
43
- );
14
+ const list = response.data.map((item) => ({
15
+ title: item.title.rendered,
16
+ description: item.content.rendered,
17
+ link: item.link,
18
+ pubDate: parseDate(item.date_gmt),
19
+ updated: parseDate(item.modified_gmt),
20
+ author: item._embedded.author[0].name,
21
+ category: [...new Set(item._embedded['wp:term'].flatMap((i) => i.map((j) => j.name)))],
22
+ }));
44
23
 
45
24
  ctx.state.data = {
46
25
  title: 'ahhhhfs-A姐分享NSFW',
47
- link: 'https://nsfw.ahhhhfs.com',
26
+ link: 'https://nsfw.ahhhhfs.com/articles-archive',
48
27
  description:
49
28
  'A姐分享NSFW,分享各种网络云盘资源、BT种子、磁力链接、高清电影电视剧和羊毛福利,收集各种有趣实用的软件和APP的下载、安装、使用方法,发现一些稀奇古怪的的网站,折腾一些有趣实用的教程,关注谷歌苹果等互联网最新的资讯动态,探索新领域,发现新美好,分享小快乐。',
50
- item: items,
29
+ item: list,
51
30
  };
52
31
  };
@@ -1,11 +1,22 @@
1
1
  module.exports = {
2
2
  'abskoop.com': {
3
+ _name: 'A姐分享',
4
+ nsfw: [
5
+ {
6
+ title: 'NSFW 存档列表',
7
+ docs: 'https://docs.rsshub.app/routes/multimedia#a-jie-fen-xiang',
8
+ source: ['/articles-archive', '/'],
9
+ target: '/abskoop',
10
+ },
11
+ ],
12
+ },
13
+ 'ahhhhfs.com': {
3
14
  _name: 'A姐分享',
4
15
  '.': [
5
16
  {
6
17
  title: '存档列表',
7
- docs: 'https://docs.rsshub.app/routes/multimedia#abskoop',
8
- source: ['/archives'],
18
+ docs: 'https://docs.rsshub.app/routes/multimedia#a-jie-fen-xiang',
19
+ source: ['/'],
9
20
  target: '/abskoop',
10
21
  },
11
22
  ],
@@ -0,0 +1,42 @@
1
+ const got = require('@/utils/got');
2
+ const { parseDate } = require('@/utils/parse-date');
3
+ const { getHeaders, randomString, encryptAES, decryptAES } = require('./utils');
4
+
5
+ module.exports = async (ctx) => {
6
+ const key = randomString(16);
7
+
8
+ const { data: response } = await got.post('https://api.ainvest.com/gw/socialcenter/v1/edu/article/listArticle', {
9
+ headers: getHeaders(key),
10
+ searchParams: {
11
+ timestamp: Date.now(),
12
+ },
13
+ data: encryptAES(
14
+ JSON.stringify({
15
+ batch: ctx.query.limit ? parseInt(ctx.query.limit, 10) : 30,
16
+ startId: null,
17
+ tags: {
18
+ in: ['markettrends', 'premarket', 'companyinsights', 'macro'],
19
+ and: ['web', 'creationplatform'],
20
+ },
21
+ }),
22
+ key
23
+ ),
24
+ });
25
+
26
+ const { data } = JSON.parse(decryptAES(response, key));
27
+
28
+ const items = data.map((item) => ({
29
+ title: item.title,
30
+ description: item.content,
31
+ link: item.sourceUrl,
32
+ pubDate: parseDate(item.postDate, 'x'),
33
+ category: [item.nickName, ...item.tags.map((tag) => tag.code)],
34
+ }));
35
+
36
+ ctx.state.data = {
37
+ title: 'AInvest - Latest Articles',
38
+ link: 'https://www.ainvest.com/news',
39
+ language: 'en',
40
+ item: items,
41
+ };
42
+ };
@@ -0,0 +1,4 @@
1
+ module.exports = {
2
+ '/article': ['TonyRL'],
3
+ '/news': ['TonyRL'],
4
+ };
@@ -0,0 +1,39 @@
1
+ const got = require('@/utils/got');
2
+ const { parseDate } = require('@/utils/parse-date');
3
+ const { getHeaders, randomString, decryptAES } = require('./utils');
4
+
5
+ module.exports = async (ctx) => {
6
+ const key = randomString(16);
7
+
8
+ const { data: response } = await got('https://api.ainvest.com/gw/news_f10/v1/newsFlash/getNewsData', {
9
+ headers: getHeaders(key),
10
+ searchParams: {
11
+ terminal: 'web',
12
+ tab: 'all',
13
+ page: 1,
14
+ size: ctx.query.limit ? parseInt(ctx.query.limit, 10) : 50,
15
+ lastId: '',
16
+ timestamp: Date.now(),
17
+ },
18
+ });
19
+
20
+ const { data } = JSON.parse(decryptAES(response, key));
21
+
22
+ const items = data.content.map((item) => ({
23
+ title: item.title,
24
+ description: item.content,
25
+ link: item.sourceUrl,
26
+ pubDate: parseDate(item.publishTime, 'x'),
27
+ category: item.tagList.map((tag) => tag.nameEn),
28
+ author: item.userInfo.nickname,
29
+ upvotes: item.likeCount,
30
+ comments: item.commentCount,
31
+ }));
32
+
33
+ ctx.state.data = {
34
+ title: 'AInvest - Latest News',
35
+ link: 'https://www.ainvest.com/news',
36
+ language: 'en',
37
+ item: items,
38
+ };
39
+ };
@@ -0,0 +1,19 @@
1
+ module.exports = {
2
+ 'ainvest.com': {
3
+ _name: 'AInvest',
4
+ '.': [
5
+ {
6
+ title: 'Latest Article',
7
+ docs: 'https://docs.rsshub.app/routes/finance#ainvest',
8
+ source: ['/news'],
9
+ target: '/ainvest/article',
10
+ },
11
+ {
12
+ title: 'Latest News',
13
+ docs: 'https://docs.rsshub.app/routes/finance#ainvest',
14
+ source: ['/news'],
15
+ target: '/ainvest/news',
16
+ },
17
+ ],
18
+ },
19
+ };
@@ -0,0 +1,4 @@
1
+ module.exports = (router) => {
2
+ router.get('/article', require('./article'));
3
+ router.get('/news', require('./news'));
4
+ };