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
@@ -334,7 +334,7 @@ const processItems = async (items, limit, tryGet) => {
334
334
 
335
335
  if (item.moment_id) {
336
336
  guid = `huxiu-moment-${item.moment_id}`;
337
- link = item.url ?? new URL(`moment/${item.moment_id}.html`, rootUrl).href;
337
+ link = item.url || new URL(`moment/${item.moment_id}.html`, rootUrl).href;
338
338
  } else if (item.brief_id || /huxiu\.com\/brief\//.test(item.url)) {
339
339
  item.brief_id = item.brief_id ?? item.aid;
340
340
  guid = `huxiu-brief-${item.brief_id}`;
@@ -4,7 +4,7 @@ module.exports = {
4
4
  '.': [
5
5
  {
6
6
  title: 'News',
7
- docs: 'https://docs.rsshub.app/routes/en/new-media#indians-in-kuwait',
7
+ docs: 'https://docs.rsshub.app/routes/new-media#indians-in-kuwait',
8
8
  source: ['/latest-news', '/'],
9
9
  target: '/indiansinkuwait/latest',
10
10
  },
@@ -0,0 +1,24 @@
1
+ const got = require('@/utils/got');
2
+ const cheerio = require('cheerio');
3
+ const { parseList, parseItem } = require('./utils');
4
+
5
+ module.exports = async (ctx) => {
6
+ const type = ctx.params.type;
7
+ let link = 'https://indienova.com/indie-game-news/';
8
+ if (type === 'development') {
9
+ link = 'https://indienova.com/indie-game-development/';
10
+ }
11
+ const response = await got(link);
12
+
13
+ const $ = cheerio.load(response.data);
14
+ const list = parseList($);
15
+
16
+ const items = await Promise.all(list.map((item) => ctx.cache.tryGet(item.link, () => parseItem(item))));
17
+
18
+ ctx.state.data = {
19
+ title: $('head title').text(),
20
+ link,
21
+ description: '独立游戏资讯 | indienova 独立游戏',
22
+ item: items,
23
+ };
24
+ };
@@ -0,0 +1,20 @@
1
+ const got = require('@/utils/got');
2
+ const cheerio = require('cheerio');
3
+ const { baseUrl, parseList, parseItem } = require('./utils');
4
+
5
+ module.exports = async (ctx) => {
6
+ const { columnId } = ctx.params;
7
+
8
+ const { data: response, url: link } = await got(`${baseUrl}/column/${columnId}`);
9
+ const $ = cheerio.load(response);
10
+
11
+ const list = parseList($);
12
+
13
+ const items = await Promise.all(list.map((item) => ctx.cache.tryGet(item.link, () => parseItem(item))));
14
+
15
+ ctx.state.data = {
16
+ title: $('head title').text(),
17
+ link,
18
+ item: items,
19
+ };
20
+ };
@@ -0,0 +1,55 @@
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 { platform = 'all' } = ctx.params;
8
+ const baseUrl = 'https://indienova.com';
9
+
10
+ const { data: response, url: link } = await got(`${baseUrl}/gamedb/recent/${platform}/p/1`);
11
+ const $ = cheerio.load(response);
12
+
13
+ const list = $('.related-game')
14
+ .toArray()
15
+ .map((item) => {
16
+ item = $(item);
17
+ return {
18
+ title: item
19
+ .find('span')
20
+ .contents()
21
+ .filter((_, el) => el.nodeType === 3)
22
+ .text(),
23
+ link: new URL(item.find('a').attr('href'), baseUrl).href,
24
+ };
25
+ });
26
+
27
+ const items = await Promise.all(
28
+ list.map((item) =>
29
+ ctx.cache.tryGet(item.link, async () => {
30
+ const { data: response } = await got(item.link);
31
+ const $ = cheerio.load(response);
32
+
33
+ const featureBox = $('.feature-box');
34
+ if (featureBox.length) {
35
+ item.description = featureBox.find('p').first().text();
36
+ return item;
37
+ }
38
+
39
+ const article = $('.row article');
40
+ article.find('#showHiddenText').remove();
41
+
42
+ item.description = $('.cover-image').prop('outerHTML') + $('.tab-container').html() + article.html();
43
+ item.pubDate = $('.gamedb-release').length ? timezone(parseDate($('.gamedb-release').text().replaceAll(/[()]/g, '')), +8) : null;
44
+
45
+ return item;
46
+ })
47
+ )
48
+ );
49
+
50
+ ctx.state.data = {
51
+ title: $('head title').text(),
52
+ link,
53
+ item: items,
54
+ };
55
+ };
@@ -0,0 +1,6 @@
1
+ module.exports = {
2
+ '/column/:columnId': ['TonyRL'],
3
+ '/gamedb/recent': ['TonyRL'],
4
+ '/usergames': ['TonyRL'],
5
+ '/:type': ['GensouSakuya', 'kt286'],
6
+ };
@@ -0,0 +1,37 @@
1
+ module.exports = {
2
+ 'indienova.com': {
3
+ _name: 'indienova 独立游戏',
4
+ '.': [
5
+ {
6
+ title: '文章',
7
+ docs: 'https://docs.rsshub.app/routes/game#indienova-du-li-you-xi',
8
+ source: ['/indie-game-news', '/'],
9
+ target: '/indienova/article',
10
+ },
11
+ {
12
+ title: '开发',
13
+ docs: 'https://docs.rsshub.app/routes/game#indienova-du-li-you-xi',
14
+ source: ['/indie-game-development', '/'],
15
+ target: '/indienova/development',
16
+ },
17
+ {
18
+ title: '专题',
19
+ docs: 'https://docs.rsshub.app/routes/game#indienova-du-li-you-xi',
20
+ source: ['/column/:columnId'],
21
+ target: '/indienova/column/:columnId',
22
+ },
23
+ {
24
+ title: 'GameDB 游戏库',
25
+ docs: 'https://docs.rsshub.app/routes/game#indienova-du-li-you-xi',
26
+ source: ['/gamedb/recent/:platform/p/1'],
27
+ target: '/indienova/gamedb/recent/:platform',
28
+ },
29
+ {
30
+ title: '会员开发游戏库',
31
+ docs: 'https://docs.rsshub.app/routes/game#indienova-du-li-you-xi',
32
+ source: ['/usergames', '/'],
33
+ target: '/indienova/usergames',
34
+ },
35
+ ],
36
+ },
37
+ };
@@ -0,0 +1,6 @@
1
+ module.exports = (router) => {
2
+ router.get('/column/:columnId', require('./column'));
3
+ router.get('/gamedb/recent', require('./gamedb'));
4
+ router.get('/usergames', require('./usergames'));
5
+ router.get('/:type', require('./article'));
6
+ };
@@ -0,0 +1,42 @@
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 = 'https://indienova.com';
8
+
9
+ const { data: response, url: link } = await got(`${baseUrl}/usergames`);
10
+ const $ = cheerio.load(response);
11
+
12
+ const list = $('.steam-game')
13
+ .toArray()
14
+ .map((item) => {
15
+ item = $(item);
16
+ return {
17
+ title: item.find('h3').attr('title'),
18
+ link: new URL(item.find('a').attr('href'), baseUrl).href,
19
+ author: item.find('span').text(),
20
+ };
21
+ });
22
+
23
+ const items = await Promise.all(
24
+ list.map((item) =>
25
+ ctx.cache.tryGet(item.link, async () => {
26
+ const { data: response } = await got(item.link);
27
+ const $ = cheerio.load(response);
28
+
29
+ item.description = $('.cover-image').prop('outerHTML') + $('.tab-container').html() + $('.swiper-wrapper').prop('outerHTML') + $('.postcontent').html();
30
+ item.pubDate = $('.gamedb-release').length ? timezone(parseDate($('.gamedb-release').text().replaceAll(/[()]/g, '')), +8) : null;
31
+
32
+ return item;
33
+ })
34
+ )
35
+ );
36
+
37
+ ctx.state.data = {
38
+ title: $('head title').text(),
39
+ link,
40
+ item: items,
41
+ };
42
+ };
@@ -0,0 +1,43 @@
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
+ const baseUrl = 'https://indienova.com';
7
+
8
+ const parseList = ($) =>
9
+ $('.article-panel')
10
+ .toArray()
11
+ .map((item) => {
12
+ item = $(item);
13
+ const a = item.find('h4 a');
14
+ return {
15
+ title: a.text(),
16
+ link: new URL(a.attr('href'), baseUrl).href,
17
+ upvotes: item.find('.number-first').text(),
18
+ comments: item.find('.number-last').text(),
19
+ };
20
+ });
21
+
22
+ const parseItem = async (item) => {
23
+ const { data: response } = await got(item.link);
24
+ const $ = cheerio.load(response);
25
+
26
+ item.description = $('.single-post').html();
27
+ item.author = $('.header-info > a').text();
28
+ const pubDate = $('.header-info')
29
+ .contents()
30
+ .filter((_, el) => el.nodeType === 3)
31
+ .text()
32
+ .trim()
33
+ .match(/(\d{4}-\d{2}-\d{2})/)?.[0];
34
+ item.pubDate = pubDate ? timezone(parseDate(pubDate, 'YYYY-MM-DD'), +8) : null;
35
+
36
+ return item;
37
+ };
38
+
39
+ module.exports = {
40
+ baseUrl,
41
+ parseList,
42
+ parseItem,
43
+ };
@@ -43,7 +43,7 @@ const renderItems = (items) =>
43
43
 
44
44
  // Metadata
45
45
  const url = `https://www.instagram.com/p/${item.code}/`;
46
- const pubDate = parseDate(item.caption.created_at_utc || item.taken_at, 'X');
46
+ const pubDate = parseDate(item.caption?.created_at_utc || item.taken_at, 'X');
47
47
  const title = summary.split('\n')[0];
48
48
 
49
49
  return {
@@ -7,7 +7,7 @@ module.exports = async (ctx) => {
7
7
  const category = ctx.params.category ?? '';
8
8
 
9
9
  const rootUrl = 'https://www.iresearch.com.cn';
10
- const currentUrl = `${rootUrl}/report.shtml?type=4`;
10
+ const currentUrl = `${rootUrl}/report?type=3`;
11
11
  const apiUrl = `${rootUrl}/api/json/report/ireport.json`;
12
12
 
13
13
  const response = await got({
@@ -16,8 +16,8 @@ module.exports = async (ctx) => {
16
16
  });
17
17
 
18
18
  const items = JSON.parse(response.data.slice(1))
19
- .slice(0, ctx.query.limit ? Number.parseInt(ctx.query.limit) : 200)
20
19
  .filter((item) => (category ? item.classname === category : true))
20
+ .slice(0, ctx.query.limit ? Number.parseInt(ctx.query.limit) : 200)
21
21
  .map((item) => ({
22
22
  title: item.reportname,
23
23
  pubDate: parseDate(item.addtime),
@@ -55,7 +55,7 @@ module.exports = {
55
55
 
56
56
  content('.icn_edit, .btn_videoplayer, a[rel="bookmark"]').remove();
57
57
  content('span').each(function () {
58
- if (content(this).attr('class').startsWith('icn_')) {
58
+ if (content(this).attr('class')?.startsWith('icn_')) {
59
59
  content(this).remove();
60
60
  }
61
61
  });
@@ -4,7 +4,7 @@ module.exports = {
4
4
  '.': [
5
5
  {
6
6
  title: 'Exhibitions',
7
- docs: 'https://docs.rsshub.app/routes/en/travel#the-jewish-museum',
7
+ docs: 'https://docs.rsshub.app/routes/travel#the-jewish-museum',
8
8
  },
9
9
  ],
10
10
  },
@@ -43,7 +43,7 @@ module.exports = async (ctx) => {
43
43
  const image = content('div.article-img img').first();
44
44
  const video = content('#video-player').first();
45
45
 
46
- item.title = content('div.article-header h1').text();
46
+ item.title = content('div.article-header h1').eq(0).text();
47
47
  item.description = art(path.join(__dirname, 'templates/description.art'), {
48
48
  image: image
49
49
  ? {
@@ -4,6 +4,8 @@ const cheerio = require('cheerio');
4
4
  const dayjs = require('dayjs');
5
5
  const { constructTopicEntry } = require('@/v2/jike/utils');
6
6
 
7
+ const urlRegex = /(https?:\/\/[^\s"'<>]+)/g;
8
+
7
9
  module.exports = async (ctx) => {
8
10
  const id = ctx.params.id;
9
11
  const topicUrl = `https://m.okjike.com/topics/${id}`;
@@ -33,6 +35,7 @@ module.exports = async (ctx) => {
33
35
  return description;
34
36
  });
35
37
  }
38
+ item.description = item.description.replaceAll(urlRegex, (url) => `<a href="${url}">${url}</a>`);
36
39
  item.title = `${data.topic.content} ${dayjs(one.pubDate).format('MM月DD日')}`;
37
40
  return item;
38
41
  })
@@ -0,0 +1,101 @@
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
+ const categories = {
8
+ zhengce: '政策',
9
+ fenxishishuo: '行情',
10
+ defi: 'DeFi',
11
+ kuang: '矿业',
12
+ '以太坊2.0': '以太坊 2.0',
13
+ industry: '产业',
14
+ IPFS: 'IPFS',
15
+ tech: '技术',
16
+ baike: '百科',
17
+ capitalmarket: '研报',
18
+ };
19
+
20
+ module.exports = async (ctx) => {
21
+ const { category = 'zhengce' } = ctx.params;
22
+ const limit = ctx.query.limit ? Number.parseInt(ctx.query.limit, 10) : 50;
23
+
24
+ const rootUrl = 'https://www.jinse.cn';
25
+ const rootApiUrl = 'https://api.jinse.cn';
26
+ const apiUrl = new URL('v6/www/information/list', rootApiUrl).href;
27
+ const currentUrl = rootUrl;
28
+
29
+ const { data: response } = await got(apiUrl, {
30
+ searchParams: {
31
+ catelogue_key: category,
32
+ limit,
33
+ flag: 'up',
34
+ },
35
+ });
36
+
37
+ let items = response.list.slice(0, limit).map((item) => ({
38
+ title: item.title,
39
+ link: item.extra.topic_url,
40
+ description: art(path.join(__dirname, 'templates/description.art'), {
41
+ images:
42
+ item.extra.thumbnails_pics.length > 0
43
+ ? item.extra.thumbnails_pics.map((p) => ({
44
+ src: p.replace(/_[^\W_]+(\.\w+)$/, '_true$1'),
45
+ }))
46
+ : undefined,
47
+ intro: item.extra.summary,
48
+ }),
49
+ author: item.extra.nickname,
50
+ guid: `jinse${/\/lives\//.test(item.extra.topic_url) ? '-lives' : ''}-${item.extra.topic_id}`,
51
+ pubDate: parseDate(item.extra.published_at, 'X'),
52
+ upvotes: item.extra.up_counts ?? 0,
53
+ downvotes: item.extra.down_counts ?? 0,
54
+ comments: item.extra.comment_count ?? 0,
55
+ }));
56
+
57
+ items = await Promise.all(
58
+ items.map((item) =>
59
+ ctx.cache.tryGet(item.link, async () => {
60
+ if (/\/lives\//.test(item.link)) {
61
+ return item;
62
+ }
63
+
64
+ const { data: detailResponse } = await got(item.link);
65
+
66
+ const content = cheerio.load(detailResponse);
67
+
68
+ item.description += art(path.join(__dirname, 'templates/description.art'), {
69
+ description: content('section.js-article-content').html() || content('div.js-article').html(),
70
+ });
71
+ item.category = content('section.js-article-tag_state_1 a span')
72
+ .toArray()
73
+ .map((c) => content(c).text());
74
+
75
+ return item;
76
+ })
77
+ )
78
+ );
79
+
80
+ const { data: currentResponse } = await got(currentUrl);
81
+
82
+ const $ = cheerio.load(currentResponse);
83
+
84
+ const author = $('meta[name="author"]').prop('content');
85
+ const image = $('a.js-logoBox img').prop('src');
86
+ const icon = new URL($('link[rel="favicon"]').prop('href'), rootUrl).href;
87
+
88
+ ctx.state.data = {
89
+ item: items,
90
+ title: `${author} - ${Object.hasOwn(categories, category) ? categories[category] : category}`,
91
+ link: currentUrl,
92
+ description: $('meta[name="description"]').prop('content'),
93
+ language: $('html').prop('lang'),
94
+ image,
95
+ icon,
96
+ logo: icon,
97
+ subtitle: $('meta[name="keywords"]').prop('content'),
98
+ author,
99
+ allowEmpty: true,
100
+ };
101
+ };
@@ -0,0 +1,87 @@
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
+ const categories = {
8
+ 0: '全部',
9
+ 1: '精选',
10
+ 2: '政策',
11
+ 3: '数据',
12
+ 4: 'NFT',
13
+ 5: '项目',
14
+ };
15
+
16
+ module.exports = async (ctx) => {
17
+ const { category = '0' } = ctx.params;
18
+ const limit = ctx.query.limit ? Number.parseInt(ctx.query.limit, 10) : 100;
19
+
20
+ const rootUrl = 'https://jinse.cn';
21
+ const rootApiUrl = 'https://api.jinse.cn';
22
+ const apiUrl = new URL('noah/v2/lives', rootApiUrl).href;
23
+ const currentUrl = new URL('lives', rootUrl).href;
24
+
25
+ const { data: response } = await got(apiUrl, {
26
+ searchParams: {
27
+ limit,
28
+ reading: false,
29
+ source: 'web',
30
+ flag: 'up',
31
+ id: 0,
32
+ category,
33
+ },
34
+ });
35
+
36
+ const items =
37
+ response.list
38
+ .flatMap((l) => l.lives)
39
+ .slice(0, limit)
40
+ .map((item) => ({
41
+ title: item.content_prefix,
42
+ link: new URL(`lives/${item.id}.html`, rootUrl).href,
43
+ description: art(path.join(__dirname, 'templates/description.art'), {
44
+ images:
45
+ item.images?.map((i) => ({
46
+ src: i.url.replace(/_[^\W_]+(\.\w+)$/, '_true$1'),
47
+ width: i.width,
48
+ height: i.height,
49
+ })) ?? [],
50
+ description: item.content,
51
+ original: item.link
52
+ ? {
53
+ link: item.link,
54
+ name: item.link_name,
55
+ }
56
+ : undefined,
57
+ }),
58
+ author: item.show_source_name,
59
+ guid: `jinse-lives-${item.id}`,
60
+ pubDate: parseDate(item.created_at, 'X'),
61
+ upvotes: item.up_counts ?? 0,
62
+ downvotes: item.down_counts ?? 0,
63
+ comments: item.comment_count ?? 0,
64
+ })) ?? [];
65
+
66
+ const { data: currentResponse } = await got(currentUrl);
67
+
68
+ const $ = cheerio.load(currentResponse);
69
+
70
+ const author = $('meta[name="author"]').prop('content');
71
+ const image = $('a.js-logoBox img').prop('src');
72
+ const icon = new URL($('link[rel="favicon"]').prop('href'), rootUrl).href;
73
+
74
+ ctx.state.data = {
75
+ item: items,
76
+ title: `${author} - ${Object.hasOwn(categories, category) ? categories[category] : category}`,
77
+ link: currentUrl,
78
+ description: $('meta[name="description"]').prop('content'),
79
+ language: $('html').prop('lang'),
80
+ image,
81
+ icon,
82
+ logo: icon,
83
+ subtitle: $('meta[name="keywords"]').prop('content'),
84
+ author,
85
+ allowEmpty: true,
86
+ };
87
+ };
@@ -0,0 +1,5 @@
1
+ module.exports = {
2
+ '/lives/:category?': ['nczitzk'],
3
+ '/timeline/:category?': ['nczitzk'],
4
+ '/:category?': ['nczitzk'],
5
+ };