rsshub 1.0.0-master.deeed20 → 1.0.0-master.df32098

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 (966) hide show
  1. package/lib/api/index.ts +2 -7
  2. package/lib/config.ts +8 -1
  3. package/lib/registry.ts +50 -6
  4. package/lib/router.js +0 -12
  5. package/lib/routes/005/index.ts +0 -2
  6. package/lib/routes/10000link/info.ts +250 -0
  7. package/lib/routes/10000link/namespace.ts +9 -0
  8. package/lib/routes/12306/index.ts +0 -2
  9. package/lib/routes/12306/zxdt.ts +15 -33
  10. package/lib/routes/141jav/index.ts +0 -2
  11. package/lib/routes/141ppv/index.ts +0 -2
  12. package/lib/routes/163/ds.ts +0 -2
  13. package/lib/routes/163/exclusive.ts +0 -2
  14. package/lib/routes/163/music/artist-songs.ts +0 -2
  15. package/lib/routes/163/music/artist.ts +0 -2
  16. package/lib/routes/163/music/djradio.ts +0 -2
  17. package/lib/routes/163/music/playlist.ts +0 -2
  18. package/lib/routes/163/music/userevents.ts +0 -2
  19. package/lib/routes/163/music/userplaylist.ts +0 -2
  20. package/lib/routes/163/music/userplayrecords.ts +0 -2
  21. package/lib/routes/163/news/rank.ts +1 -1
  22. package/lib/routes/163/open/vip.ts +0 -2
  23. package/lib/routes/163/utils.ts +2 -5
  24. package/lib/routes/18comic/utils.ts +0 -3
  25. package/lib/routes/199it/index.ts +331 -0
  26. package/lib/routes/199it/templates/description.art +20 -0
  27. package/lib/routes/1point3acres/offer.ts +0 -2
  28. package/lib/routes/1point3acres/utils.ts +0 -3
  29. package/lib/routes/1x/index.ts +1 -3
  30. package/lib/routes/2048/index.ts +24 -25
  31. package/lib/routes/3kns/index.ts +0 -2
  32. package/lib/routes/423down/index.ts +6 -8
  33. package/lib/routes/4gamers/utils.ts +0 -3
  34. package/lib/routes/4khd/article.ts +28 -0
  35. package/lib/routes/4khd/category.ts +48 -0
  36. package/lib/routes/4khd/const.ts +4 -0
  37. package/lib/routes/4khd/latest.ts +41 -0
  38. package/lib/routes/4khd/namespace.ts +8 -0
  39. package/lib/routes/4khd/types.ts +12 -0
  40. package/lib/routes/4ksj/forum.ts +0 -2
  41. package/lib/routes/500px/tribe-set.ts +0 -2
  42. package/lib/routes/56kog/util.ts +0 -3
  43. package/lib/routes/591/list.ts +0 -2
  44. package/lib/routes/5music/index.ts +87 -0
  45. package/lib/routes/5music/namespace.ts +9 -0
  46. package/lib/routes/6park/index.ts +1 -1
  47. package/lib/routes/78dm/index.ts +0 -2
  48. package/lib/routes/7mmtv/index.ts +0 -2
  49. package/lib/routes/8264/list.ts +0 -2
  50. package/lib/routes/91porn/author.ts +0 -2
  51. package/lib/routes/91porn/index.ts +0 -2
  52. package/lib/routes/95mm/utils.ts +0 -3
  53. package/lib/routes/a9vg/index.ts +0 -2
  54. package/lib/routes/abc/index.ts +0 -2
  55. package/lib/routes/academia/topics.ts +10 -20
  56. package/lib/routes/accessbriefing/index.ts +0 -2
  57. package/lib/routes/acs/journal.ts +0 -2
  58. package/lib/routes/adquan/case-library.ts +143 -0
  59. package/lib/routes/adquan/index.ts +143 -0
  60. package/lib/routes/adquan/namespace.ts +9 -0
  61. package/lib/routes/adquan/templates/description.art +7 -0
  62. package/lib/routes/aeaweb/index.ts +0 -2
  63. package/lib/routes/aeon/utils.ts +0 -3
  64. package/lib/routes/aflcio/blog.ts +157 -0
  65. package/lib/routes/aflcio/namespace.ts +9 -0
  66. package/lib/routes/agefans/update.ts +20 -20
  67. package/lib/routes/agri/index.ts +0 -2
  68. package/lib/routes/aibase/util.ts +0 -3
  69. package/lib/routes/aicaijing/index.ts +0 -2
  70. package/lib/routes/aip/journal-pupp.ts +1 -1
  71. package/lib/routes/aip/utils.ts +0 -3
  72. package/lib/routes/ali213/news.ts +0 -3
  73. package/lib/routes/ali213/zl.ts +0 -3
  74. package/lib/routes/aljazeera/index.ts +0 -2
  75. package/lib/routes/alternativeto/utils.ts +1 -1
  76. package/lib/routes/amazon/kindle-software-updates.ts +0 -2
  77. package/lib/routes/anthropic/news.ts +34 -17
  78. package/lib/routes/apkpure/versions.ts +1 -1
  79. package/lib/routes/apnews/mobile-api.ts +94 -0
  80. package/lib/routes/apnews/sitemap.ts +3 -2
  81. package/lib/routes/apnews/topics.ts +3 -2
  82. package/lib/routes/apnews/utils.ts +2 -10
  83. package/lib/routes/app-center/release.ts +0 -2
  84. package/lib/routes/apple/podcast.ts +2 -1
  85. package/lib/routes/appstore/price.ts +0 -1
  86. package/lib/routes/appstorrent/programs.ts +0 -2
  87. package/lib/routes/aqara/post.ts +1 -3
  88. package/lib/routes/aqicn/aqi.ts +1 -0
  89. package/lib/routes/arcteryx/new-arrivals.ts +0 -2
  90. package/lib/routes/arcteryx/outlet.ts +0 -2
  91. package/lib/routes/arcteryx/regear-new-arrivals.ts +0 -2
  92. package/lib/routes/artstation/user.ts +0 -2
  93. package/lib/routes/asiafruitchina/categories.ts +682 -0
  94. package/lib/routes/asiafruitchina/namespace.ts +9 -0
  95. package/lib/routes/asiafruitchina/news.ts +181 -0
  96. package/lib/routes/asiafruitchina/templates/description.art +17 -0
  97. package/lib/routes/asianfanfics/namespace.ts +7 -0
  98. package/lib/routes/asianfanfics/tag.ts +91 -0
  99. package/lib/routes/asianfanfics/text-search.ts +70 -0
  100. package/lib/routes/asiantolick/index.ts +0 -2
  101. package/lib/routes/asmr-200/index.ts +1 -2
  102. package/lib/routes/asus/bios.ts +1 -5
  103. package/lib/routes/baidu/gushitong/index.ts +0 -2
  104. package/lib/routes/baidu/search.ts +0 -2
  105. package/lib/routes/baidu/tieba/forum.ts +0 -2
  106. package/lib/routes/baidu/tieba/post.ts +0 -2
  107. package/lib/routes/baidu/tieba/search.ts +0 -2
  108. package/lib/routes/baidu/top.ts +0 -2
  109. package/lib/routes/bandcamp/weekly.ts +0 -2
  110. package/lib/routes/bangumi.online/online.ts +0 -2
  111. package/lib/routes/bangumi.tv/calendar/today.ts +0 -2
  112. package/lib/routes/bangumi.tv/subject/ep.ts +0 -3
  113. package/lib/routes/bangumi.tv/user/collections.ts +0 -3
  114. package/lib/routes/baobua/article.ts +51 -0
  115. package/lib/routes/baobua/category.ts +60 -0
  116. package/lib/routes/baobua/const.ts +4 -0
  117. package/lib/routes/baobua/latest.ts +57 -0
  118. package/lib/routes/baobua/namespace.ts +8 -0
  119. package/lib/routes/baobua/search.ts +60 -0
  120. package/lib/routes/baozimh/index.ts +0 -2
  121. package/lib/routes/bc3ts/list.ts +1 -4
  122. package/lib/routes/bdys/index.ts +37 -40
  123. package/lib/routes/behance/user.ts +0 -2
  124. package/lib/routes/bgmlist/onair.ts +0 -2
  125. package/lib/routes/bilibili/cache.ts +4 -4
  126. package/lib/routes/bilibili/danmaku.ts +1 -1
  127. package/lib/routes/bilibili/live-room.ts +14 -12
  128. package/lib/routes/bilibili/manga-update.ts +37 -4
  129. package/lib/routes/bilibili/utils.ts +0 -3
  130. package/lib/routes/bilibili/wasm-exec.ts +649 -0
  131. package/lib/routes/bing/search.ts +2 -2
  132. package/lib/routes/bjnews/cat.ts +2 -9
  133. package/lib/routes/bjx/huanbao.ts +4 -12
  134. package/lib/routes/blockworks/index.ts +128 -0
  135. package/lib/routes/blockworks/namespace.ts +7 -0
  136. package/lib/routes/bloomberg/authors.ts +3 -2
  137. package/lib/routes/bloomberg/index.ts +6 -5
  138. package/lib/routes/bloomberg/utils.ts +1 -13
  139. package/lib/routes/bnu/fe.ts +1 -0
  140. package/lib/routes/bnu/jwb.ts +1 -0
  141. package/lib/routes/booru/mmda.ts +0 -2
  142. package/lib/routes/bsky/feeds.ts +70 -0
  143. package/lib/routes/bsky/posts.ts +0 -2
  144. package/lib/routes/bsky/utils.ts +34 -1
  145. package/lib/routes/btzj/index.ts +0 -2
  146. package/lib/routes/buaa/lib/space/newbook.ts +0 -2
  147. package/lib/routes/buct/cist.ts +58 -0
  148. package/lib/routes/buct/gr.ts +93 -0
  149. package/lib/routes/buct/jwc.ts +64 -0
  150. package/lib/routes/buct/namespace.ts +7 -0
  151. package/lib/routes/bullionvault/gold-news.ts +231 -0
  152. package/lib/routes/bullionvault/namespace.ts +9 -0
  153. package/lib/routes/caai/utils.ts +0 -3
  154. package/lib/routes/caareviews/utils.ts +0 -3
  155. package/lib/routes/cahkms/index.ts +0 -2
  156. package/lib/routes/caixin/database.ts +0 -2
  157. package/lib/routes/caixin/utils.ts +0 -3
  158. package/lib/routes/cankaoxiaoxi/index.ts +0 -2
  159. package/lib/routes/cara/likes.ts +0 -3
  160. package/lib/routes/cara/timeline.ts +0 -3
  161. package/lib/routes/cara/utils.ts +0 -9
  162. package/lib/routes/cartoonmad/comic.ts +0 -2
  163. package/lib/routes/cbaigui/index.ts +0 -2
  164. package/lib/routes/ccf/ccfcv/index.ts +0 -2
  165. package/lib/routes/ccf/tfbd/utils.ts +0 -3
  166. package/lib/routes/ccfa/index.ts +0 -2
  167. package/lib/routes/cctv/xwlb.ts +1 -1
  168. package/lib/routes/cde/xxgk.ts +24 -9
  169. package/lib/routes/cdu/cdrw.ts +80 -0
  170. package/lib/routes/cdu/tzggcdunews.ts +80 -0
  171. package/lib/routes/cdzjryb/project-list.ts +0 -2
  172. package/lib/routes/cebbank/all.ts +0 -2
  173. package/lib/routes/cebbank/history.ts +0 -2
  174. package/lib/routes/cfr/index.ts +3 -2
  175. package/lib/routes/cfr/utils.ts +0 -9
  176. package/lib/routes/chaincatcher/home.ts +0 -2
  177. package/lib/routes/changba/user.ts +0 -2
  178. package/lib/routes/chaoxing/qk.ts +0 -2
  179. package/lib/routes/cherrytimes/market.ts +35 -0
  180. package/lib/routes/cherrytimes/namespace.ts +6 -0
  181. package/lib/routes/chinacdc/index.ts +0 -3
  182. package/lib/routes/chinadegrees/province.ts +0 -2
  183. package/lib/routes/chuanliu/nice.ts +0 -2
  184. package/lib/routes/chuapp/chuapp.ts +147 -0
  185. package/lib/routes/chuapp/namespace.ts +7 -0
  186. package/lib/routes/cls/depth.ts +0 -2
  187. package/lib/routes/cls/hot.ts +0 -2
  188. package/lib/routes/cls/subject.ts +0 -2
  189. package/lib/routes/cls/telegraph.ts +0 -2
  190. package/lib/routes/cma/channel.ts +0 -2
  191. package/lib/routes/cmu/andypavlo/blog.ts +55 -0
  192. package/lib/routes/cmu/namespace.ts +7 -0
  193. package/lib/routes/cnblogs/common.ts +0 -1
  194. package/lib/routes/cngal/entry.ts +0 -2
  195. package/lib/routes/cngal/weekly.ts +1 -4
  196. package/lib/routes/cnjxol/index.ts +0 -2
  197. package/lib/routes/cnki/debut.ts +0 -2
  198. package/lib/routes/cnki/utils.ts +0 -3
  199. package/lib/routes/cntheory/paper.ts +0 -2
  200. package/lib/routes/cntv/column.ts +0 -2
  201. package/lib/routes/codeforces/contests.ts +4 -6
  202. package/lib/routes/coindesk/{index.ts → consensus-magazine.ts} +17 -21
  203. package/lib/routes/coindesk/namespace.ts +2 -1
  204. package/lib/routes/coindesk/news.ts +47 -0
  205. package/lib/routes/coindesk/utils.ts +26 -0
  206. package/lib/routes/cointelegraph/index.ts +106 -0
  207. package/lib/routes/cointelegraph/namespace.ts +7 -0
  208. package/lib/routes/colamanga/manga.ts +1 -1
  209. package/lib/routes/collabo-cafe/category.ts +37 -0
  210. package/lib/routes/collabo-cafe/index.ts +35 -0
  211. package/lib/routes/collabo-cafe/namespace.ts +9 -0
  212. package/lib/routes/collabo-cafe/parser.ts +29 -0
  213. package/lib/routes/collabo-cafe/tag.ts +37 -0
  214. package/lib/routes/comicskingdom/index.ts +0 -2
  215. package/lib/routes/coolpc/namespace.ts +7 -0
  216. package/lib/routes/coolpc/news.ts +53 -0
  217. package/lib/routes/coomer/index.ts +155 -0
  218. package/lib/routes/coomer/templates/source.art +24 -0
  219. package/lib/routes/copymanga/comic.ts +5 -15
  220. package/lib/routes/cpta/handler.ts +2 -6
  221. package/lib/routes/creative-comic/book.ts +0 -2
  222. package/lib/routes/cryptoslate/index.ts +98 -0
  223. package/lib/routes/cryptoslate/namespace.ts +7 -0
  224. package/lib/routes/cts/news.ts +23 -22
  225. package/lib/routes/cuilingmag/index.ts +0 -3
  226. package/lib/routes/cupl/jwc.ts +69 -0
  227. package/lib/routes/cupl/namespace.ts +20 -0
  228. package/lib/routes/curius/links.ts +0 -2
  229. package/lib/routes/cursor/changelog.ts +94 -51
  230. package/lib/routes/cw/utils.ts +2 -0
  231. package/lib/routes/cztv/daily.ts +0 -2
  232. package/lib/routes/cztv/zjxwlb.ts +0 -2
  233. package/lib/routes/daily/utils.ts +0 -2
  234. package/lib/routes/damai/activity.ts +0 -2
  235. package/lib/routes/dataguidance/index.ts +2 -2
  236. package/lib/routes/dcard/utils.ts +38 -37
  237. package/lib/routes/dcfever/utils.ts +0 -3
  238. package/lib/routes/deadline/posts.ts +0 -2
  239. package/lib/routes/dealstreetasia/home.ts +1 -1
  240. package/lib/routes/decrypt/index.ts +115 -0
  241. package/lib/routes/decrypt/namespace.ts +7 -0
  242. package/lib/routes/dedao/index.ts +3 -3
  243. package/lib/routes/dedao/knowledge.ts +0 -2
  244. package/lib/routes/dedao/user.ts +0 -2
  245. package/lib/routes/deeplearning/the-batch.ts +0 -2
  246. package/lib/routes/deepseek/news.ts +2 -2
  247. package/lib/routes/dehenglaw/index.ts +0 -2
  248. package/lib/routes/diariofruticola/filtro.ts +129 -0
  249. package/lib/routes/diariofruticola/namespace.ts +9 -0
  250. package/lib/routes/diershoubing/news.ts +0 -2
  251. package/lib/routes/discord/channel.ts +0 -2
  252. package/lib/routes/discord/search.ts +0 -3
  253. package/lib/routes/discuz/discuz.ts +7 -9
  254. package/lib/routes/dlnews/category.ts +2 -7
  255. package/lib/routes/dlsite/utils.ts +0 -3
  256. package/lib/routes/dn/news.ts +0 -2
  257. package/lib/routes/domp4/detail.ts +8 -6
  258. package/lib/routes/domp4/latest-movie-bt.ts +10 -10
  259. package/lib/routes/domp4/latest.ts +8 -8
  260. package/lib/routes/domp4/namespace.ts +2 -8
  261. package/lib/routes/domp4/utils.ts +5 -5
  262. package/lib/routes/douban/movie/coming.ts +0 -3
  263. package/lib/routes/douban/other/explore.ts +0 -2
  264. package/lib/routes/douban/other/list.ts +0 -2
  265. package/lib/routes/douban/other/recommended.ts +0 -2
  266. package/lib/routes/douban/other/weekly-best.ts +0 -2
  267. package/lib/routes/douyin/live.ts +1 -1
  268. package/lib/routes/douyin/types.ts +1 -5
  269. package/lib/routes/douyin/user.ts +1 -1
  270. package/lib/routes/douyin/utils.ts +0 -3
  271. package/lib/routes/douyu/group.ts +0 -2
  272. package/lib/routes/douyu/post.ts +0 -2
  273. package/lib/routes/dribbble/utils.ts +0 -3
  274. package/lib/routes/duozhuayu/search.ts +0 -2
  275. package/lib/routes/dushu/fuzhou/index.ts +0 -2
  276. package/lib/routes/dw/utils.ts +0 -2
  277. package/lib/routes/e-hentai/index.ts +1 -3
  278. package/lib/routes/eastmoney/report/index.ts +0 -3
  279. package/lib/routes/ecnu/contest.ts +0 -2
  280. package/lib/routes/elsevier/issue.ts +0 -2
  281. package/lib/routes/elsevier/journal.ts +0 -2
  282. package/lib/routes/epicgames/index.ts +2 -4
  283. package/lib/routes/eprice/rss.ts +0 -2
  284. package/lib/routes/eshukan/academic.ts +0 -2
  285. package/lib/routes/espn/news.ts +2 -5
  286. package/lib/routes/esquirehk/tag.ts +1 -4
  287. package/lib/routes/famitsu/category.ts +1 -3
  288. package/lib/routes/fanbox/types.ts +0 -4
  289. package/lib/routes/fanbox/utils.ts +0 -3
  290. package/lib/routes/fangchan/list.ts +221 -0
  291. package/lib/routes/fangchan/namespace.ts +9 -0
  292. package/lib/routes/fangchan/templates/description.art +7 -0
  293. package/lib/routes/fansly/utils.ts +0 -3
  294. package/lib/routes/fantia/search.ts +1 -1
  295. package/lib/routes/farcaster/namespace.ts +7 -0
  296. package/lib/routes/farcaster/user.ts +46 -0
  297. package/lib/routes/farmatters/index.ts +0 -2
  298. package/lib/routes/fashionnetwork/index.ts +0 -2
  299. package/lib/routes/fastbull/news.ts +0 -2
  300. package/lib/routes/feng/forum.ts +0 -2
  301. package/lib/routes/ff14/ff14-global.ts +0 -2
  302. package/lib/routes/ff14/ff14-zh.ts +0 -2
  303. package/lib/routes/fffdm/manhua/manhua.ts +0 -2
  304. package/lib/routes/fisher-spb/news.ts +0 -2
  305. package/lib/routes/flyert/util.ts +0 -3
  306. package/lib/routes/focustaiwan/index.ts +0 -2
  307. package/lib/routes/follow/profile.ts +1 -1
  308. package/lib/routes/followin/news.ts +1 -1
  309. package/lib/routes/followin/utils.ts +0 -3
  310. package/lib/routes/foreignaffairs/namespace.ts +7 -0
  311. package/lib/routes/foreignaffairs/rss.ts +55 -0
  312. package/lib/routes/foresightnews/util.ts +1 -4
  313. package/lib/routes/forklog/index.ts +72 -0
  314. package/lib/routes/forklog/namespace.ts +7 -0
  315. package/lib/routes/fortnite/news.ts +1 -1
  316. package/lib/routes/fosshub/index.ts +0 -2
  317. package/lib/routes/freecomputerbooks/index.ts +0 -2
  318. package/lib/routes/furstar/utils.ts +0 -3
  319. package/lib/routes/futunn/main.ts +0 -2
  320. package/lib/routes/gameapps/index.ts +1 -3
  321. package/lib/routes/gamebase/news.ts +0 -3
  322. package/lib/routes/gamekee/namespace.ts +6 -0
  323. package/lib/routes/gamekee/news.ts +64 -0
  324. package/lib/routes/gcores/articles.ts +4 -3
  325. package/lib/routes/gcores/categories.ts +126 -0
  326. package/lib/routes/gcores/collections.ts +126 -0
  327. package/lib/routes/gcores/news.ts +4 -3
  328. package/lib/routes/gcores/parser.ts +0 -3
  329. package/lib/routes/gcores/program-previews.ts +47 -0
  330. package/lib/routes/gcores/radio.ts +0 -2
  331. package/lib/routes/gcores/tags.ts +126 -0
  332. package/lib/routes/gcores/topics.ts +60 -0
  333. package/lib/routes/gcores/util.ts +21 -20
  334. package/lib/routes/gcores/videos.ts +49 -0
  335. package/lib/routes/gdut/oa-news.ts +85 -84
  336. package/lib/routes/geekpark/index.ts +0 -2
  337. package/lib/routes/gelbooru/namespace.ts +7 -0
  338. package/lib/routes/gelbooru/post.ts +113 -0
  339. package/lib/routes/gelbooru/templates/description.art +19 -0
  340. package/lib/routes/gelbooru/utils.ts +40 -0
  341. package/lib/routes/gelonghui/live.ts +0 -2
  342. package/lib/routes/geocaching/blogs.ts +4 -3
  343. package/lib/routes/gettr/user.ts +0 -2
  344. package/lib/routes/gitcode/namespace.ts +7 -0
  345. package/lib/routes/gitcode/repos/commits.ts +67 -0
  346. package/lib/routes/github/pulse.ts +0 -2
  347. package/lib/routes/github/trending.ts +0 -2
  348. package/lib/routes/gitpod/blog.ts +0 -2
  349. package/lib/routes/gofans/index.ts +0 -2
  350. package/lib/routes/google/fonts.ts +0 -2
  351. package/lib/routes/google/news.ts +0 -2
  352. package/lib/routes/google/search.ts +0 -2
  353. package/lib/routes/gov/beijing/bphc/index.ts +1 -1
  354. package/lib/routes/gov/caac/cjwt.ts +0 -2
  355. package/lib/routes/gov/cbirc/index.ts +14 -13
  356. package/lib/routes/gov/ccdi/index.ts +1 -1
  357. package/lib/routes/gov/cmse/fxrw.ts +0 -2
  358. package/lib/routes/gov/cmse/index.ts +0 -2
  359. package/lib/routes/gov/csrc/news.ts +1 -3
  360. package/lib/routes/gov/customs/list.ts +1 -1
  361. package/lib/routes/gov/forestry/gjlckjdjt.ts +0 -2
  362. package/lib/routes/gov/general/general.ts +2 -5
  363. package/lib/routes/gov/guangdong/tqyb/sncsyjxh.ts +0 -2
  364. package/lib/routes/gov/guangdong/tqyb/tfxtq.ts +0 -2
  365. package/lib/routes/gov/hangzhou/namespace.ts +9 -0
  366. package/lib/routes/gov/hangzhou/templates/jbxx.art +173 -0
  367. package/lib/routes/gov/hangzhou/zjzwfw.ts +89 -0
  368. package/lib/routes/gov/hangzhou/zwfw.ts +110 -0
  369. package/lib/routes/gov/jiangsu/wlt/index.ts +0 -3
  370. package/lib/routes/gov/moa/gjs.ts +210 -0
  371. package/lib/routes/gov/mof/gss.ts +82 -0
  372. package/lib/routes/gov/nea/ghs.ts +70 -37
  373. package/lib/routes/gov/nrta/dsj.ts +13 -14
  374. package/lib/routes/gov/pbc/goutongjiaoliu.ts +1 -1
  375. package/lib/routes/gov/pbc/trade-announcement.ts +1 -1
  376. package/lib/routes/gov/safe/util.ts +0 -3
  377. package/lib/routes/gov/samr/xgzlyhd.ts +0 -2
  378. package/lib/routes/gov/sh/fgw/index.ts +0 -2
  379. package/lib/routes/gov/sh/rsj/ksxm.ts +0 -2
  380. package/lib/routes/gov/sh/wgj/wgj.ts +0 -2
  381. package/lib/routes/gov/sichuan/deyang/govpublicinfo.ts +0 -2
  382. package/lib/routes/gov/sichuan/deyang/mztoday.ts +0 -2
  383. package/lib/routes/gov/stats/index.ts +4 -10
  384. package/lib/routes/gov/tianjin/tjftz.ts +53 -0
  385. package/lib/routes/gov/tianjin/tjrcgzw.ts +51 -0
  386. package/lib/routes/grainoil/category.ts +207 -0
  387. package/lib/routes/grainoil/namespace.ts +9 -0
  388. package/lib/routes/guduodata/daily.ts +0 -2
  389. package/lib/routes/gumroad/index.ts +0 -2
  390. package/lib/routes/guozaoke/index.ts +34 -35
  391. package/lib/routes/gzdaily/app.ts +0 -2
  392. package/lib/routes/hafu/utils.ts +3 -6
  393. package/lib/routes/hanime1/namespace.ts +7 -0
  394. package/lib/routes/hanime1/previews.ts +89 -0
  395. package/lib/routes/hashnode/blog.ts +0 -2
  396. package/lib/routes/hebtv/nong-bo-shi-zai-xing-dong.ts +0 -2
  397. package/lib/routes/hellogithub/report.ts +1 -3
  398. package/lib/routes/hellogithub/volume.ts +0 -2
  399. package/lib/routes/hiring.cafe/jobs.ts +0 -3
  400. package/lib/routes/hitcon/zeroday.ts +1 -4
  401. package/lib/routes/hk01/utils.ts +0 -3
  402. package/lib/routes/hkej/index.ts +0 -2
  403. package/lib/routes/hket/index.ts +0 -2
  404. package/lib/routes/hkushop/namespace.ts +9 -0
  405. package/lib/routes/hkushop/vinyl-or-picture-lp.ts +87 -0
  406. package/lib/routes/hostmonit/cloudflareyes.ts +1 -3
  407. package/lib/routes/hottoys/index.ts +2 -2
  408. package/lib/routes/houxu/events.ts +0 -2
  409. package/lib/routes/houxu/index.ts +0 -2
  410. package/lib/routes/houxu/memory.ts +0 -2
  411. package/lib/routes/hoyolab/news.ts +0 -2
  412. package/lib/routes/hrbeu/cec/list.ts +82 -0
  413. package/lib/routes/hrbust/cs.ts +100 -0
  414. package/lib/routes/hrbust/gzc.ts +97 -0
  415. package/lib/routes/hrbust/jwzx.ts +8 -8
  416. package/lib/routes/hrbust/lib.ts +97 -0
  417. package/lib/routes/hrbust/news.ts +9 -10
  418. package/lib/routes/hrbust/nic.ts +5 -8
  419. package/lib/routes/hupu/all.ts +0 -2
  420. package/lib/routes/hupu/bbs.ts +0 -2
  421. package/lib/routes/huxiu/util.ts +11 -12
  422. package/lib/routes/hypergryph/arknights/announce.ts +1 -1
  423. package/lib/routes/i-cable/news.ts +0 -3
  424. package/lib/routes/ianspriggs/index.ts +0 -2
  425. package/lib/routes/idaily/index.ts +1 -3
  426. package/lib/routes/ieee/author.ts +0 -2
  427. package/lib/routes/ieee/journal.ts +0 -2
  428. package/lib/routes/ielts/index.ts +1 -1
  429. package/lib/routes/ifanr/category.ts +7 -2
  430. package/lib/routes/ifanr/digest.ts +1 -1
  431. package/lib/routes/ifanr/index.ts +1 -1
  432. package/lib/routes/ifeng/news.ts +0 -2
  433. package/lib/routes/ifeng/utils.ts +0 -3
  434. package/lib/routes/ikea/cn/utils.ts +0 -3
  435. package/lib/routes/ikea/gb/new.ts +0 -2
  436. package/lib/routes/ikea/gb/offer.ts +0 -2
  437. package/lib/routes/iknowwhatyoudownload/daily.ts +0 -3
  438. package/lib/routes/imdb/chart.ts +1 -3
  439. package/lib/routes/imiker/jinghua.ts +0 -2
  440. package/lib/routes/infoq/presentations.ts +0 -2
  441. package/lib/routes/informs/index.ts +0 -2
  442. package/lib/routes/instagram/common-utils.ts +0 -3
  443. package/lib/routes/instagram/web-api/utils.ts +0 -3
  444. package/lib/routes/instructables/projects.ts +20 -15
  445. package/lib/routes/iplaysoft/category.ts +49 -0
  446. package/lib/routes/iplaysoft/index.ts +48 -41
  447. package/lib/routes/iplaysoft/namespace.ts +1 -0
  448. package/lib/routes/iplaysoft/tag.ts +49 -0
  449. package/lib/routes/iplaysoft/utils.ts +34 -0
  450. package/lib/routes/ipsw.dev/index.ts +0 -2
  451. package/lib/routes/iqilu/program.ts +0 -2
  452. package/lib/routes/iqiyi/album.ts +0 -2
  453. package/lib/routes/iqiyi/video.ts +1 -1
  454. package/lib/routes/iresearch/chart.ts +0 -3
  455. package/lib/routes/iresearch/report.ts +0 -2
  456. package/lib/routes/iresearch/weekly.ts +0 -2
  457. package/lib/routes/itch/devlog.ts +0 -2
  458. package/lib/routes/itch/index.ts +0 -2
  459. package/lib/routes/ithome/zt.ts +0 -2
  460. package/lib/routes/iwara/subscriptions.ts +0 -2
  461. package/lib/routes/ixigua/user-video.ts +0 -2
  462. package/lib/routes/jandan/index.ts +36 -12
  463. package/lib/routes/jandan/section.ts +102 -44
  464. package/lib/routes/jandan/utils.ts +248 -0
  465. package/lib/routes/japanpost/track.ts +0 -3
  466. package/lib/routes/japanpost/utils.ts +5 -5
  467. package/lib/routes/javbus/index.ts +0 -2
  468. package/lib/routes/javlibrary/utils.ts +0 -3
  469. package/lib/routes/javtiful/utils.ts +0 -3
  470. package/lib/routes/javtrailers/utils.ts +0 -2
  471. package/lib/routes/jd/price.ts +0 -2
  472. package/lib/routes/jiemian/lists.ts +0 -2
  473. package/lib/routes/jimmyspa/books.ts +0 -2
  474. package/lib/routes/jimmyspa/news.ts +0 -2
  475. package/lib/routes/jin10/category.ts +221 -0
  476. package/lib/routes/jin10/index.ts +0 -2
  477. package/lib/routes/jinse/catalogue.ts +0 -2
  478. package/lib/routes/jinse/lives.ts +0 -2
  479. package/lib/routes/jinse/timeline.ts +0 -2
  480. package/lib/routes/jiuyangongshe/community.ts +1 -4
  481. package/lib/routes/jjwxc/author.ts +0 -2
  482. package/lib/routes/jjwxc/book.ts +0 -2
  483. package/lib/routes/joins/chinese.ts +0 -2
  484. package/lib/routes/joneslanglasalle/index.ts +0 -3
  485. package/lib/routes/joshwcomeau/latest.ts +59 -0
  486. package/lib/routes/joshwcomeau/namespace.ts +8 -0
  487. package/lib/routes/joshwcomeau/popular.ts +38 -0
  488. package/lib/routes/joshwcomeau/utils.ts +61 -0
  489. package/lib/routes/jpmorganchase/namespace.ts +9 -0
  490. package/lib/routes/jpmorganchase/research.ts +107 -0
  491. package/lib/routes/jpxgmn/utils.ts +0 -3
  492. package/lib/routes/juejin/collections.ts +1 -1
  493. package/lib/routes/jump/discount.ts +0 -2
  494. package/lib/routes/kadokawa/blog.ts +0 -2
  495. package/lib/routes/kamen-rider-official/news.ts +0 -2
  496. package/lib/routes/kantarworldpanel/index.ts +0 -2
  497. package/lib/routes/kcna/news.ts +32 -34
  498. package/lib/routes/keep/user.ts +0 -2
  499. package/lib/routes/kemono/index.ts +3 -5
  500. package/lib/routes/kepu/live.ts +0 -2
  501. package/lib/routes/komiic/comic.ts +88 -0
  502. package/lib/routes/komiic/namespace.ts +7 -0
  503. package/lib/routes/kpmg/insights.ts +0 -2
  504. package/lib/routes/kpopping/kpics.ts +215 -0
  505. package/lib/routes/kpopping/namespace.ts +9 -0
  506. package/lib/routes/kpopping/news.ts +194 -0
  507. package/lib/routes/kpopping/templates/description.art +17 -0
  508. package/lib/routes/kurogames/namespace.ts +1 -1
  509. package/lib/routes/kurogames/wutheringwaves/constants.ts +34 -0
  510. package/lib/routes/kurogames/wutheringwaves/news.ts +60 -33
  511. package/lib/routes/kurogames/wutheringwaves/utils.ts +79 -0
  512. package/lib/routes/kyodonews/index.ts +0 -2
  513. package/lib/routes/landiannews/category.ts +48 -0
  514. package/lib/routes/landiannews/index.ts +11 -129
  515. package/lib/routes/landiannews/tag.ts +48 -0
  516. package/lib/routes/landiannews/utils.ts +34 -0
  517. package/lib/routes/lang/room.ts +0 -2
  518. package/lib/routes/lanqiao/utils.ts +0 -3
  519. package/lib/routes/latepost/index.ts +1 -1
  520. package/lib/routes/leagueoflegends/namespace.ts +8 -0
  521. package/lib/routes/leagueoflegends/patch-notes.ts +76 -0
  522. package/lib/routes/learnku/topic.ts +0 -2
  523. package/lib/routes/leetcode/dailyquestion-cn.ts +0 -2
  524. package/lib/routes/leetcode/dailyquestion-en.ts +0 -2
  525. package/lib/routes/lens/namespace.ts +7 -0
  526. package/lib/routes/lens/profile.ts +80 -0
  527. package/lib/routes/lfsyd/utils.ts +0 -3
  528. package/lib/routes/likeshop/index.ts +43 -0
  529. package/lib/routes/likeshop/namespace.ts +7 -0
  530. package/lib/routes/linkedin/cn/utils.ts +0 -3
  531. package/lib/routes/linkedin/posts.ts +64 -0
  532. package/lib/routes/linkedin/utils.ts +75 -1
  533. package/lib/routes/linkresearcher/index.ts +0 -2
  534. package/lib/routes/lkong/forum.ts +0 -2
  535. package/lib/routes/lkong/thread.ts +0 -2
  536. package/lib/routes/lmu/jobs.ts +0 -2
  537. package/lib/routes/logclub/index.ts +0 -2
  538. package/lib/routes/logclub/report.ts +0 -2
  539. package/lib/routes/logonews/index.ts +0 -2
  540. package/lib/routes/logrocket/index.ts +1 -8
  541. package/lib/routes/loltw/news.ts +0 -2
  542. package/lib/routes/loongarch/post.ts +1 -0
  543. package/lib/routes/lorientlejour/index.ts +1 -3
  544. package/lib/routes/lovelive-anime/news.ts +0 -2
  545. package/lib/routes/lovelive-anime/schedules.ts +2 -4
  546. package/lib/routes/lovelive-anime/topics.ts +0 -2
  547. package/lib/routes/lrepacks/index.ts +0 -2
  548. package/lib/routes/ltaaa/article.ts +177 -0
  549. package/lib/routes/ltaaa/namespace.ts +9 -0
  550. package/lib/routes/ltaaa/templates/description.art +7 -0
  551. package/lib/routes/luogu/contest.ts +25 -25
  552. package/lib/routes/luolei/index.ts +0 -2
  553. package/lib/routes/lvv2/news.ts +0 -2
  554. package/lib/routes/lvv2/top.ts +0 -2
  555. package/lib/routes/lxixsxa/discography.ts +0 -2
  556. package/lib/routes/lxixsxa/information.ts +0 -2
  557. package/lib/routes/m4/index.ts +0 -2
  558. package/lib/routes/maccms/index.ts +1 -2
  559. package/lib/routes/magazinelib/latest-magazine.ts +0 -2
  560. package/lib/routes/manhuagui/subscribe.ts +0 -2
  561. package/lib/routes/manyvids/video.ts +1 -4
  562. package/lib/routes/mashiro/index.ts +62 -0
  563. package/lib/routes/mashiro/namespace.ts +11 -0
  564. package/lib/routes/mastodon/timeline-local.ts +1 -1
  565. package/lib/routes/mastodon/timeline-remote.ts +1 -1
  566. package/lib/routes/mcmod/index.ts +1 -2
  567. package/lib/routes/mdpi/journal.ts +0 -2
  568. package/lib/routes/meituan/tech.ts +31 -37
  569. package/lib/routes/melonbooks/namespace.ts +9 -0
  570. package/lib/routes/melonbooks/parser.ts +39 -0
  571. package/lib/routes/melonbooks/search.ts +44 -0
  572. package/lib/routes/mercari/keyword.ts +67 -0
  573. package/lib/routes/mercari/namespace.ts +9 -0
  574. package/lib/routes/mercari/templates/item.art +46 -0
  575. package/lib/routes/mercari/templates/shopItem.art +46 -0
  576. package/lib/routes/mercari/types.ts +278 -0
  577. package/lib/routes/mercari/util.ts +306 -0
  578. package/lib/routes/metacritic/index.ts +0 -2
  579. package/lib/routes/meteor/index.ts +1 -1
  580. package/lib/routes/meteor/utils.ts +0 -3
  581. package/lib/routes/mi/utils.ts +4 -7
  582. package/lib/routes/mihoyo/bbs/follow-list.ts +0 -2
  583. package/lib/routes/mihoyo/bbs/official.ts +0 -2
  584. package/lib/routes/mihoyo/bbs/utils.ts +0 -3
  585. package/lib/routes/mihoyo/ys/news.ts +0 -2
  586. package/lib/routes/mindmeister/example.ts +0 -2
  587. package/lib/routes/mingpao/index.ts +0 -2
  588. package/lib/routes/missav/new.ts +0 -2
  589. package/lib/routes/misskey/utils.ts +0 -3
  590. package/lib/routes/mittrchina/index.ts +3 -5
  591. package/lib/routes/modelscope/community.ts +0 -2
  592. package/lib/routes/modelscope/datasets.ts +0 -2
  593. package/lib/routes/modelscope/studios.ts +0 -2
  594. package/lib/routes/modrinth/versions.ts +0 -3
  595. package/lib/routes/mrdx/daily.ts +1 -1
  596. package/lib/routes/mycard520/namespace.ts +9 -0
  597. package/lib/routes/mycard520/news.ts +252 -0
  598. package/lib/routes/mydrivers/index.ts +0 -2
  599. package/lib/routes/myfans/post.ts +1 -4
  600. package/lib/routes/myfigurecollection/activity.ts +0 -2
  601. package/lib/routes/myfigurecollection/index.ts +0 -2
  602. package/lib/routes/mymusicsheet/usersheets.ts +0 -2
  603. package/lib/routes/natgeo/dailyphoto.ts +0 -2
  604. package/lib/routes/nationalgeographic/latest-stories.ts +0 -2
  605. package/lib/routes/nautil/topics.ts +0 -2
  606. package/lib/routes/nautiljon/manga-releases.ts +26 -15
  607. package/lib/routes/nber/common.ts +0 -3
  608. package/lib/routes/ncc-cma/cmdp.ts +0 -2
  609. package/lib/routes/netflav/index.ts +0 -2
  610. package/lib/routes/news/xhsxw.ts +0 -2
  611. package/lib/routes/newzmz/util.ts +0 -3
  612. package/lib/routes/nextapple/realtime.ts +28 -27
  613. package/lib/routes/nhentai/util.ts +7 -5
  614. package/lib/routes/nhk/news-web-easy.ts +0 -2
  615. package/lib/routes/nhk/news.ts +0 -2
  616. package/lib/routes/nicovideo/utils.ts +1 -4
  617. package/lib/routes/nikkei/news.ts +0 -2
  618. package/lib/routes/nintendo/direct.ts +0 -2
  619. package/lib/routes/nintendo/eshop-hk.ts +0 -2
  620. package/lib/routes/nintendo/eshop-jp.ts +0 -2
  621. package/lib/routes/nintendo/eshop-us.ts +0 -2
  622. package/lib/routes/nintendo/utils.ts +2 -5
  623. package/lib/routes/njnu/jwc/jwc.ts +2 -2
  624. package/lib/routes/njust/utils.ts +1 -1
  625. package/lib/routes/nmtv/column.ts +0 -2
  626. package/lib/routes/notefolio/search.ts +0 -2
  627. package/lib/routes/npm/package.ts +0 -2
  628. package/lib/routes/nwnu/namespace.ts +7 -0
  629. package/lib/routes/nwnu/routes/college/csse.ts +133 -0
  630. package/lib/routes/nwnu/routes/department/academic-affairs.ts +115 -0
  631. package/lib/routes/nwnu/routes/department/postgraduate.ts +139 -0
  632. package/lib/routes/nwnu/routes/lib/embed-resource.ts +14 -0
  633. package/lib/routes/nytimes/daily-briefing-chinese.ts +0 -2
  634. package/lib/routes/nytimes/index.ts +1 -1
  635. package/lib/routes/nytimes/rss.ts +5 -1
  636. package/lib/routes/oceanengine/arithmetic-index.ts +2 -4
  637. package/lib/routes/oeeee/app/channel.ts +0 -2
  638. package/lib/routes/oeeee/app/reporter.ts +0 -2
  639. package/lib/routes/oeeee/web.ts +0 -2
  640. package/lib/routes/oilchem/index.ts +1 -1
  641. package/lib/routes/okx/index.ts +125 -0
  642. package/lib/routes/okx/namespace.ts +7 -0
  643. package/lib/routes/oncc/index.ts +0 -2
  644. package/lib/routes/oncc/money18.ts +1 -3
  645. package/lib/routes/onet/news.ts +0 -2
  646. package/lib/routes/onet/utils.ts +0 -3
  647. package/lib/routes/openai/chatgpt.ts +1 -1
  648. package/lib/routes/openai/common.ts +0 -3
  649. package/lib/routes/openrice/chart.ts +0 -2
  650. package/lib/routes/openrice/offers.ts +0 -2
  651. package/lib/routes/openrice/promos.ts +0 -2
  652. package/lib/routes/orcid/index.ts +0 -2
  653. package/lib/routes/oreno3d/main.ts +0 -2
  654. package/lib/routes/oschina/column.ts +0 -3
  655. package/lib/routes/oschina/event.ts +0 -3
  656. package/lib/routes/oshwhub/explore.ts +0 -2
  657. package/lib/routes/osu/beatmaps/latest-ranked.ts +0 -2
  658. package/lib/routes/otobanana/utils.ts +0 -3
  659. package/lib/routes/oup/index.ts +0 -2
  660. package/lib/routes/papers/category.ts +1219 -0
  661. package/lib/routes/papers/query.ts +0 -2
  662. package/lib/routes/papers/templates/description.art +9 -6
  663. package/lib/routes/parliament.uk/commonslibrary.ts +1 -1
  664. package/lib/routes/parliament.uk/lordslibrary.ts +1 -1
  665. package/lib/routes/parliament.uk/petitions.ts +0 -3
  666. package/lib/routes/patagonia/new-arrivals.ts +0 -2
  667. package/lib/routes/patreon/feed.ts +2 -5
  668. package/lib/routes/patreon/templates/description.art +2 -0
  669. package/lib/routes/patreon/types.ts +8 -12
  670. package/lib/routes/penguin-random-house/utils.ts +0 -3
  671. package/lib/routes/people/index.ts +2 -2
  672. package/lib/routes/phoronix/index.ts +2 -2
  673. package/lib/routes/picnob/user.ts +153 -108
  674. package/lib/routes/picuki/profile.ts +0 -2
  675. package/lib/routes/pikabu/utils.ts +0 -3
  676. package/lib/routes/pincong/utils.ts +1 -1
  677. package/lib/routes/pinterest/user.ts +9 -0
  678. package/lib/routes/pixabay/search.ts +0 -2
  679. package/lib/routes/pixiv/api/get-ranking.ts +1 -1
  680. package/lib/routes/pixiv/novel-api/content/utils.ts +1 -0
  681. package/lib/routes/pnas/index.ts +2 -4
  682. package/lib/routes/podwise/episodes.ts +1 -1
  683. package/lib/routes/pornhub/utils.ts +0 -3
  684. package/lib/routes/producthunt/templates/description.art +19 -0
  685. package/lib/routes/producthunt/today.ts +49 -24
  686. package/lib/routes/ps/monthly-games.ts +0 -2
  687. package/lib/routes/psnine/game.ts +42 -0
  688. package/lib/routes/psnine/index.ts +58 -0
  689. package/lib/routes/psnine/namespace.ts +8 -0
  690. package/lib/routes/psnine/node.ts +80 -0
  691. package/lib/routes/psnine/shuzhe.ts +43 -0
  692. package/lib/routes/psnine/trade.ts +58 -0
  693. package/lib/routes/psyche/utils.ts +0 -3
  694. package/lib/routes/pts/curations.ts +0 -2
  695. package/lib/routes/pts/index.ts +0 -2
  696. package/lib/routes/pts/live.ts +0 -2
  697. package/lib/routes/pts/projects.ts +0 -2
  698. package/lib/routes/pubmed/trending.ts +0 -2
  699. package/lib/routes/qidian/author.ts +0 -2
  700. package/lib/routes/qoo-app/apps/comment.ts +0 -2
  701. package/lib/routes/qoo-app/notes/note.ts +0 -2
  702. package/lib/routes/qoo-app/user/app-comment.ts +0 -2
  703. package/lib/routes/qq/ac/utils.ts +0 -3
  704. package/lib/routes/qq/fact/index.ts +0 -2
  705. package/lib/routes/questmobile/report.ts +1 -3
  706. package/lib/routes/qweather/3days.ts +0 -2
  707. package/lib/routes/qweather/now.ts +0 -2
  708. package/lib/routes/radio/album.ts +0 -2
  709. package/lib/routes/radio/index.ts +0 -2
  710. package/lib/routes/radio/zhibo.ts +0 -2
  711. package/lib/routes/raspberrypi/magazine.ts +171 -0
  712. package/lib/routes/raspberrypi/namespace.ts +9 -0
  713. package/lib/routes/raspberrypi/templates/description.art +21 -0
  714. package/lib/routes/rawkuma/manga.ts +0 -2
  715. package/lib/routes/readhub/daily.ts +2 -2
  716. package/lib/routes/readhub/index.ts +0 -2
  717. package/lib/routes/readhub/util.ts +0 -3
  718. package/lib/routes/reuters/common.ts +17 -4
  719. package/lib/routes/routledge/book-series.ts +0 -2
  720. package/lib/routes/rsc/journal.ts +0 -2
  721. package/lib/routes/ruankao/news.ts +1 -1
  722. package/lib/routes/saraba1st/digest.ts +0 -2
  723. package/lib/routes/science/blogs.ts +2 -2
  724. package/lib/routes/science/cover.ts +0 -2
  725. package/lib/routes/science/utils.ts +0 -3
  726. package/lib/routes/sciencedirect/call-for-paper.ts +0 -2
  727. package/lib/routes/sciencedirect/current-issue.ts +93 -0
  728. package/lib/routes/scientificamerican/podcast.ts +0 -3
  729. package/lib/routes/sctv/programme.ts +0 -2
  730. package/lib/routes/seekingalpha/index.ts +1 -3
  731. package/lib/routes/sehuatang/index.ts +2 -2
  732. package/lib/routes/sensortower/blog.ts +0 -2
  733. package/lib/routes/shcstheatre/programs.ts +0 -2
  734. package/lib/routes/shiep/index.ts +0 -2
  735. package/lib/routes/shmtu/portal.ts +0 -2
  736. package/lib/routes/shoac/recent-show.ts +0 -2
  737. package/lib/routes/shopify/apps/[handle].reviews.ts +1 -1
  738. package/lib/routes/shopify/apps/search.ts +6 -3
  739. package/lib/routes/shoppingdesign/posts.ts +26 -25
  740. package/lib/routes/shuiguopai/index.ts +0 -2
  741. package/lib/routes/simpleinfo/index.ts +0 -2
  742. package/lib/routes/sina/utils.ts +0 -3
  743. package/lib/routes/sinchew/index.ts +0 -2
  744. package/lib/routes/sjtu/tongqu/activity.ts +0 -2
  745. package/lib/routes/skeb/utils.ts +0 -3
  746. package/lib/routes/sketis/isabelle-dev/blog/index.ts +1 -1
  747. package/lib/routes/snowpeak/us-new-arrivals.ts +0 -2
  748. package/lib/routes/sogou/search.ts +0 -2
  749. package/lib/routes/sohu/mp.ts +3 -4
  750. package/lib/routes/southcn/nfapp/column.ts +0 -2
  751. package/lib/routes/southcn/nfapp/reporter.ts +0 -2
  752. package/lib/routes/spankbang/new-videos.ts +1 -3
  753. package/lib/routes/spotify/playlist.ts +3 -0
  754. package/lib/routes/spotify/show.ts +1 -1
  755. package/lib/routes/springer/journal.ts +0 -2
  756. package/lib/routes/sse/inquire.ts +0 -2
  757. package/lib/routes/sse/renewal.ts +2 -4
  758. package/lib/routes/ssm/news.ts +0 -2
  759. package/lib/routes/stcn/index.ts +241 -136
  760. package/lib/routes/stcn/kx.ts +144 -0
  761. package/lib/routes/stcn/rank.ts +249 -0
  762. package/lib/routes/stdaily/digitalpaper.ts +0 -2
  763. package/lib/routes/steam/appcommunityfeed.ts +0 -2
  764. package/lib/routes/steam/curator.ts +0 -3
  765. package/lib/routes/steam/search.ts +1 -2
  766. package/lib/routes/steam/workshop-search.ts +0 -2
  767. package/lib/routes/storyfm/episodes.ts +0 -2
  768. package/lib/routes/straitstimes/index.ts +0 -2
  769. package/lib/routes/surfshark/blog.ts +0 -2
  770. package/lib/routes/swjtu/namespace.ts +1 -1
  771. package/lib/routes/swjtu/scai.ts +117 -0
  772. package/lib/routes/swjtu/{scai/bks.ts → sports.ts} +16 -15
  773. package/lib/routes/swjtu/utils.ts +0 -3
  774. package/lib/routes/syosetu/ranking-isekai.ts +1 -4
  775. package/lib/routes/syosetu/ranking-r18.ts +1 -4
  776. package/lib/routes/syosetu/ranking.ts +1 -4
  777. package/lib/routes/syosetu/search.ts +1 -4
  778. package/lib/routes/sysu/ygafz.ts +1 -1
  779. package/lib/routes/szse/disclosure/listed-notice.ts +111 -0
  780. package/lib/routes/szse/inquire.ts +0 -2
  781. package/lib/routes/szse/projectdynamic.ts +0 -2
  782. package/lib/routes/szse/templates/inquire.art +1 -1
  783. package/lib/routes/taobao/zhongchou.ts +0 -2
  784. package/lib/routes/taptap/utils.ts +0 -3
  785. package/lib/routes/techcrunch/news.ts +0 -2
  786. package/lib/routes/telegram/channel.ts +2 -5
  787. package/lib/routes/telegram/stickerpack.ts +19 -10
  788. package/lib/routes/telegram/tglib/channel.ts +2 -2
  789. package/lib/routes/telegram/tglib/client.ts +20 -20
  790. package/lib/routes/tencent/news/author.ts +40 -39
  791. package/lib/routes/tencent/news/coronavirus/data.ts +0 -2
  792. package/lib/routes/tencent/news/coronavirus/total.ts +0 -2
  793. package/lib/routes/tesla/cx.ts +1 -3
  794. package/lib/routes/test/index.ts +1 -1
  795. package/lib/routes/tfc-taiwan/utils.ts +24 -32
  796. package/lib/routes/the/index.ts +0 -2
  797. package/lib/routes/theatlantic/utils.ts +0 -3
  798. package/lib/routes/theblock/index.ts +142 -0
  799. package/lib/routes/theblock/namespace.ts +7 -0
  800. package/lib/routes/theblockbeats/index.ts +0 -3
  801. package/lib/routes/theinitium/app.ts +81 -53
  802. package/lib/routes/themoviedb/utils.ts +0 -3
  803. package/lib/routes/thenewslens/index.ts +0 -2
  804. package/lib/routes/thepaper/factpaper.ts +0 -2
  805. package/lib/routes/thepaper/utils.ts +0 -3
  806. package/lib/routes/theverge/index.ts +70 -62
  807. package/lib/routes/theverge/templates/header.art +19 -0
  808. package/lib/routes/thoughtco/index.ts +0 -2
  809. package/lib/routes/threads/index.ts +73 -54
  810. package/lib/routes/threads/utils.ts +60 -78
  811. package/lib/routes/tiktok/user.ts +1 -3
  812. package/lib/routes/tingshuitz/shenzhen.ts +0 -2
  813. package/lib/routes/tingtingfm/program.ts +0 -2
  814. package/lib/routes/tmtpost/column.ts +298 -0
  815. package/lib/routes/tmtpost/new.ts +4 -199
  816. package/lib/routes/tmtpost/util.ts +204 -0
  817. package/lib/routes/tophub/list.ts +0 -2
  818. package/lib/routes/toranoana/namespace.ts +7 -0
  819. package/lib/routes/toranoana/news.ts +110 -0
  820. package/lib/routes/toutiao/a-bogus.ts +15 -15
  821. package/lib/routes/toutiao/user.ts +1 -4
  822. package/lib/routes/tradingview/blog.ts +42 -44
  823. package/lib/routes/transcriptforest/index.ts +0 -2
  824. package/lib/routes/transformer-circuits/index.ts +119 -0
  825. package/lib/routes/transformer-circuits/namespace.ts +7 -0
  826. package/lib/routes/transformer-circuits/templates/article.art +62 -0
  827. package/lib/routes/trending/all-trending.ts +2 -4
  828. package/lib/routes/tribalfootball/latest.ts +0 -2
  829. package/lib/routes/tvb/news.ts +0 -2
  830. package/lib/routes/tvtropes/featured.ts +0 -2
  831. package/lib/routes/twitter/api/developer-api/user.ts +2 -2
  832. package/lib/routes/twitter/namespace.ts +1 -1
  833. package/lib/routes/twitter/user.ts +3 -4
  834. package/lib/routes/twitter/utils.ts +13 -13
  835. package/lib/routes/twreporter/fetch-article.ts +0 -3
  836. package/lib/routes/txks/news.ts +1 -1
  837. package/lib/routes/txrjy/fornumtopic.ts +0 -2
  838. package/lib/routes/uchicago/current.ts +3 -3
  839. package/lib/routes/udn/breaking-news.ts +0 -2
  840. package/lib/routes/unipd/ilbolive/news.ts +104 -0
  841. package/lib/routes/unipd/namespace.ts +7 -0
  842. package/lib/routes/uptimerobot/rss.ts +0 -2
  843. package/lib/routes/uraaka-joshi/uraaka-joshi-user.ts +2 -2
  844. package/lib/routes/uraaka-joshi/uraaka-joshi.ts +42 -46
  845. package/lib/routes/urbandictionary/random.ts +0 -2
  846. package/lib/routes/utgd/utils.ts +1 -4
  847. package/lib/routes/vcb-s/category.ts +0 -2
  848. package/lib/routes/vcb-s/index.ts +0 -2
  849. package/lib/routes/vice/topic.ts +1 -3
  850. package/lib/routes/vimeo/category.ts +0 -2
  851. package/lib/routes/vimeo/channel.ts +0 -2
  852. package/lib/routes/vimeo/usr-videos.ts +0 -2
  853. package/lib/routes/visionias/utils.ts +0 -3
  854. package/lib/routes/wainao/templates/description.art +9 -0
  855. package/lib/routes/wainao/topics.ts +211 -0
  856. package/lib/routes/wallpaperhub/index.ts +0 -2
  857. package/lib/routes/wallstreetcn/live.ts +0 -2
  858. package/lib/routes/warthunder/news.ts +0 -2
  859. package/lib/routes/washingtonpost/app.ts +3 -5
  860. package/lib/routes/wechat/sogou.ts +171 -50
  861. package/lib/routes/weibo/friends.ts +1 -1
  862. package/lib/routes/weibo/group.ts +1 -1
  863. package/lib/routes/weibo/namespace.ts +1 -0
  864. package/lib/routes/weibo/search/hot.ts +0 -2
  865. package/lib/routes/weibo/timeline.ts +3 -1
  866. package/lib/routes/weibo/user-bookmarks.ts +1 -1
  867. package/lib/routes/weibo/user.ts +11 -3
  868. package/lib/routes/weibo/utils.ts +11 -3
  869. package/lib/routes/wellcee/rent.ts +1 -3
  870. package/lib/routes/whu/news.ts +0 -2
  871. package/lib/routes/whu/swrh.ts +1 -1
  872. package/lib/routes/whu/util.ts +0 -3
  873. package/lib/routes/winstall/update.ts +0 -2
  874. package/lib/routes/wise/pair.ts +1 -3
  875. package/lib/routes/wmc-bj/publish.ts +0 -2
  876. package/lib/routes/wnacg/common.ts +0 -3
  877. package/lib/routes/wordpress/util.ts +1 -1
  878. package/lib/routes/wsj/news.ts +3 -2
  879. package/lib/routes/wsj/utils.ts +1 -12
  880. package/lib/routes/x-mol/news.ts +0 -2
  881. package/lib/routes/x-mol/paper.ts +17 -22
  882. package/lib/routes/xiaoheihe/util.ts +1 -1
  883. package/lib/routes/xiaohongshu/util.ts +2 -2
  884. package/lib/routes/xiaomiyoupin/crowdfunding.ts +0 -2
  885. package/lib/routes/xiaomiyoupin/utils.ts +0 -3
  886. package/lib/routes/xiaoyuzhou/pickup.ts +1 -1
  887. package/lib/routes/xiaoyuzhou/podcast.ts +27 -27
  888. package/lib/routes/xinpianchang/util.ts +0 -3
  889. package/lib/routes/xjtu/job.ts +0 -2
  890. package/lib/routes/xjtu/std.ts +0 -2
  891. package/lib/routes/xjtu/yz.ts +74 -0
  892. package/lib/routes/xjtu/zs.ts +170 -0
  893. package/lib/routes/xkb/index.ts +0 -2
  894. package/lib/routes/xsijishe/rank.ts +49 -17
  895. package/lib/routes/xsijishe/utils.ts +25 -0
  896. package/lib/routes/xueqiu/stock-comments.ts +0 -2
  897. package/lib/routes/xys/new.ts +0 -2
  898. package/lib/routes/xyzrank/index.ts +0 -2
  899. package/lib/routes/yahoo/news/utils.ts +0 -3
  900. package/lib/routes/yamibo/bbs/forum.ts +5 -4
  901. package/lib/routes/yamibo/utils.ts +0 -9
  902. package/lib/routes/ycwb/index.ts +0 -2
  903. package/lib/routes/yenpress/series.ts +1 -4
  904. package/lib/routes/yicai/dt.ts +0 -2
  905. package/lib/routes/yicai/utils.ts +0 -3
  906. package/lib/routes/ymgal/game.ts +0 -2
  907. package/lib/routes/yoasobi-music/info.ts +0 -2
  908. package/lib/routes/yoasobi-music/live.ts +0 -2
  909. package/lib/routes/yoasobi-music/media.ts +0 -2
  910. package/lib/routes/youku/channel.ts +0 -2
  911. package/lib/routes/youmemark/index.ts +88 -0
  912. package/lib/routes/youmemark/namespace.ts +7 -0
  913. package/lib/routes/youtube/channel.ts +40 -16
  914. package/lib/routes/youtube/community.ts +2 -4
  915. package/lib/routes/youtube/subscriptions.ts +3 -11
  916. package/lib/routes/youtube/user.ts +38 -9
  917. package/lib/routes/youtube/utils.ts +17 -3
  918. package/lib/routes/yxdzqb/index.ts +0 -2
  919. package/lib/routes/yystv/category.ts +49 -51
  920. package/lib/routes/yystv/docs.ts +7 -9
  921. package/lib/routes/yystv/fetcher.ts +10 -0
  922. package/lib/routes/zagg/new-arrivals.ts +0 -2
  923. package/lib/routes/zaker/channel.ts +2 -5
  924. package/lib/routes/zaker/focus.ts +2 -5
  925. package/lib/routes/zaobao/util.ts +12 -6
  926. package/lib/routes/zcool/discover.ts +0 -2
  927. package/lib/routes/zcool/utils.ts +0 -3
  928. package/lib/routes/zhihu/answers.ts +26 -54
  929. package/lib/routes/zhihu/timeline.ts +1 -2
  930. package/lib/routes/zhihu/utils.ts +5 -5
  931. package/lib/routes/zhihu/zhuanlan.ts +1 -2
  932. package/lib/routes/zhitongcaijing/index.ts +0 -2
  933. package/lib/routes/zhiy/post.ts +0 -2
  934. package/lib/routes/zhonglun/index.ts +0 -2
  935. package/lib/routes/zhubai/top20.ts +0 -2
  936. package/lib/routes/zodgame/forum.ts +0 -2
  937. package/lib/routes/zsxq/utils.ts +1 -1
  938. package/lib/routes/zuvio/utils.ts +0 -3
  939. package/lib/routes/zyshow/index.ts +0 -2
  940. package/lib/utils/otel/metric.ts +3 -3
  941. package/lib/utils/otel/trace.ts +16 -16
  942. package/lib/utils/parse-date.ts +4 -4
  943. package/lib/utils/puppeteer-utils.test.ts +2 -2
  944. package/lib/utils/puppeteer.test.ts +2 -2
  945. package/lib/utils/puppeteer.ts +2 -2
  946. package/lib/utils/timezone.ts +1 -1
  947. package/package.json +72 -70
  948. package/lib/routes/apnews/api.ts +0 -77
  949. package/lib/routes/coomer/artist.ts +0 -33
  950. package/lib/routes/coomer/posts.ts +0 -32
  951. package/lib/routes/coomer/utils.ts +0 -57
  952. package/lib/routes/gcores/category.ts +0 -171
  953. package/lib/routes/gcores/collection.ts +0 -161
  954. package/lib/routes/gcores/tag.ts +0 -158
  955. package/lib/routes/papers/index.ts +0 -136
  956. package/lib/routes/producthunt/templates/descImg.art +0 -5
  957. package/lib/routes-deprecated/chuapp/index.js +0 -54
  958. package/lib/routes-deprecated/jpmorganchase/research.js +0 -52
  959. package/lib/routes-deprecated/ltaaa/index.js +0 -69
  960. package/lib/routes-deprecated/psnine/game.js +0 -32
  961. package/lib/routes-deprecated/psnine/index.js +0 -33
  962. package/lib/routes-deprecated/psnine/news.js +0 -53
  963. package/lib/routes-deprecated/psnine/node.js +0 -54
  964. package/lib/routes-deprecated/psnine/shuzhe.js +0 -33
  965. package/lib/routes-deprecated/psnine/trade.js +0 -39
  966. /package/lib/routes/{landiannews → 10000link}/templates/description.art +0 -0
package/lib/api/index.ts CHANGED
@@ -6,7 +6,7 @@ import { route as radarRulesOneRoute, handler as radarRulesOneHandler } from '@/
6
6
  import { route as categoryOneRoute, handler as categoryOneHandler } from '@/api/category/one';
7
7
  import { route as followConfigRoute, handler as followConfigHandler } from '@/api/follow/config';
8
8
  import { OpenAPIHono } from '@hono/zod-openapi';
9
- import { apiReference } from '@scalar/hono-api-reference';
9
+ import { Scalar } from '@scalar/hono-api-reference';
10
10
 
11
11
  const app = new OpenAPIHono();
12
12
 
@@ -29,11 +29,6 @@ for (const path in docs.paths) {
29
29
  delete docs.paths[path];
30
30
  }
31
31
  app.get('/openapi.json', (ctx) => ctx.json(docs));
32
- app.get(
33
- '/reference',
34
- apiReference({
35
- spec: { content: docs },
36
- })
37
- );
32
+ app.get('/reference', Scalar({ content: docs }));
38
33
 
39
34
  export default app;
package/lib/config.ts CHANGED
@@ -164,6 +164,10 @@ export type Config = {
164
164
  game4399: {
165
165
  cookie?: string;
166
166
  };
167
+ gelbooru: {
168
+ apiKey?: string;
169
+ userId?: string;
170
+ };
167
171
  github: {
168
172
  access_token?: string;
169
173
  };
@@ -597,6 +601,10 @@ const calculateValue = () => {
597
601
  game4399: {
598
602
  cookie: envs.GAME_4399,
599
603
  },
604
+ gelbooru: {
605
+ apiKey: envs.GELBOORU_API_KEY,
606
+ userId: envs.GELBOORU_USER_ID,
607
+ },
600
608
  github: {
601
609
  access_token: envs.GITHUB_ACCESS_TOKEN,
602
610
  },
@@ -610,7 +618,6 @@ const calculateValue = () => {
610
618
  cookies: envs.GUOZAOKE_COOKIES,
611
619
  },
612
620
  hefeng: {
613
- // weather
614
621
  key: envs.HEFENG_KEY,
615
622
  },
616
623
  infzm: {
package/lib/registry.ts CHANGED
@@ -27,8 +27,10 @@ let namespaces: Record<
27
27
  > = {};
28
28
 
29
29
  switch (process.env.NODE_ENV) {
30
- case 'test':
31
30
  case 'production':
31
+ namespaces = (await import('../assets/build/routes.js')).default;
32
+ break;
33
+ case 'test':
32
34
  // @ts-expect-error
33
35
  namespaces = await import('../assets/build/routes.json');
34
36
  break;
@@ -84,16 +86,58 @@ if (Object.keys(modules).length) {
84
86
  export { namespaces };
85
87
 
86
88
  const app = new Hono();
89
+ const sortRoutes = (
90
+ routes: Record<
91
+ string,
92
+ Route & {
93
+ location: string;
94
+ module?: () => Promise<{ route: Route }>;
95
+ }
96
+ >
97
+ ) =>
98
+ Object.entries(routes).sort(([pathA], [pathB]) => {
99
+ const segmentsA = pathA.split('/');
100
+ const segmentsB = pathB.split('/');
101
+ const lenA = segmentsA.length;
102
+ const lenB = segmentsB.length;
103
+ const minLen = Math.min(lenA, lenB);
104
+
105
+ for (let i = 0; i < minLen; i++) {
106
+ const segmentA = segmentsA[i];
107
+ const segmentB = segmentsB[i];
108
+
109
+ // Literal segments have priority over parameter segments
110
+ if (segmentA.startsWith(':') !== segmentB.startsWith(':')) {
111
+ return segmentA.startsWith(':') ? 1 : -1;
112
+ }
113
+ }
114
+
115
+ return 0;
116
+ });
117
+
87
118
  for (const namespace in namespaces) {
88
119
  const subApp = app.basePath(`/${namespace}`);
89
- for (const path in namespaces[namespace].routes) {
120
+
121
+ const namespaceData = namespaces[namespace];
122
+ if (!namespaceData || !namespaceData.routes) {
123
+ continue;
124
+ }
125
+
126
+ const sortedRoutes = sortRoutes(namespaceData.routes);
127
+
128
+ for (const [path, routeData] of sortedRoutes) {
90
129
  const wrappedHandler: Handler = async (ctx) => {
91
130
  if (!ctx.get('data')) {
92
- if (typeof namespaces[namespace].routes[path].handler !== 'function') {
93
- const { route } = await import(`./routes/${namespace}/${namespaces[namespace].routes[path].location}`);
94
- namespaces[namespace].routes[path].handler = route.handler;
131
+ if (typeof routeData.handler !== 'function') {
132
+ if (process.env.NODE_ENV === 'test') {
133
+ const { route } = await import(`./routes/${namespace}/${routeData.location}`);
134
+ routeData.handler = route.handler;
135
+ } else if (routeData.module) {
136
+ const { route } = await routeData.module();
137
+ routeData.handler = route.handler;
138
+ }
95
139
  }
96
- ctx.set('data', await namespaces[namespace].routes[path].handler(ctx));
140
+ ctx.set('data', await routeData.handler(ctx));
97
141
  }
98
142
  };
99
143
  subApp.get(path, wrappedHandler);
package/lib/router.js CHANGED
@@ -564,18 +564,6 @@ router.get('/zjgsu/xszq', lazyloadRouteHandler('./routes/universities/zjgsu/xszq
564
564
  router.get('/banyuetan/byt/:time?', lazyloadRouteHandler('./routes/banyuetan/byt'));
565
565
  router.get('/banyuetan/:name', lazyloadRouteHandler('./routes/banyuetan'));
566
566
 
567
- // gamersky
568
- router.get('/gamersky/news', lazyloadRouteHandler('./routes/gamersky/news'));
569
- router.get('/gamersky/ent/:category', lazyloadRouteHandler('./routes/gamersky/ent'));
570
-
571
- // psnine
572
- router.get('/psnine/index', lazyloadRouteHandler('./routes/psnine/index'));
573
- router.get('/psnine/shuzhe', lazyloadRouteHandler('./routes/psnine/shuzhe'));
574
- router.get('/psnine/trade', lazyloadRouteHandler('./routes/psnine/trade'));
575
- router.get('/psnine/game', lazyloadRouteHandler('./routes/psnine/game'));
576
- router.get('/psnine/news/:order?', lazyloadRouteHandler('./routes/psnine/news'));
577
- router.get('/psnine/node/:id?/:order?', lazyloadRouteHandler('./routes/psnine/node'));
578
-
579
567
  // 浙江大学城市学院
580
568
  router.get('/zucc/news/latest', lazyloadRouteHandler('./routes/universities/zucc/news'));
581
569
  router.get('/zucc/cssearch/latest/:webVpn/:key', lazyloadRouteHandler('./routes/universities/zucc/cssearch'));
@@ -1,6 +1,4 @@
1
1
  import { Route } from '@/types';
2
- import { getCurrentPath } from '@/utils/helpers';
3
- const __dirname = getCurrentPath(import.meta.url);
4
2
 
5
3
  import cache from '@/utils/cache';
6
4
  import got from '@/utils/got';
@@ -0,0 +1,250 @@
1
+ import { type Data, type DataItem, type Route, ViewType } from '@/types';
2
+
3
+ import { art } from '@/utils/render';
4
+ import cache from '@/utils/cache';
5
+ import ofetch from '@/utils/ofetch';
6
+ import { parseDate, parseRelativeDate } from '@/utils/parse-date';
7
+
8
+ import { type CheerioAPI, type Cheerio, type Element, load } from 'cheerio';
9
+ import { type Context } from 'hono';
10
+ import path from 'node:path';
11
+
12
+ export const handler = async (ctx: Context): Promise<Data> => {
13
+ const { category = 'newslists', id } = ctx.req.param();
14
+ const limit: number = Number.parseInt(ctx.req.query('limit') ?? '30', 10);
15
+
16
+ const baseUrl: string = 'https://info.10000link.com';
17
+ const targetUrl: string = new URL(`${category}.aspx${id ? `?chid=${id}` : ''}`, baseUrl).href;
18
+
19
+ const response = await ofetch(targetUrl);
20
+ const $: CheerioAPI = load(response);
21
+ const language = $('html').attr('lang') ?? 'zh';
22
+
23
+ let items: DataItem[] = [];
24
+
25
+ items = $('ul.l_newshot li dl.lhotnew2')
26
+ .slice(0, limit)
27
+ .toArray()
28
+ .map((el): Element => {
29
+ const $el: Cheerio<Element> = $(el);
30
+ const $aEl: Cheerio<Element> = $el.find('dd h1 a');
31
+
32
+ const title: string = $aEl.attr('title') ?? $aEl.text();
33
+ const description: string | undefined = art(path.join(__dirname, 'templates/description.art'), {
34
+ intro: $el.find('dd.title_l').text(),
35
+ });
36
+ const pubDateStr: string | undefined = $el.find('span.ymd_w').text();
37
+ const linkUrl: string | undefined = $aEl.attr('href');
38
+ const categoryEls: Element[] = $el.find('dd.day-lx span a').toArray();
39
+ const categories: string[] = [...new Set(categoryEls.map((el) => $(el).text()).filter(Boolean))];
40
+ const authors: DataItem['author'] = $el.find('dd.day-lx span').first().text();
41
+ const image: string | undefined = $el.find('dt.img220 a img').attr('src');
42
+ const upDatedStr: string | undefined = pubDateStr;
43
+
44
+ const processedItem: DataItem = {
45
+ title,
46
+ description,
47
+ pubDate: pubDateStr ? parseRelativeDate(pubDateStr) : undefined,
48
+ link: linkUrl ? new URL(linkUrl, baseUrl).href : undefined,
49
+ category: categories,
50
+ author: authors,
51
+ content: {
52
+ html: description,
53
+ text: description,
54
+ },
55
+ image,
56
+ banner: image,
57
+ updated: upDatedStr ? parseRelativeDate(upDatedStr) : undefined,
58
+ language,
59
+ };
60
+
61
+ return processedItem;
62
+ });
63
+
64
+ items = (
65
+ await Promise.all(
66
+ items.map((item) => {
67
+ if (!item.link) {
68
+ return item;
69
+ }
70
+
71
+ return cache.tryGet(item.link, async (): Promise<DataItem> => {
72
+ const detailResponse = await ofetch(item.link);
73
+ const $$: CheerioAPI = load(detailResponse);
74
+
75
+ const title: string = $$('div.entity_title h1 a').text();
76
+ const image: string | undefined = $$('div.entity_thumb img.img-responsive').attr('src');
77
+
78
+ const description: string | undefined = art(path.join(__dirname, 'templates/description.art'), {
79
+ images: image
80
+ ? [
81
+ {
82
+ src: image,
83
+ alt: title,
84
+ },
85
+ ]
86
+ : undefined,
87
+ description: $$('div.entity_content').html(),
88
+ });
89
+ const pubDateStr: string | undefined = detailResponse.match(/var\stime\s=\s"(.*?)";/)?.[1];
90
+ const categoryEls: Element[] = $$('div.entity_tag span a').toArray();
91
+ const categories: string[] = [...new Set([...categoryEls.map((el) => $$(el).text()), ...(item.category ?? [])].filter(Boolean))];
92
+ const upDatedStr: string | undefined = pubDateStr;
93
+
94
+ const processedItem: DataItem = {
95
+ title,
96
+ description,
97
+ pubDate: pubDateStr ? parseDate(pubDateStr) : item.pubDate,
98
+ category: categories,
99
+ content: {
100
+ html: description,
101
+ text: description,
102
+ },
103
+ image,
104
+ banner: image,
105
+ updated: upDatedStr ? parseDate(upDatedStr) : item.updated,
106
+ language,
107
+ };
108
+
109
+ return {
110
+ ...item,
111
+ ...processedItem,
112
+ };
113
+ });
114
+ })
115
+ )
116
+ ).filter((_): _ is DataItem => true);
117
+
118
+ const author: string = '10000万联网';
119
+ const title: string = $('h1').contents().first().text();
120
+
121
+ return {
122
+ title: `${author} - ${title}`,
123
+ description: title,
124
+ link: targetUrl,
125
+ item: items,
126
+ allowEmpty: true,
127
+ image: $('a.navbar-brand img').attr('src') ? new URL($('a.navbar-brand img').attr('src') as string, baseUrl).href : undefined,
128
+ author,
129
+ language,
130
+ id: $('meta[property="og:url"]').attr('content'),
131
+ };
132
+ };
133
+
134
+ export const route: Route = {
135
+ path: '/info/:category?/:id?',
136
+ name: '新闻',
137
+ url: 'info.10000link.com',
138
+ maintainers: ['nczitzk'],
139
+ handler,
140
+ example: '/10000link/info/newslists/My01',
141
+ parameters: {
142
+ category: {
143
+ description: '分类,默认为 `newslists`,可在对应分类页 URL 中找到',
144
+ options: [
145
+ {
146
+ label: '新闻',
147
+ value: 'newslists',
148
+ },
149
+ {
150
+ label: '物流',
151
+ value: 'newslogistics',
152
+ },
153
+ {
154
+ label: '供应链金融风控',
155
+ value: 'newsRisk',
156
+ },
157
+ {
158
+ label: '区块链',
159
+ value: 'newsBlockChain',
160
+ },
161
+ {
162
+ label: 'B2B',
163
+ value: 'newsBTwoB',
164
+ },
165
+ {
166
+ label: '跨境电商',
167
+ value: 'newsCrossborder',
168
+ },
169
+ {
170
+ label: '投融资',
171
+ value: 'newsInvestment',
172
+ },
173
+ {
174
+ label: '供应链管理',
175
+ value: 'newsManagement',
176
+ },
177
+ {
178
+ label: '供应链创新',
179
+ value: 'newsInnovation',
180
+ },
181
+ {
182
+ label: '数据',
183
+ value: 'newslists/A02',
184
+ },
185
+ {
186
+ label: '政策',
187
+ value: 'newslists/A03',
188
+ },
189
+ {
190
+ label: '规划',
191
+ value: 'newslists/A04',
192
+ },
193
+ {
194
+ label: '案例',
195
+ value: 'newslists/GL03',
196
+ },
197
+ {
198
+ label: '职场',
199
+ value: 'newslists/ZC',
200
+ },
201
+ {
202
+ label: '供应链票据',
203
+ value: 'newsBill',
204
+ },
205
+ ],
206
+ },
207
+ id: {
208
+ description: 'ID,默认为空,可在对应分类页 URL 中找到',
209
+ },
210
+ },
211
+ description: `:::tip
212
+ 若订阅 [天下大势](https://info.10000link.com/newslists.aspx?chid=My01),网址为 \`https://info.10000link.com/newslists.aspx?chid=My01\`,请截取 \`https://info.10000link.com/\` 到末尾 \`.aspx\` 的部分 \`newslists\` 作为 \`category\` 参数填入,而 \`My01\` 作为 \`id\` 参数填入,此时目标路由为 [\`/10000link/info/newslists/My01\`](https://rsshub.app/10000link/info/newslists/My01)。
213
+ :::
214
+
215
+ | 金融科技 | 物流 | 供应链金融风控 | 区块链 | B2B |
216
+ | ------------- | ------------- | -------------- | -------------- | --------- |
217
+ | newsFinancial | newslogistics | newsRisk | newsBlockChain | newsBTwoB |
218
+
219
+ | 跨境电商 | 投融资 | 供应链管理 | 供应链创新 | 数据 |
220
+ | --------------- | -------------- | -------------- | -------------- | ------------- |
221
+ | newsCrossborder | newsInvestment | newsManagement | newsInnovation | newslists/A02 |
222
+
223
+ | 政策 | 规划 | 案例 | 职场 | 供应链票据 |
224
+ | ------------- | ------------- | -------------- | ------------ | ---------- |
225
+ | newslists/A03 | newslists/A04 | newslists/GL03 | newslists/ZC | newsBill |
226
+ `,
227
+ categories: ['new-media'],
228
+ features: {
229
+ requireConfig: false,
230
+ requirePuppeteer: false,
231
+ antiCrawler: false,
232
+ supportRadar: true,
233
+ supportBT: false,
234
+ supportPodcast: false,
235
+ supportScihub: false,
236
+ },
237
+ radar: [
238
+ {
239
+ source: ['info.10000link.com/:category'],
240
+ target: (params, url) => {
241
+ const urlObj: URL = new URL(url);
242
+ const id: string | undefined = urlObj.searchParams.get('chid') ?? undefined;
243
+ const category: string = params.category;
244
+
245
+ return `/10000link/info${category ? `/${category}${id ? `/${id}` : ''}` : ''}`;
246
+ },
247
+ },
248
+ ],
249
+ view: ViewType.Articles,
250
+ };
@@ -0,0 +1,9 @@
1
+ import type { Namespace } from '@/types';
2
+
3
+ export const namespace: Namespace = {
4
+ name: '10000万联网',
5
+ url: '10000link.com',
6
+ categories: ['new-media'],
7
+ description: '',
8
+ lang: 'zh-CN',
9
+ };
@@ -1,6 +1,4 @@
1
1
  import { Route } from '@/types';
2
- import { getCurrentPath } from '@/utils/helpers';
3
- const __dirname = getCurrentPath(import.meta.url);
4
2
 
5
3
  import cache from '@/utils/cache';
6
4
  import got from '@/utils/got';
@@ -2,7 +2,7 @@ import { Route } from '@/types';
2
2
  import cache from '@/utils/cache';
3
3
  import got from '@/utils/got';
4
4
  import { load } from 'cheerio';
5
- import * as url from 'node:url';
5
+ import { parseDate } from '@/utils/parse-date';
6
6
 
7
7
  export const route: Route = {
8
8
  path: '/zxdt/:id?',
@@ -40,41 +40,23 @@ async function handler(ctx) {
40
40
  const name = $('div.nav_center > a:nth-child(4)').text();
41
41
 
42
42
  const list = $('#newList > ul > li')
43
- .map(function () {
44
- const info = {
45
- title: $(this).find('a').text(),
46
- link: $(this).find('a').attr('href'),
47
- date: $(this).find('span').text().slice(1, -1),
48
- };
49
- return info;
50
- })
51
- .get();
43
+ .toArray()
44
+ .map((item) => ({
45
+ title: $(item).find('a').text(),
46
+ link: new URL($(item).find('a').attr('href'), link).href,
47
+ pubDate: parseDate($(item).find('span').text().slice(1, -1)),
48
+ }));
52
49
 
53
50
  const out = await Promise.all(
54
- list.map(async (info) => {
55
- const title = info.title;
56
- const date = info.date;
57
- const itemUrl = url.resolve(link, info.link);
51
+ list.map((info) =>
52
+ cache.tryGet(info.link, async () => {
53
+ const response = await got.get(info.link);
54
+ const $ = load(response.data);
55
+ info.description = $('.article-box').html() || $('.content_text').html() || '文章已被删除';
58
56
 
59
- const cacheIn = await cache.get(itemUrl);
60
- if (cacheIn) {
61
- return JSON.parse(cacheIn);
62
- }
63
-
64
- const response = await got.get(itemUrl);
65
- const $ = load(response.data);
66
- let description = $('.article-box').html();
67
- description = description ? description.replaceAll('src="', `src="${url.resolve(itemUrl, '.')}`).trim() : $('.content_text').html() || '文章已被删除';
68
-
69
- const single = {
70
- title,
71
- link: itemUrl,
72
- description,
73
- pubDate: new Date(date).toUTCString(),
74
- };
75
- cache.set(itemUrl, JSON.stringify(single));
76
- return single;
77
- })
57
+ return info;
58
+ })
59
+ )
78
60
  );
79
61
 
80
62
  return {
@@ -1,6 +1,4 @@
1
1
  import { Route } from '@/types';
2
- import { getCurrentPath } from '@/utils/helpers';
3
- const __dirname = getCurrentPath(import.meta.url);
4
2
 
5
3
  import { getSubPath } from '@/utils/common-utils';
6
4
  import got from '@/utils/got';
@@ -1,6 +1,4 @@
1
1
  import { Route } from '@/types';
2
- import { getCurrentPath } from '@/utils/helpers';
3
- const __dirname = getCurrentPath(import.meta.url);
4
2
 
5
3
  import { getSubPath } from '@/utils/common-utils';
6
4
  import got from '@/utils/got';
@@ -1,6 +1,4 @@
1
1
  import { Route } from '@/types';
2
- import { getCurrentPath } from '@/utils/helpers';
3
- const __dirname = getCurrentPath(import.meta.url);
4
2
 
5
3
  import got from '@/utils/got';
6
4
  import { parseDate } from '@/utils/parse-date';
@@ -1,6 +1,4 @@
1
1
  import { Route } from '@/types';
2
- import { getCurrentPath } from '@/utils/helpers';
3
- const __dirname = getCurrentPath(import.meta.url);
4
2
 
5
3
  import cache from '@/utils/cache';
6
4
  import got from '@/utils/got';
@@ -1,6 +1,4 @@
1
1
  import { Route } from '@/types';
2
- import { getCurrentPath } from '@/utils/helpers';
3
- const __dirname = getCurrentPath(import.meta.url);
4
2
 
5
3
  import got from '@/utils/got';
6
4
  import { art } from '@/utils/render';
@@ -1,6 +1,4 @@
1
1
  import { Route } from '@/types';
2
- import { getCurrentPath } from '@/utils/helpers';
3
- const __dirname = getCurrentPath(import.meta.url);
4
2
 
5
3
  import got from '@/utils/got';
6
4
  import { art } from '@/utils/render';
@@ -1,6 +1,4 @@
1
1
  import { Route } from '@/types';
2
- import { getCurrentPath } from '@/utils/helpers';
3
- const __dirname = getCurrentPath(import.meta.url);
4
2
 
5
3
  import got from '@/utils/got';
6
4
  import { parseDate } from '@/utils/parse-date';
@@ -1,6 +1,4 @@
1
1
  import { Route } from '@/types';
2
- import { getCurrentPath } from '@/utils/helpers';
3
- const __dirname = getCurrentPath(import.meta.url);
4
2
 
5
3
  import got from '@/utils/got';
6
4
  import { config } from '@/config';
@@ -1,6 +1,4 @@
1
1
  import { Route } from '@/types';
2
- import { getCurrentPath } from '@/utils/helpers';
3
- const __dirname = getCurrentPath(import.meta.url);
4
2
 
5
3
  import path from 'node:path';
6
4
  import got from '@/utils/got';
@@ -1,6 +1,4 @@
1
1
  import { Route } from '@/types';
2
- import { getCurrentPath } from '@/utils/helpers';
3
- const __dirname = getCurrentPath(import.meta.url);
4
2
 
5
3
  import got from '@/utils/got';
6
4
  import { art } from '@/utils/render';
@@ -1,6 +1,4 @@
1
1
  import { Route } from '@/types';
2
- import { getCurrentPath } from '@/utils/helpers';
3
- const __dirname = getCurrentPath(import.meta.url);
4
2
 
5
3
  import got from '@/utils/got';
6
4
  import { config } from '@/config';
@@ -135,7 +135,7 @@ async function handler(ctx) {
135
135
  const $ = load(iconv.decode(response.data, 'gbk'));
136
136
 
137
137
  const list = $('div.tabContents')
138
- .eq(timeRange[time].index + (category === 'whole' ? (type === 'click' ? -1 : 2) : type === 'click' ? 0 : 2))
138
+ .eq(timeRange[time].index + (category === 'whole' ? (type === 'click' ? -1 : 2) : (type === 'click' ? 0 : 2)))
139
139
  .find('table tbody tr td a')
140
140
  .toArray()
141
141
  .map((item) => {
@@ -1,6 +1,4 @@
1
1
  import { Route } from '@/types';
2
- import { getCurrentPath } from '@/utils/helpers';
3
- const __dirname = getCurrentPath(import.meta.url);
4
2
 
5
3
  import cache from '@/utils/cache';
6
4
  import got from '@/utils/got';
@@ -1,6 +1,3 @@
1
- import { getCurrentPath } from '@/utils/helpers';
2
- const __dirname = getCurrentPath(import.meta.url);
3
-
4
1
  import got from '@/utils/got';
5
2
  import { load } from 'cheerio';
6
3
  import { art } from '@/utils/render';
@@ -24,9 +21,9 @@ const parseDyArticle = (item, tryGet) =>
24
21
  }
25
22
  });
26
23
 
27
- const imgUrl = new URL(item.imgsrc);
24
+ const imgsrc = item.imgsrc ? new URL(item.imgsrc).searchParams.get('url') : false;
28
25
  item.description = art(path.join(__dirname, 'templates/dy.art'), {
29
- imgsrc: imgUrl.searchParams.get('url'),
26
+ imgsrc,
30
27
  postBody: $('.post_body').html(),
31
28
  });
32
29
 
@@ -1,6 +1,3 @@
1
- import { getCurrentPath } from '@/utils/helpers';
2
- const __dirname = getCurrentPath(import.meta.url);
3
-
4
1
  import cache from '@/utils/cache';
5
2
  import got from '@/utils/got';
6
3
  import { load } from 'cheerio';