rsshub 1.0.0-master.cdb6f6f → 1.0.0-master.cdc36d3

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 (345) hide show
  1. package/lib/config.js +6 -0
  2. package/lib/middleware/anti-hotlink.js +1 -0
  3. package/lib/middleware/parameter.js +2 -1
  4. package/lib/router.js +8 -8
  5. package/lib/routes/disqus/posts.js +1 -1
  6. package/lib/routes/fanfou/favorites.js +1 -1
  7. package/lib/routes/fanfou/home-timeline.js +1 -1
  8. package/lib/routes/fanfou/public-timeline.js +1 -1
  9. package/lib/routes/fanfou/user-timeline.js +1 -1
  10. package/lib/routes/gocomics/index.js +1 -1
  11. package/lib/routes/lastfm/loved.js +1 -1
  12. package/lib/routes/lastfm/recent.js +1 -1
  13. package/lib/routes/lastfm/top.js +1 -1
  14. package/lib/routes/miniflux/get-entries.js +1 -1
  15. package/lib/routes/miniflux/get-feeds.js +1 -1
  16. package/lib/routes/us/supremecourt/argument-audio.js +9 -6
  17. package/lib/v2/12306/index.js +1 -1
  18. package/lib/v2/163/music/playlist.js +1 -1
  19. package/lib/v2/4gamers/category.js +31 -0
  20. package/lib/v2/4gamers/maintainer.js +6 -0
  21. package/lib/v2/4gamers/radar.js +31 -0
  22. package/lib/v2/4gamers/router.js +6 -0
  23. package/lib/v2/4gamers/tag.js +23 -0
  24. package/lib/v2/4gamers/templates/description.art +3 -0
  25. package/lib/v2/4gamers/templates/image.art +3 -0
  26. package/lib/v2/4gamers/topic.js +22 -0
  27. package/lib/v2/4gamers/utils.js +73 -0
  28. package/lib/v2/56kog/class.js +10 -0
  29. package/lib/v2/56kog/maintainer.js +4 -0
  30. package/lib/v2/56kog/radar.js +85 -0
  31. package/lib/v2/56kog/router.js +4 -0
  32. package/lib/v2/56kog/templates/description.art +32 -0
  33. package/lib/v2/56kog/top.js +10 -0
  34. package/lib/v2/56kog/util.js +111 -0
  35. package/lib/v2/591/list.js +1 -1
  36. package/lib/v2/acfun/article.js +3 -3
  37. package/lib/v2/aisixiang/thinktank.js +1 -1
  38. package/lib/v2/alistapart/radar.js +2 -2
  39. package/lib/v2/auto-stats/index.js +65 -0
  40. package/lib/v2/auto-stats/maintainer.js +3 -0
  41. package/lib/v2/auto-stats/radar.js +35 -0
  42. package/lib/v2/auto-stats/router.js +3 -0
  43. package/lib/v2/brooklynmuseum/radar.js +1 -1
  44. package/lib/v2/bsky/posts.js +1 -1
  45. package/lib/v2/bulianglin/bulianglin.js +32 -0
  46. package/lib/v2/bulianglin/maintainer.js +3 -0
  47. package/lib/v2/bulianglin/radar.js +13 -0
  48. package/lib/v2/bulianglin/router.js +3 -0
  49. package/lib/v2/bytes/radar.js +1 -1
  50. package/lib/v2/caam/index.js +64 -0
  51. package/lib/v2/caam/maintainer.js +3 -0
  52. package/lib/v2/caam/radar.js +2677 -0
  53. package/lib/v2/caam/router.js +3 -0
  54. package/lib/v2/caixin/weekly.js +8 -2
  55. package/lib/v2/cas/genetics/index.js +63 -0
  56. package/lib/v2/cas/maintainer.js +1 -1
  57. package/lib/v2/cas/radar.js +3 -3
  58. package/lib/v2/cas/router.js +1 -1
  59. package/lib/v2/cfmmc/index.js +72 -0
  60. package/lib/v2/cfmmc/maintainer.js +3 -0
  61. package/lib/v2/cfmmc/radar.js +17 -0
  62. package/lib/v2/cfmmc/router.js +3 -0
  63. package/lib/v2/chinamoney/channels.js +57 -0
  64. package/lib/v2/chinamoney/maintainer.js +3 -0
  65. package/lib/v2/chinamoney/notice.js +61 -0
  66. package/lib/v2/chinamoney/radar.js +11 -0
  67. package/lib/v2/chinamoney/router.js +3 -0
  68. package/lib/v2/chuanliu/maintainer.js +3 -0
  69. package/lib/v2/chuanliu/nice.js +76 -0
  70. package/lib/v2/chuanliu/radar.js +13 -0
  71. package/lib/v2/chuanliu/router.js +3 -0
  72. package/lib/v2/chuanliu/templates/description.art +23 -0
  73. package/lib/v2/cna/web/index.js +1 -1
  74. package/lib/v2/cntheory/maintainer.js +3 -0
  75. package/lib/v2/cntheory/paper.js +87 -0
  76. package/lib/v2/cntheory/radar.js +13 -0
  77. package/lib/v2/cntheory/router.js +3 -0
  78. package/lib/v2/cntheory/templates/description.art +2 -0
  79. package/lib/v2/comicskingdom/index.js +1 -1
  80. package/lib/v2/cs/index.js +83 -0
  81. package/lib/v2/cs/maintainer.js +5 -0
  82. package/lib/v2/cs/radar.js +229 -0
  83. package/lib/v2/cs/router.js +13 -0
  84. package/lib/v2/cs/video.js +70 -0
  85. package/lib/v2/curiouscat/radar.js +1 -1
  86. package/lib/v2/daily/radar.js +3 -3
  87. package/lib/v2/deadline/radar.js +1 -1
  88. package/lib/v2/discord/radar.js +1 -1
  89. package/lib/v2/dnaindia/radar.js +2 -2
  90. package/lib/v2/douban/other/list.js +46 -32
  91. package/lib/v2/ehentai/favorites.js +1 -1
  92. package/lib/v2/fansly/maintainer.js +4 -0
  93. package/lib/v2/fansly/post.js +29 -0
  94. package/lib/v2/fansly/radar.js +19 -0
  95. package/lib/v2/fansly/router.js +4 -0
  96. package/lib/v2/fansly/tag.js +30 -0
  97. package/lib/v2/fansly/templates/media.art +8 -0
  98. package/lib/v2/fansly/templates/poll.art +4 -0
  99. package/lib/v2/fansly/templates/tip-goal.art +2 -0
  100. package/lib/v2/fansly/utils.js +176 -0
  101. package/lib/v2/firefox/release.js +13 -7
  102. package/lib/v2/firefox/router.js +1 -1
  103. package/lib/v2/fisher-spb/radar.js +1 -1
  104. package/lib/v2/foresightnews/util.js +1 -1
  105. package/lib/v2/free/maintainer.js +3 -0
  106. package/lib/v2/free/radar.js +13 -0
  107. package/lib/v2/free/router.js +3 -0
  108. package/lib/v2/free/rss.js +19 -0
  109. package/lib/v2/freecomputerbooks/radar.js +2 -2
  110. package/lib/v2/freewechat/profile.js +4 -2
  111. package/lib/v2/ft/radar.js +1 -1
  112. package/lib/v2/gdut/news.js +2 -2
  113. package/lib/v2/github/follower.js +1 -1
  114. package/lib/v2/github/star.js +1 -1
  115. package/lib/v2/github/starred-repos.js +1 -1
  116. package/lib/v2/gov/beijing/bjedu/gh.js +48 -0
  117. package/lib/v2/gov/maintainer.js +1 -0
  118. package/lib/v2/gov/radar.js +12 -1
  119. package/lib/v2/gov/router.js +1 -0
  120. package/lib/v2/gov/suzhou/news.js +1 -1
  121. package/lib/v2/guanhai/index.js +15 -10
  122. package/lib/v2/guokr/channel.js +1 -1
  123. package/lib/v2/hitwh/today.js +10 -2
  124. package/lib/v2/huanqiu/index.js +5 -5
  125. package/lib/v2/huggingface/daily-papers.js +10 -7
  126. package/lib/v2/huxiu/util.js +1 -1
  127. package/lib/v2/indiansinkuwait/radar.js +1 -1
  128. package/lib/v2/indienova/article.js +24 -0
  129. package/lib/v2/indienova/column.js +20 -0
  130. package/lib/v2/indienova/gamedb.js +55 -0
  131. package/lib/v2/indienova/maintainer.js +6 -0
  132. package/lib/v2/indienova/radar.js +37 -0
  133. package/lib/v2/indienova/router.js +6 -0
  134. package/lib/v2/indienova/usergames.js +42 -0
  135. package/lib/v2/indienova/utils.js +43 -0
  136. package/lib/v2/instagram/common-utils.js +1 -1
  137. package/lib/v2/iresearch/weekly.js +2 -2
  138. package/lib/v2/javlibrary/utils.js +1 -1
  139. package/lib/v2/jewishmuseum/radar.js +1 -1
  140. package/lib/v2/jiemian/lists.js +1 -1
  141. package/lib/v2/jike/topic.js +3 -0
  142. package/lib/v2/jinse/catalogue.js +101 -0
  143. package/lib/v2/jinse/lives.js +87 -0
  144. package/lib/v2/jinse/maintainer.js +5 -0
  145. package/lib/v2/jinse/radar.js +187 -0
  146. package/lib/v2/jinse/router.js +5 -0
  147. package/lib/v2/jinse/templates/description.art +34 -0
  148. package/lib/v2/jinse/timeline.js +96 -0
  149. package/lib/v2/jjwxc/author.js +68 -0
  150. package/lib/v2/jjwxc/book.js +106 -0
  151. package/lib/v2/jjwxc/maintainer.js +4 -0
  152. package/lib/v2/jjwxc/radar.js +29 -0
  153. package/lib/v2/jjwxc/router.js +4 -0
  154. package/lib/v2/jjwxc/templates/author.art +28 -0
  155. package/lib/v2/jjwxc/templates/book.art +44 -0
  156. package/lib/v2/kcna/news.js +2 -3
  157. package/lib/v2/keepass/maintainer.js +3 -0
  158. package/lib/v2/keepass/news.js +46 -0
  159. package/lib/v2/keepass/radar.js +13 -0
  160. package/lib/v2/keepass/router.js +3 -0
  161. package/lib/v2/konghq/blog-posts.js +52 -0
  162. package/lib/v2/konghq/maintainer.js +3 -0
  163. package/lib/v2/konghq/radar.js +13 -0
  164. package/lib/v2/konghq/router.js +3 -0
  165. package/lib/v2/kuwaitlocal/radar.js +2 -2
  166. package/lib/v2/laimanhua/index.js +41 -0
  167. package/lib/v2/laimanhua/maintainer.js +3 -0
  168. package/lib/v2/laimanhua/radar.js +13 -0
  169. package/lib/v2/laimanhua/router.js +3 -0
  170. package/lib/v2/layoffs/radar.js +1 -1
  171. package/lib/v2/linkedin/radar.js +1 -1
  172. package/lib/v2/lofter/tag.js +69 -34
  173. package/lib/v2/lofter/user.js +1 -1
  174. package/lib/v2/lxixsxa/radar.js +4 -4
  175. package/lib/v2/manhuagui/subscribe.js +1 -1
  176. package/lib/v2/mastodon/utils.js +1 -1
  177. package/lib/v2/metacritic/index.js +1 -1
  178. package/lib/v2/metmuseum/radar.js +1 -1
  179. package/lib/v2/mihoyo/bbs/cache.js +40 -0
  180. package/lib/v2/mihoyo/bbs/follow-list.js +50 -0
  181. package/lib/v2/mihoyo/bbs/img-ranking.js +2 -27
  182. package/lib/v2/mihoyo/bbs/official.js +3 -20
  183. package/lib/v2/mihoyo/bbs/timeline.js +41 -0
  184. package/lib/v2/mihoyo/bbs/user-post.js +32 -0
  185. package/lib/v2/mihoyo/bbs/utils.js +34 -0
  186. package/lib/v2/mihoyo/maintainer.js +3 -0
  187. package/lib/v2/mihoyo/radar.js +61 -32
  188. package/lib/v2/mihoyo/router.js +3 -0
  189. package/lib/v2/modrinth/api.d.ts +101 -0
  190. package/lib/v2/modrinth/maintainer.js +3 -0
  191. package/lib/v2/modrinth/radar.js +13 -0
  192. package/lib/v2/modrinth/router.js +3 -0
  193. package/lib/v2/modrinth/templates/version.art +8 -0
  194. package/lib/v2/modrinth/versions.js +75 -0
  195. package/lib/v2/mrm/index.js +42 -0
  196. package/lib/v2/mrm/maintainer.js +3 -0
  197. package/lib/v2/mrm/radar.js +13 -0
  198. package/lib/v2/mrm/router.js +3 -0
  199. package/lib/v2/nautil/radar.js +1 -1
  200. package/lib/v2/nber/radar.js +2 -2
  201. package/lib/v2/newmuseum/radar.js +1 -1
  202. package/lib/v2/news/maintainer.js +1 -1
  203. package/lib/v2/news/radar.js +2 -2
  204. package/lib/v2/news/router.js +2 -1
  205. package/lib/v2/news/templates/description.art +21 -0
  206. package/lib/v2/news/xhsxw.js +81 -0
  207. package/lib/v2/nju/radar.js +4 -4
  208. package/lib/v2/njust/cwc.js +1 -1
  209. package/lib/v2/njust/dgxg.js +1 -1
  210. package/lib/v2/njust/eo.js +1 -1
  211. package/lib/v2/njust/eoe.js +1 -1
  212. package/lib/v2/njust/jwc.js +1 -1
  213. package/lib/v2/notion/database.js +1 -1
  214. package/lib/v2/onehu/common.js +28 -0
  215. package/lib/v2/onehu/maintainer.js +3 -0
  216. package/lib/v2/onehu/radar.js +11 -0
  217. package/lib/v2/onehu/router.js +3 -0
  218. package/lib/v2/openai/radar.js +3 -3
  219. package/lib/v2/parliament/maintainer.js +3 -0
  220. package/lib/v2/parliament/radar.js +22 -0
  221. package/lib/v2/parliament/router.js +3 -0
  222. package/lib/v2/parliament/section77.js +161 -0
  223. package/lib/v2/pianyuan/search.js +1 -1
  224. package/lib/v2/pianyuan/utils.js +2 -2
  225. package/lib/v2/picnob/radar.js +1 -1
  226. package/lib/v2/pikabu/radar.js +3 -3
  227. package/lib/v2/pixabay/radar.js +1 -1
  228. package/lib/v2/pixiv/bookmarks.js +2 -2
  229. package/lib/v2/pixiv/illustfollow.js +2 -2
  230. package/lib/v2/pixiv/ranking.js +2 -2
  231. package/lib/v2/pixiv/search.js +2 -2
  232. package/lib/v2/pixiv/user.js +2 -2
  233. package/lib/v2/playpcesor/maintainer.js +3 -0
  234. package/lib/v2/playpcesor/radar.js +13 -0
  235. package/lib/v2/playpcesor/router.js +3 -0
  236. package/lib/v2/playpcesor/rss.js +32 -0
  237. package/lib/v2/pwc/maintainer.js +3 -0
  238. package/lib/v2/pwc/radar.js +13 -0
  239. package/lib/v2/pwc/router.js +3 -0
  240. package/lib/v2/pwc/sustainability.js +58 -0
  241. package/lib/v2/qdu/houqin.js +63 -0
  242. package/lib/v2/qdu/maintainer.js +1 -0
  243. package/lib/v2/qdu/radar.js +8 -0
  244. package/lib/v2/qdu/router.js +1 -0
  245. package/lib/v2/rarehistoricalphotos/radar.js +1 -1
  246. package/lib/v2/rattibha/radar.js +1 -1
  247. package/lib/v2/reactnewsletter/radar.js +1 -1
  248. package/lib/v2/scmp/index.js +2 -31
  249. package/lib/v2/scmp/maintainer.js +2 -0
  250. package/lib/v2/scmp/radar.js +7 -1
  251. package/lib/v2/scmp/router.js +2 -0
  252. package/lib/v2/scmp/topic.js +66 -0
  253. package/lib/v2/scmp/utils.js +32 -0
  254. package/lib/v2/secrss/author.js +18 -7
  255. package/lib/v2/secrss/category.js +19 -8
  256. package/lib/v2/secrss/maintainer.js +2 -2
  257. package/lib/v2/seekingalpha/radar.js +1 -1
  258. package/lib/v2/sehuatang/user.js +1 -1
  259. package/lib/v2/shoac/maintainer.js +3 -0
  260. package/lib/v2/shoac/radar.js +13 -0
  261. package/lib/v2/shoac/recent-show.js +72 -0
  262. package/lib/v2/shoac/router.js +3 -0
  263. package/lib/v2/shoac/templates/detail.art +25 -0
  264. package/lib/v2/smashingmagazine/radar.js +2 -2
  265. package/lib/v2/spotify/top.js +1 -1
  266. package/lib/v2/spotify/utils.js +2 -2
  267. package/lib/v2/sspai/author.js +1 -1
  268. package/lib/v2/stockedge/radar.js +1 -1
  269. package/lib/v2/stratechery/radar.js +1 -1
  270. package/lib/v2/tass/maintainer.js +3 -0
  271. package/lib/v2/tass/news.js +58 -0
  272. package/lib/v2/tass/radar.js +13 -0
  273. package/lib/v2/tass/router.js +3 -0
  274. package/lib/v2/techpowerup/radar.js +2 -2
  275. package/lib/v2/telegram/channel.js +1 -1
  276. package/lib/v2/telegram/stickerpack.js +1 -1
  277. package/lib/v2/tencent/news/author.js +34 -26
  278. package/lib/v2/tencent/templates/news/image.art +1 -1
  279. package/lib/v2/test/index.js +11 -0
  280. package/lib/v2/thehindu/radar.js +1 -1
  281. package/lib/v2/thepaper/utils.js +1 -1
  282. package/lib/v2/threads/radar.js +1 -1
  283. package/lib/v2/tiktok/radar.js +1 -1
  284. package/lib/v2/tradingview/pine.js +54 -0
  285. package/lib/v2/tradingview/radar.js +6 -0
  286. package/lib/v2/tradingview/router.js +1 -0
  287. package/lib/v2/transcriptforest/index.js +116 -0
  288. package/lib/v2/transcriptforest/maintainer.js +3 -0
  289. package/lib/v2/transcriptforest/radar.js +307 -0
  290. package/lib/v2/transcriptforest/router.js +3 -0
  291. package/lib/v2/transcriptforest/templates/description.art +23 -0
  292. package/lib/v2/twitter/likes.js +1 -1
  293. package/lib/v2/twitter/list.js +1 -1
  294. package/lib/v2/twitter/trends.js +1 -1
  295. package/lib/v2/twitter/utils.js +13 -4
  296. package/lib/v2/twitter/web-api/constants.js +6 -0
  297. package/lib/v2/twitter/web-api/login.js +183 -0
  298. package/lib/v2/twitter/web-api/media.js +2 -0
  299. package/lib/v2/twitter/web-api/search.js +2 -0
  300. package/lib/v2/twitter/web-api/token.js +44 -0
  301. package/lib/v2/twitter/web-api/tweet.js +2 -0
  302. package/lib/v2/twitter/web-api/twitter-api.js +13 -17
  303. package/lib/v2/twitter/web-api/user.js +2 -0
  304. package/lib/v2/unusualwhales/radar.js +1 -1
  305. package/lib/v2/urbandictionary/radar.js +1 -1
  306. package/lib/v2/ustc/eeis.js +1 -1
  307. package/lib/v2/ustc/gs.js +1 -1
  308. package/lib/v2/ustc/sist.js +1 -1
  309. package/lib/v2/verfghbw/radar.js +1 -1
  310. package/lib/v2/weibo/friends.js +122 -0
  311. package/lib/v2/weibo/group.js +1 -1
  312. package/lib/v2/weibo/maintainer.js +1 -0
  313. package/lib/v2/weibo/radar.js +7 -1
  314. package/lib/v2/weibo/router.js +1 -0
  315. package/lib/v2/weibo/user.js +3 -1
  316. package/lib/v2/weibo/utils.js +4 -1
  317. package/lib/v2/wmc-bj/maintainer.js +3 -0
  318. package/lib/v2/wmc-bj/publish.js +58 -0
  319. package/lib/v2/wmc-bj/radar.js +17 -0
  320. package/lib/v2/wmc-bj/router.js +3 -0
  321. package/lib/v2/wmc-bj/templates/description.art +5 -0
  322. package/lib/v2/xueqiu/hots.js +2 -1
  323. package/lib/v2/xueqiu/router.js +1 -1
  324. package/lib/v2/xueqiu/stock-comments.js +2 -2
  325. package/lib/v2/xueqiu/stock-info.js +2 -1
  326. package/lib/v2/xueqiu/user.js +2 -1
  327. package/lib/v2/yoasobi-music/radar.js +4 -4
  328. package/lib/v2/youtube/custom.js +1 -1
  329. package/lib/v2/youtube/playlist.js +1 -1
  330. package/lib/v2/youtube/subscriptions.js +1 -1
  331. package/lib/v2/zhihu/maintainer.js +1 -1
  332. package/lib/v2/zhihu/router.js +1 -1
  333. package/lib/v2/zhihu/topic.js +93 -50
  334. package/lib/v2/zhihu/utils.js +0 -1
  335. package/package.json +26 -24
  336. package/lib/routes/4gamers/category.js +0 -20
  337. package/lib/routes/4gamers/tag.js +0 -20
  338. package/lib/routes/4gamers/topic.js +0 -20
  339. package/lib/routes/cs/news.js +0 -69
  340. package/lib/routes/indienova/article.js +0 -53
  341. package/lib/routes/jinse/catalogue.js +0 -20
  342. package/lib/routes/jinse/lives.js +0 -20
  343. package/lib/routes/jinse/timeline.js +0 -21
  344. package/lib/v2/cas/genetics/xshd.js +0 -29
  345. package/lib/v2/news/whxw.js +0 -68
@@ -0,0 +1,187 @@
1
+ module.exports = {
2
+ 'jinse.cn': {
3
+ _name: '金色财经',
4
+ '.': [
5
+ {
6
+ title: '首页 - 头条',
7
+ docs: 'https://docs.rsshub.app/routes/finance#jin-se-cai-jing-shou-ye',
8
+ source: ['/'],
9
+ target: '/jinse/timeline/头条',
10
+ },
11
+ {
12
+ title: '首页 - 独家',
13
+ docs: 'https://docs.rsshub.app/routes/finance#jin-se-cai-jing-shou-ye',
14
+ source: ['/'],
15
+ target: '/jinse/timeline/独家',
16
+ },
17
+ {
18
+ title: '首页 - 铭文',
19
+ docs: 'https://docs.rsshub.app/routes/finance#jin-se-cai-jing-shou-ye',
20
+ source: ['/'],
21
+ target: '/jinse/timeline/铭文',
22
+ },
23
+ {
24
+ title: '首页 - 产业',
25
+ docs: 'https://docs.rsshub.app/routes/finance#jin-se-cai-jing-shou-ye',
26
+ source: ['/'],
27
+ target: '/jinse/timeline/产业',
28
+ },
29
+ {
30
+ title: '首页 - 项目',
31
+ docs: 'https://docs.rsshub.app/routes/finance#jin-se-cai-jing-shou-ye',
32
+ source: ['/'],
33
+ target: '/jinse/timeline/项目',
34
+ },
35
+ {
36
+ title: '首页 - 政策',
37
+ docs: 'https://docs.rsshub.app/routes/finance#jin-se-cai-jing-shou-ye',
38
+ source: ['/'],
39
+ target: '/jinse/timeline/政策',
40
+ },
41
+ {
42
+ title: '首页 - AI',
43
+ docs: 'https://docs.rsshub.app/routes/finance#jin-se-cai-jing-shou-ye',
44
+ source: ['/'],
45
+ target: '/jinse/timeline/AI',
46
+ },
47
+ {
48
+ title: '首页 - Web 3.0',
49
+ docs: 'https://docs.rsshub.app/routes/finance#jin-se-cai-jing-shou-ye',
50
+ source: ['/'],
51
+ target: '/jinse/timeline/Web 3.0',
52
+ },
53
+ {
54
+ title: '首页 - 以太坊2.0',
55
+ docs: 'https://docs.rsshub.app/routes/finance#jin-se-cai-jing-shou-ye',
56
+ source: ['/'],
57
+ target: '/jinse/timeline/以太坊2.0',
58
+ },
59
+ {
60
+ title: '首页 - DeFi',
61
+ docs: 'https://docs.rsshub.app/routes/finance#jin-se-cai-jing-shou-ye',
62
+ source: ['/'],
63
+ target: '/jinse/timeline/DeFi',
64
+ },
65
+ {
66
+ title: '首页 - Layer2',
67
+ docs: 'https://docs.rsshub.app/routes/finance#jin-se-cai-jing-shou-ye',
68
+ source: ['/'],
69
+ target: '/jinse/timeline/Layer2',
70
+ },
71
+ {
72
+ title: '首页 - NFT',
73
+ docs: 'https://docs.rsshub.app/routes/finance#jin-se-cai-jing-shou-ye',
74
+ source: ['/'],
75
+ target: '/jinse/timeline/NFT',
76
+ },
77
+ {
78
+ title: '首页 - DAO',
79
+ docs: 'https://docs.rsshub.app/routes/finance#jin-se-cai-jing-shou-ye',
80
+ source: ['/'],
81
+ target: '/jinse/timeline/DAO',
82
+ },
83
+ {
84
+ title: '首页 - 百科',
85
+ docs: 'https://docs.rsshub.app/routes/finance#jin-se-cai-jing-shou-ye',
86
+ source: ['/'],
87
+ target: '/jinse/timeline/百科',
88
+ },
89
+ {
90
+ title: '快讯 - 全部',
91
+ docs: 'https://docs.rsshub.app/routes/finance#jin-se-cai-jing-kuai-xun',
92
+ source: ['/lives'],
93
+ target: '/jinse/lives/0',
94
+ },
95
+ {
96
+ title: '快讯 - 精选',
97
+ docs: 'https://docs.rsshub.app/routes/finance#jin-se-cai-jing-kuai-xun',
98
+ source: ['/lives'],
99
+ target: '/jinse/lives/1',
100
+ },
101
+ {
102
+ title: '快讯 - 政策',
103
+ docs: 'https://docs.rsshub.app/routes/finance#jin-se-cai-jing-kuai-xun',
104
+ source: ['/lives'],
105
+ target: '/jinse/lives/2',
106
+ },
107
+ {
108
+ title: '快讯 - 数据',
109
+ docs: 'https://docs.rsshub.app/routes/finance#jin-se-cai-jing-kuai-xun',
110
+ source: ['/lives'],
111
+ target: '/jinse/lives/3',
112
+ },
113
+ {
114
+ title: '快讯 - NFT',
115
+ docs: 'https://docs.rsshub.app/routes/finance#jin-se-cai-jing-kuai-xun',
116
+ source: ['/lives'],
117
+ target: '/jinse/lives/4',
118
+ },
119
+ {
120
+ title: '快讯 - 项目',
121
+ docs: 'https://docs.rsshub.app/routes/finance#jin-se-cai-jing-kuai-xun',
122
+ source: ['/lives'],
123
+ target: '/jinse/lives/5',
124
+ },
125
+ {
126
+ title: '分类 - 政策',
127
+ docs: 'https://docs.rsshub.app/routes/finance#jin-se-cai-jing-fen-lei',
128
+ source: ['/'],
129
+ target: '/jinse/zhengce',
130
+ },
131
+ {
132
+ title: '分类 - 行情',
133
+ docs: 'https://docs.rsshub.app/routes/finance#jin-se-cai-jing-fen-lei',
134
+ source: ['/'],
135
+ target: '/jinse/fenxishishuo',
136
+ },
137
+ {
138
+ title: '分类 - DeFi',
139
+ docs: 'https://docs.rsshub.app/routes/finance#jin-se-cai-jing-fen-lei',
140
+ source: ['/'],
141
+ target: '/jinse/defi',
142
+ },
143
+ {
144
+ title: '分类 - 矿业',
145
+ docs: 'https://docs.rsshub.app/routes/finance#jin-se-cai-jing-fen-lei',
146
+ source: ['/'],
147
+ target: '/jinse/kuang',
148
+ },
149
+ {
150
+ title: '分类 - 以太坊 2.0',
151
+ docs: 'https://docs.rsshub.app/routes/finance#jin-se-cai-jing-fen-lei',
152
+ source: ['/'],
153
+ target: '/jinse/以太坊2.0',
154
+ },
155
+ {
156
+ title: '分类 - 产业',
157
+ docs: 'https://docs.rsshub.app/routes/finance#jin-se-cai-jing-fen-lei',
158
+ source: ['/'],
159
+ target: '/jinse/industry',
160
+ },
161
+ {
162
+ title: '分类 - IPFS',
163
+ docs: 'https://docs.rsshub.app/routes/finance#jin-se-cai-jing-fen-lei',
164
+ source: ['/'],
165
+ target: '/jinse/IPFS',
166
+ },
167
+ {
168
+ title: '分类 - 技术',
169
+ docs: 'https://docs.rsshub.app/routes/finance#jin-se-cai-jing-fen-lei',
170
+ source: ['/'],
171
+ target: '/jinse/tech',
172
+ },
173
+ {
174
+ title: '分类 - 百科',
175
+ docs: 'https://docs.rsshub.app/routes/finance#jin-se-cai-jing-fen-lei',
176
+ source: ['/'],
177
+ target: '/jinse/baike',
178
+ },
179
+ {
180
+ title: '分类 - 研报',
181
+ docs: 'https://docs.rsshub.app/routes/finance#jin-se-cai-jing-fen-lei',
182
+ source: ['/'],
183
+ target: '/jinse/capitalmarket',
184
+ },
185
+ ],
186
+ },
187
+ };
@@ -0,0 +1,5 @@
1
+ module.exports = (router) => {
2
+ router.get('/lives/:category?', require('./lives'));
3
+ router.get('/timeline/:category?', require('./timeline'));
4
+ router.get('/:category?', require('./catalogue'));
5
+ };
@@ -0,0 +1,34 @@
1
+ {{ if images }}
2
+ {{ each images image }}
3
+ {{ if image?.src }}
4
+ <figure>
5
+ <img
6
+ {{ if image.alt }}
7
+ alt="{{ image.alt }}"
8
+ {{ /if }}
9
+ {{ if image.width }}
10
+ alt="{{ image.width }}"
11
+ {{ /if }}
12
+ {{ if image.height }}
13
+ alt="{{ image.height }}"
14
+ {{ /if }}
15
+ src="{{ image.src }}">
16
+ </figure>
17
+ {{ /if }}
18
+ {{ /each }}
19
+ {{ /if }}
20
+
21
+ {{ if intro }}
22
+ <blockquote>{{ intro }}</blockquote>
23
+ {{ /if }}
24
+
25
+ {{ if description }}
26
+ {{@ description }}
27
+ {{ /if }}
28
+
29
+ {{ if original?.link }}
30
+ <p>
31
+ {{ original.name }}:
32
+ <a href="{{ original.link }}">{{ original.link }}</a>
33
+ </p>
34
+ {{ /if }}
@@ -0,0 +1,96 @@
1
+ const got = require('@/utils/got');
2
+ const cheerio = require('cheerio');
3
+ const { parseDate } = require('@/utils/parse-date');
4
+ const { art } = require('@/utils/render');
5
+ const path = require('path');
6
+
7
+ module.exports = async (ctx) => {
8
+ const { category = '头条' } = ctx.params;
9
+ const limit = ctx.query.limit ? Number.parseInt(ctx.query.limit, 10) : 50;
10
+
11
+ const rootUrl = 'https://www.jinse.cn';
12
+ const rootApiUrl = 'https://api.jinse.cn';
13
+ const apiUrl = new URL('noah/v3/timelines', rootApiUrl).href;
14
+ const currentUrl = rootUrl;
15
+
16
+ const { data: response } = await got(apiUrl, {
17
+ searchParams: {
18
+ catelogue_key: category === '头条' ? 'www' : category,
19
+ limit,
20
+ information_id: 0,
21
+ flag: 'up',
22
+ },
23
+ });
24
+
25
+ let items = response.data.list.slice(0, limit).map((item) => {
26
+ item = item.object_1 ?? item.object_2;
27
+
28
+ return {
29
+ title: item.title,
30
+ link: item.jump_url,
31
+ description: art(path.join(__dirname, 'templates/description.art'), {
32
+ images: item.cover
33
+ ? [
34
+ {
35
+ src: item.cover.replace(/_[^\W_]+(\.\w+)$/, '_true$1'),
36
+ alt: item.title,
37
+ },
38
+ ]
39
+ : undefined,
40
+ intro: item.summary,
41
+ description: item.content,
42
+ }),
43
+ author: item.author.nickname,
44
+ guid: `jinse${/\/lives\//.test(item.jump_url) ? '-lives' : ''}-${item.id}`,
45
+ pubDate: parseDate(item.published_at, 'X'),
46
+ upvotes: item.up_counts ?? 0,
47
+ downvotes: item.down_counts ?? 0,
48
+ comments: item.comment_count ?? 0,
49
+ };
50
+ });
51
+
52
+ items = await Promise.all(
53
+ items.map((item) =>
54
+ ctx.cache.tryGet(item.link, async () => {
55
+ if (/\/lives\//.test(item.link)) {
56
+ return item;
57
+ }
58
+
59
+ const { data: detailResponse } = await got(item.link);
60
+
61
+ const content = cheerio.load(detailResponse);
62
+
63
+ item.description += art(path.join(__dirname, 'templates/description.art'), {
64
+ description: content('section.js-article-content').html() || content('div.js-article').html(),
65
+ });
66
+ item.category = content('section.js-article-tag_state_1 a span')
67
+ .toArray()
68
+ .map((c) => content(c).text());
69
+
70
+ return item;
71
+ })
72
+ )
73
+ );
74
+
75
+ const { data: currentResponse } = await got(currentUrl);
76
+
77
+ const $ = cheerio.load(currentResponse);
78
+
79
+ const author = $('meta[name="author"]').prop('content');
80
+ const image = $('a.js-logoBox img').prop('src');
81
+ const icon = new URL($('link[rel="favicon"]').prop('href'), rootUrl).href;
82
+
83
+ ctx.state.data = {
84
+ item: items,
85
+ title: `${author} - ${category}`,
86
+ link: currentUrl,
87
+ description: $('meta[name="description"]').prop('content'),
88
+ language: $('html').prop('lang'),
89
+ image,
90
+ icon,
91
+ logo: icon,
92
+ subtitle: $('meta[name="keywords"]').prop('content'),
93
+ author,
94
+ allowEmpty: true,
95
+ };
96
+ };
@@ -0,0 +1,68 @@
1
+ const got = require('@/utils/got');
2
+ const cheerio = require('cheerio');
3
+ const iconv = require('iconv-lite');
4
+ const timezone = require('@/utils/timezone');
5
+ const { parseDate } = require('@/utils/parse-date');
6
+ const { art } = require('@/utils/render');
7
+ const path = require('path');
8
+
9
+ module.exports = async (ctx) => {
10
+ const { id } = ctx.params;
11
+
12
+ const rootUrl = 'https://www.jjwxc.net';
13
+ const currentUrl = new URL(`oneauthor.php?authorid=${id}`, rootUrl).href;
14
+
15
+ const { data: response } = await got(currentUrl, {
16
+ responseType: 'buffer',
17
+ });
18
+
19
+ const $ = cheerio.load(iconv.decode(response, 'gbk'));
20
+
21
+ const bookEl = $('font a').first();
22
+ const bookInfoEl = bookEl.parent();
23
+
24
+ const bookName = bookEl.text();
25
+ const bookUrl = new URL(bookEl.prop('href'), rootUrl).href;
26
+ const bookStatus = bookInfoEl.find('font').first().text();
27
+ const bookWords = bookInfoEl.find('font').eq(1).text();
28
+ const bookUpdatedTime = bookInfoEl.parent().contents().last().text().trim();
29
+ const bookId = bookUrl.split(/=/).pop();
30
+
31
+ const title = `${bookName}(${bookStatus}/${bookWords}/${bookUpdatedTime})`;
32
+ const author = $('span[itemprop="name"]').text();
33
+
34
+ const items = [
35
+ {
36
+ title,
37
+ link: bookUrl,
38
+ description: art(path.join(__dirname, 'templates/author.art'), {
39
+ bookName,
40
+ bookUrl,
41
+ bookStatus,
42
+ bookWords,
43
+ bookUpdatedTime,
44
+ }),
45
+ author,
46
+ category: [bookStatus],
47
+ guid: `jjwxc-${id}-${bookId}#${bookWords}`,
48
+ pubDate: timezone(parseDate(bookUpdatedTime), +8),
49
+ },
50
+ ];
51
+
52
+ const logoEl = $('div.logo a img');
53
+ const image = `https:${logoEl.prop('src')}`;
54
+ const icon = new URL('favicon.ico', rootUrl).href;
55
+
56
+ ctx.state.data = {
57
+ item: items,
58
+ title: `${logoEl.prop('alt').replace(/logo/, '')} | ${author} - 最近更新`,
59
+ link: currentUrl,
60
+ description: $('span[itemprop="description"]').text(),
61
+ language: 'zh',
62
+ image,
63
+ icon,
64
+ logo: icon,
65
+ subtitle: $('meta[name="Description"]').prop('content'),
66
+ author,
67
+ };
68
+ };
@@ -0,0 +1,106 @@
1
+ const got = require('@/utils/got');
2
+ const cheerio = require('cheerio');
3
+ const iconv = require('iconv-lite');
4
+ const timezone = require('@/utils/timezone');
5
+ const { parseDate } = require('@/utils/parse-date');
6
+ const { art } = require('@/utils/render');
7
+ const path = require('path');
8
+
9
+ module.exports = async (ctx) => {
10
+ const { id } = ctx.params;
11
+ const limit = ctx.query.limit ? Number.parseInt(ctx.query.limit, 10) : 100;
12
+
13
+ const rootUrl = 'https://www.jjwxc.net';
14
+ const currentUrl = new URL(`onebook.php?novelid=${id}`, rootUrl).href;
15
+
16
+ const { data: response } = await got(currentUrl, {
17
+ responseType: 'buffer',
18
+ });
19
+
20
+ const $ = cheerio.load(iconv.decode(response, 'gbk'));
21
+
22
+ const author = $('meta[name="Author"]').prop('content');
23
+ const keywords = $('meta[name="Keywords"]').prop('content').split(/,/);
24
+
25
+ keywords.pop();
26
+
27
+ const category = keywords.pop();
28
+
29
+ let items = $('tr[itemprop="chapter"]')
30
+ .toArray()
31
+ .map((item) => {
32
+ item = $(item);
33
+
34
+ const chapterId = item.find('td').first().text().trim();
35
+ const chapterName = item.find('span[itemprop="headline"]').text().trim();
36
+ const chapterIntro = item.find('td').eq(2).text().trim();
37
+ const chapterUrl = new URL(`onebook.php?novelid=${id}&chapterid=${chapterId}`, rootUrl).href;
38
+ const chapterWords = item.find('td[itemprop="wordCount"]').text();
39
+ const chapterClicks = item.find('td.chapterclick').text();
40
+ const chapterUpdatedTime = item.find('td').last().text().trim();
41
+
42
+ const isVip = item.find('span[itemprop="headline"] font').last().text() === '[VIP]';
43
+
44
+ return {
45
+ title: `${chapterName} ${chapterIntro}`,
46
+ link: chapterUrl,
47
+ description: art(path.join(__dirname, 'templates/book.art'), {
48
+ chapterId,
49
+ chapterName,
50
+ chapterIntro,
51
+ chapterUrl,
52
+ chapterWords,
53
+ chapterClicks,
54
+ chapterUpdatedTime,
55
+ }),
56
+ author,
57
+ category: [isVip ? 'VIP' : undefined, ...(category?.split(/\s/) ?? [])].filter(Boolean),
58
+ guid: `jjwxc-${id}#${chapterId}`,
59
+ pubDate: timezone(parseDate(chapterUpdatedTime), +8),
60
+ isVip,
61
+ };
62
+ });
63
+
64
+ items.reverse();
65
+
66
+ items = await Promise.all(
67
+ items.slice(0, limit).map((item) =>
68
+ ctx.cache.tryGet(item.link, async () => {
69
+ if (!item.isVip) {
70
+ const { data: detailResponse } = await got(item.link, {
71
+ responseType: 'buffer',
72
+ });
73
+
74
+ const content = cheerio.load(iconv.decode(detailResponse, 'gbk'));
75
+
76
+ content('span.favorite_novel').parent().remove();
77
+
78
+ item.description += art(path.join(__dirname, 'templates/book.art'), {
79
+ description: content('div.novelbody').html(),
80
+ });
81
+ }
82
+
83
+ delete item.isVip;
84
+
85
+ return item;
86
+ })
87
+ )
88
+ );
89
+
90
+ const logoEl = $('div.logo a img');
91
+ const image = `https:${logoEl.prop('src')}`;
92
+ const icon = new URL('favicon.ico', rootUrl).href;
93
+
94
+ ctx.state.data = {
95
+ item: items,
96
+ title: `${logoEl.prop('alt').replace(/logo/, '')} | ${author}${keywords[0]}`,
97
+ link: currentUrl,
98
+ description: $('span[itemprop="description"]').text(),
99
+ language: 'zh',
100
+ image,
101
+ icon,
102
+ logo: icon,
103
+ subtitle: $('meta[name="Description"]').prop('content'),
104
+ author: $('meta[name="Author"]').prop('content'),
105
+ };
106
+ };
@@ -0,0 +1,4 @@
1
+ module.exports = {
2
+ '/author/:id?': ['nczitzk'],
3
+ '/book/:id?': ['nczitzk'],
4
+ };
@@ -0,0 +1,29 @@
1
+ module.exports = {
2
+ 'jjwxc.net': {
3
+ _name: '晋江文学城',
4
+ '.': [
5
+ {
6
+ title: '作者最新作品',
7
+ docs: 'https://docs.rsshub.app/routes/reading#jin-jiang-wen-xue-cheng-zuo-zhe-zui-xin-zuo-pin',
8
+ source: ['oneauthor.php'],
9
+ target: (_, url) => {
10
+ url = new URL(url);
11
+ const id = url.searchParams.get('authorid');
12
+
13
+ return `/jjwxc/author/${id}`;
14
+ },
15
+ },
16
+ {
17
+ title: '作品',
18
+ docs: 'https://docs.rsshub.app/routes/reading#jin-jiang-wen-xue-cheng-zuo-pin',
19
+ source: ['onebook.php'],
20
+ target: (_, url) => {
21
+ url = new URL(url);
22
+ const id = url.searchParams.get('novelid');
23
+
24
+ return `/jjwxc/book/${id}`;
25
+ },
26
+ },
27
+ ],
28
+ },
29
+ };
@@ -0,0 +1,4 @@
1
+ module.exports = (router) => {
2
+ router.get('/author/:id?', require('./author'));
3
+ router.get('/book/:id?', require('./book'));
4
+ };
@@ -0,0 +1,28 @@
1
+ <table>
2
+ <tbody>
3
+ {{ if bookName }}
4
+ <tr>
5
+ <th>最近更新作品</th>
6
+ <td><a href="{{ bookUrl }}">{{ bookName }}</a></td>
7
+ </tr>
8
+ {{ /if }}
9
+ {{ if bookStatus }}
10
+ <tr>
11
+ <th>作品状态</th>
12
+ <td>{{ bookStatus }}</td>
13
+ </tr>
14
+ {{ /if }}
15
+ {{ if bookWords }}
16
+ <tr>
17
+ <th>作品字数</th>
18
+ <td>{{ bookWords }}</td>
19
+ </tr>
20
+ {{ /if }}
21
+ {{ if bookUpdatedTime }}
22
+ <tr>
23
+ <th>最后更新时间</th>
24
+ <td>{{ bookUpdatedTime }}</td>
25
+ </tr>
26
+ {{ /if }}
27
+ </tbody>
28
+ </table>
@@ -0,0 +1,44 @@
1
+ {{ if description }}
2
+ {{@ description }}
3
+ {{ else }}
4
+ <table>
5
+ <tbody>
6
+ {{ if chapterId }}
7
+ <tr>
8
+ <th>章节</th>
9
+ <td><a href="{{ chapterUrl }}">{{ chapterId }}</a></td>
10
+ </tr>
11
+ {{ /if }}
12
+ {{ if chapterName }}
13
+ <tr>
14
+ <th>标题</th>
15
+ <td><a href="{{ chapterUrl }}">{{ chapterName }}</a></td>
16
+ </tr>
17
+ {{ /if }}
18
+ {{ if chapterIntro }}
19
+ <tr>
20
+ <th>内容提要</th>
21
+ <td><a href="{{ chapterUrl }}">{{ chapterIntro }}</a></td>
22
+ </tr>
23
+ {{ /if }}
24
+ {{ if chapterWords }}
25
+ <tr>
26
+ <th>字数</th>
27
+ <td>{{ chapterWords }}</td>
28
+ </tr>
29
+ {{ /if }}
30
+ {{ if chapterClicks }}
31
+ <tr>
32
+ <th>点击</th>
33
+ <td>{{ chapterClicks }}</td>
34
+ </tr>
35
+ {{ /if }}
36
+ {{ if chapterUpdatedTime }}
37
+ <tr>
38
+ <th>更新时间</th>
39
+ <td>{{ chapterUpdatedTime }}</td>
40
+ </tr>
41
+ {{ /if }}
42
+ </tbody>
43
+ </table>
44
+ {{ /if }}
@@ -4,6 +4,7 @@ const asyncPool = require('tiny-async-pool');
4
4
  const { art } = require('@/utils/render');
5
5
  const { parseJucheDate, fixDesc, fetchPhoto, fetchVideo } = require('./utils');
6
6
  const path = require('path');
7
+ const sanitizeHtml = require('sanitize-html');
7
8
 
8
9
  module.exports = async (ctx) => {
9
10
  const { lang, category = '1ee9bdb7186944f765208f34ecfb5407' } = ctx.params;
@@ -15,9 +16,7 @@ module.exports = async (ctx) => {
15
16
  const $ = cheerio.load(response.data);
16
17
 
17
18
  // fix <nobr><span class="fSpecCs">???</span></nobr>
18
- const title = $('head > title')
19
- .text()
20
- .replaceAll(/<[^>]*>/g, '');
19
+ const title = sanitizeHtml($('head > title').text(), { allowedTags: [], allowedAttributes: {} });
21
20
 
22
21
  const list = $('.article-link li a')
23
22
  .map((_, item) => {
@@ -0,0 +1,3 @@
1
+ module.exports = {
2
+ '/': ['TonyRL'],
3
+ };