rsshub 1.0.0-master.eb9cabb → 1.0.0-master.ebb62b5

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 (608) hide show
  1. package/lib/config.ts +39 -1
  2. package/lib/errors/index.tsx +2 -1
  3. package/lib/index.ts +48 -15
  4. package/lib/middleware/debug.ts +6 -4
  5. package/lib/middleware/header.test.ts +1 -0
  6. package/lib/middleware/header.ts +6 -0
  7. package/lib/middleware/template.test.ts +8 -0
  8. package/lib/middleware/template.tsx +5 -0
  9. package/lib/registry.ts +71 -1
  10. package/lib/router.js +0 -6
  11. package/lib/routes/18comic/album.ts +59 -64
  12. package/lib/routes/18comic/search.ts +53 -4
  13. package/lib/routes/18comic/utils.ts +70 -1
  14. package/lib/routes/36kr/hot-list.ts +1 -1
  15. package/lib/routes/36kr/index.ts +1 -1
  16. package/lib/routes/3dmgame/news-center.ts +1 -1
  17. package/lib/routes/500px/tribe-set.ts +1 -1
  18. package/lib/routes/acfun/article.ts +1 -1
  19. package/lib/routes/acfun/bangumi.ts +1 -1
  20. package/lib/routes/acfun/video.ts +1 -1
  21. package/lib/routes/aeon/category.ts +1 -1
  22. package/lib/routes/aeon/type.ts +1 -1
  23. package/lib/routes/agirls/topic-list.ts +1 -1
  24. package/lib/routes/agirls/topic.ts +1 -1
  25. package/lib/routes/agirls/z-index.ts +1 -1
  26. package/lib/routes/aibase/daily.ts +110 -0
  27. package/lib/routes/aibase/discover.ts +1 -1
  28. package/lib/routes/aibase/news.ts +1 -1
  29. package/lib/routes/aibase/topic.ts +1 -1
  30. package/lib/routes/aibase/util.ts +3 -0
  31. package/lib/routes/ainvest/news.ts +1 -1
  32. package/lib/routes/ajmide/index.ts +1 -1
  33. package/lib/routes/aliresearch/information.ts +1 -1
  34. package/lib/routes/android/security-bulletin.ts +61 -0
  35. package/lib/routes/anthropic/research.ts +112 -0
  36. package/lib/routes/apnews/topics.ts +2 -1
  37. package/lib/routes/apnews/utils.ts +1 -1
  38. package/lib/routes/app-sales/index.ts +200 -0
  39. package/lib/routes/app-sales/mostwanted.ts +194 -0
  40. package/lib/routes/app-sales/namespace.ts +9 -0
  41. package/lib/routes/app-sales/templates/description.art +120 -0
  42. package/lib/routes/app-sales/util.ts +161 -0
  43. package/lib/routes/apple/apps.ts +1 -1
  44. package/lib/routes/apple/security-releases.ts +179 -0
  45. package/lib/routes/apple/templates/security-releases.art +28 -0
  46. package/lib/routes/appleinsider/index.ts +1 -1
  47. package/lib/routes/augmentcode/blog.ts +161 -0
  48. package/lib/routes/augmentcode/namespace.ts +9 -0
  49. package/lib/routes/augmentcode/templates/description.art +17 -0
  50. package/lib/routes/baidu/gushitong/index.ts +1 -1
  51. package/lib/routes/bakamh/manga.ts +74 -0
  52. package/lib/routes/bakamh/namespace.ts +8 -0
  53. package/lib/routes/bandisoft/history.ts +329 -0
  54. package/lib/routes/bandisoft/namespace.ts +9 -0
  55. package/lib/routes/banyuetan/index.ts +238 -0
  56. package/lib/routes/banyuetan/namespace.ts +9 -0
  57. package/lib/routes/banyuetan/templates/description.art +21 -0
  58. package/lib/routes/bbc/learningenglish.ts +76 -0
  59. package/lib/routes/behance/user.ts +1 -1
  60. package/lib/routes/bfl/announcements.ts +127 -0
  61. package/lib/routes/bfl/namespace.ts +9 -0
  62. package/lib/routes/bigquant/collections.ts +1 -1
  63. package/lib/routes/bilibili/bangumi.ts +1 -1
  64. package/lib/routes/bilibili/cache.ts +19 -20
  65. package/lib/routes/bilibili/check-cookie.ts +31 -0
  66. package/lib/routes/bilibili/dynamic.ts +29 -15
  67. package/lib/routes/bilibili/followings-dynamic.ts +9 -3
  68. package/lib/routes/bilibili/ranking.ts +3 -1
  69. package/lib/routes/bilibili/readlist.ts +1 -1
  70. package/lib/routes/bilibili/video.ts +3 -1
  71. package/lib/routes/binance/announcement.ts +1 -1
  72. package/lib/routes/bitget/announcement.ts +1 -1
  73. package/lib/routes/bjp/apod.ts +1 -1
  74. package/lib/routes/bloomberg/authors.ts +1 -1
  75. package/lib/routes/bloomberg/index.ts +1 -1
  76. package/lib/routes/bookfere/category.ts +1 -1
  77. package/lib/routes/bsky/feeds.ts +1 -1
  78. package/lib/routes/bsky/keyword.ts +15 -10
  79. package/lib/routes/bsky/posts.ts +1 -1
  80. package/lib/routes/bupt/scss.ts +98 -0
  81. package/lib/routes/caixin/latest.ts +1 -1
  82. package/lib/routes/cara/likes.ts +1 -1
  83. package/lib/routes/cara/portfolio.ts +1 -1
  84. package/lib/routes/cara/timeline.ts +1 -1
  85. package/lib/routes/changba/user.ts +1 -1
  86. package/lib/routes/chaping/banner.ts +1 -1
  87. package/lib/routes/chaping/news.ts +1 -1
  88. package/lib/routes/chaping/newsflash.ts +1 -1
  89. package/lib/routes/chiphell/namespace.ts +7 -0
  90. package/lib/routes/chiphell/portal.ts +82 -0
  91. package/lib/routes/chnmuseum/namespace.ts +10 -0
  92. package/lib/routes/chnmuseum/xingnew.ts +73 -0
  93. package/lib/routes/chnmuseum/xwzt.ts +67 -0
  94. package/lib/routes/chocolatey/namespace.ts +9 -0
  95. package/lib/routes/chocolatey/packages.ts +122 -0
  96. package/lib/routes/chub/characters.ts +4 -6
  97. package/lib/routes/cih-index/namespace.ts +7 -0
  98. package/lib/routes/cih-index/report.ts +74 -0
  99. package/lib/routes/civitai/user.ts +90 -0
  100. package/lib/routes/cmde/index.ts +1 -1
  101. package/lib/routes/cna/index.ts +2 -24
  102. package/lib/routes/cna/utils.ts +23 -0
  103. package/lib/routes/cna/web/index.ts +2 -22
  104. package/lib/routes/cnbeta/namespace.ts +1 -1
  105. package/lib/routes/cngal/entry.ts +2 -2
  106. package/lib/routes/cngal/weekly.ts +3 -3
  107. package/lib/routes/cockroachlabs/blog.ts +113 -0
  108. package/lib/routes/cockroachlabs/namespace.ts +7 -0
  109. package/lib/routes/copymanga/comic.ts +7 -9
  110. package/lib/routes/cuilingmag/index.ts +1 -1
  111. package/lib/routes/cyzone/author.ts +1 -1
  112. package/lib/routes/cyzone/label.ts +1 -1
  113. package/lib/routes/daum/potplayer.ts +257 -0
  114. package/lib/routes/dcfever/news.ts +1 -1
  115. package/lib/routes/dcfever/reviews.ts +1 -1
  116. package/lib/routes/dcfever/trading-search.ts +1 -1
  117. package/lib/routes/dcfever/trading.ts +1 -1
  118. package/lib/routes/dedao/index.ts +1 -1
  119. package/lib/routes/dedao/knowledge.ts +1 -1
  120. package/lib/routes/dedao/list.ts +1 -1
  121. package/lib/routes/dedao/user.ts +1 -1
  122. package/lib/routes/deepl/blog.ts +422 -0
  123. package/lib/routes/deepl/namespace.ts +9 -0
  124. package/lib/routes/deepl/templates/description.art +21 -0
  125. package/lib/routes/deepmind/blog.ts +1 -1
  126. package/lib/routes/diandong/news.ts +1 -1
  127. package/lib/routes/digitalcameraworld/news.ts +1 -1
  128. package/lib/routes/dlsite/campaign.ts +1 -1
  129. package/lib/routes/dlsite/ci-en/article.ts +1 -1
  130. package/lib/routes/dlsite/new.ts +1 -1
  131. package/lib/routes/dn/news.ts +1 -1
  132. package/lib/routes/dockerhub/build.ts +1 -1
  133. package/lib/routes/dongqiudi/daily.ts +1 -1
  134. package/lib/routes/dongqiudi/player-news.ts +1 -1
  135. package/lib/routes/dongqiudi/result.ts +1 -1
  136. package/lib/routes/dongqiudi/special.ts +1 -1
  137. package/lib/routes/dongqiudi/team-news.ts +1 -1
  138. package/lib/routes/dongqiudi/top-news.ts +1 -1
  139. package/lib/routes/dora-world/article.ts +1 -1
  140. package/lib/routes/douban/other/group.ts +1 -1
  141. package/lib/routes/douban/other/list.ts +3 -3
  142. package/lib/routes/douban/other/topic.ts +1 -1
  143. package/lib/routes/douban/people/status.ts +1 -1
  144. package/lib/routes/dx2025/index.ts +1 -1
  145. package/lib/routes/eastmoney/report/index.ts +1 -1
  146. package/lib/routes/eastmoney/search/index.ts +1 -1
  147. package/lib/routes/eastmoney/ttjj/user.ts +1 -1
  148. package/lib/routes/economist/espresso.ts +1 -1
  149. package/lib/routes/economist/full.ts +1 -1
  150. package/lib/routes/embassy/supported-list.ts +1 -1
  151. package/lib/routes/epicgames/index.ts +1 -1
  152. package/lib/routes/eventernote/actors.ts +1 -1
  153. package/lib/routes/everia/article.ts +21 -0
  154. package/lib/routes/everia/category.ts +54 -0
  155. package/lib/routes/everia/const.ts +4 -0
  156. package/lib/routes/everia/latest.ts +49 -0
  157. package/lib/routes/everia/namespace.ts +6 -0
  158. package/lib/routes/everia/search.ts +45 -0
  159. package/lib/routes/everia/tag.ts +54 -0
  160. package/lib/routes/fanbox/utils.ts +1 -1
  161. package/lib/routes/fantia/search.ts +1 -1
  162. package/lib/routes/fantia/user.ts +1 -1
  163. package/lib/routes/fantube/creator.ts +69 -0
  164. package/lib/routes/fantube/namespace.ts +7 -0
  165. package/lib/routes/fantube/templates/post.art +17 -0
  166. package/lib/routes/fantube/types.ts +100 -0
  167. package/lib/routes/fantube/utils.ts +268 -0
  168. package/lib/routes/fashionnetwork/namespace.ts +1 -1
  169. package/lib/routes/fastbull/express-news.ts +1 -1
  170. package/lib/routes/fastbull/news.ts +1 -1
  171. package/lib/routes/fediverse/timeline.ts +1 -1
  172. package/lib/routes/ff14/ff14-global.ts +1 -1
  173. package/lib/routes/finviz/news.ts +1 -1
  174. package/lib/routes/followin/index.ts +1 -1
  175. package/lib/routes/followin/news.ts +1 -1
  176. package/lib/routes/foresightnews/article.ts +1 -1
  177. package/lib/routes/foresightnews/column.ts +1 -1
  178. package/lib/routes/foresightnews/index.ts +1 -1
  179. package/lib/routes/foresightnews/news.ts +1 -1
  180. package/lib/routes/freewechat/profile.ts +7 -1
  181. package/lib/routes/ftm/index.ts +1 -1
  182. package/lib/routes/furaffinity/browse.ts +1 -1
  183. package/lib/routes/furaffinity/home.ts +1 -1
  184. package/lib/routes/furaffinity/journals.ts +1 -1
  185. package/lib/routes/furaffinity/search.ts +1 -1
  186. package/lib/routes/furaffinity/shouts.ts +1 -1
  187. package/lib/routes/furaffinity/status.ts +1 -1
  188. package/lib/routes/fx678/kx.ts +1 -1
  189. package/lib/routes/gamer/ani/anime.ts +1 -1
  190. package/lib/routes/gamer/ani/new-anime.ts +1 -1
  191. package/lib/routes/gamer/gnn-index.ts +1 -1
  192. package/lib/routes/gamer/hot.ts +1 -1
  193. package/lib/routes/gcores/radio.ts +1 -1
  194. package/lib/routes/geekpark/index.ts +1 -1
  195. package/lib/routes/gelonghui/home.ts +1 -1
  196. package/lib/routes/gelonghui/hot-article.ts +1 -1
  197. package/lib/routes/gelonghui/keyword.ts +1 -1
  198. package/lib/routes/gelonghui/live.ts +1 -1
  199. package/lib/routes/gelonghui/subject.ts +1 -1
  200. package/lib/routes/gelonghui/user.ts +1 -1
  201. package/lib/routes/geocaching/blogs.ts +2 -2
  202. package/lib/routes/gettr/user.ts +1 -1
  203. package/lib/routes/github/activity.ts +2 -1
  204. package/lib/routes/github/issue.ts +1 -1
  205. package/lib/routes/github/star.ts +1 -1
  206. package/lib/routes/github/trending.ts +1 -1
  207. package/lib/routes/gmu/namespace.ts +7 -0
  208. package/lib/routes/gmu/news.ts +136 -0
  209. package/lib/routes/gmu/yjs.ts +173 -0
  210. package/lib/routes/go/jihs/idwr.ts +137 -0
  211. package/lib/routes/google/citations.ts +1 -1
  212. package/lib/routes/google/doodles.ts +1 -1
  213. package/lib/routes/google/news.ts +1 -1
  214. package/lib/routes/google/scholar.ts +1 -1
  215. package/lib/routes/google/search.ts +18 -30
  216. package/lib/routes/gov/chongqing/sydwgkzp.ts +22 -6
  217. package/lib/routes/gov/customs/list.ts +8 -3
  218. package/lib/routes/gov/hangzhou/zwfw.ts +1 -1
  219. package/lib/routes/gov/pbc/goutongjiaoliu.ts +1 -1
  220. package/lib/routes/gov/sichuan/deyang/govpublicinfo.ts +9 -10
  221. package/lib/routes/gq/news.ts +1 -1
  222. package/lib/routes/grist/featured.ts +1 -1
  223. package/lib/routes/grist/index.ts +1 -1
  224. package/lib/routes/grist/series.ts +1 -1
  225. package/lib/routes/grist/topic.ts +1 -1
  226. package/lib/routes/guokr/channel.ts +1 -1
  227. package/lib/routes/guokr/scientific.ts +1 -1
  228. package/lib/routes/hackernews/index.ts +1 -1
  229. package/lib/routes/harvard/health/blog.ts +1 -1
  230. package/lib/routes/hbr/topic.ts +1 -1
  231. package/lib/routes/hedwig/namespace.ts +7 -0
  232. package/lib/routes/hedwig/posts.ts +60 -0
  233. package/lib/routes/hellobtc/information.ts +1 -1
  234. package/lib/routes/hellobtc/kepu.ts +1 -1
  235. package/lib/routes/hellobtc/news.ts +1 -1
  236. package/lib/routes/hellogithub/index.ts +1 -1
  237. package/lib/routes/hkepc/index.ts +1 -1
  238. package/lib/routes/hpoi/all.ts +1 -1
  239. package/lib/routes/hpoi/character.ts +1 -1
  240. package/lib/routes/hpoi/work.ts +1 -1
  241. package/lib/routes/huawei/developer/harmonyos/samplecode.ts +69 -0
  242. package/lib/routes/huawei/namespace.ts +7 -0
  243. package/lib/routes/hupu/templates/description.art +1 -1
  244. package/lib/routes/huxiu/brief-column.ts +1 -1
  245. package/lib/routes/huxiu/channel.ts +1 -1
  246. package/lib/routes/huxiu/club.ts +1 -1
  247. package/lib/routes/huxiu/collection.ts +1 -1
  248. package/lib/routes/huxiu/member.ts +1 -1
  249. package/lib/routes/huxiu/moment.ts +1 -1
  250. package/lib/routes/huxiu/search.ts +1 -1
  251. package/lib/routes/huxiu/tag.ts +1 -1
  252. package/lib/routes/hyperdash/namespace.ts +7 -0
  253. package/lib/routes/hyperdash/templates/description.art +34 -0
  254. package/lib/routes/hyperdash/top-traders.ts +84 -0
  255. package/lib/routes/hyperdash/utils.ts +49 -0
  256. package/lib/routes/idolypride/news.ts +1 -1
  257. package/lib/routes/ielts/index.ts +1 -1
  258. package/lib/routes/ifanr/category.ts +1 -1
  259. package/lib/routes/ifanr/digest.ts +1 -1
  260. package/lib/routes/ifanr/index.ts +1 -1
  261. package/lib/routes/imdb/chart.ts +1 -1
  262. package/lib/routes/infoq/presentations.ts +1 -1
  263. package/lib/routes/infoq/recommend.ts +1 -1
  264. package/lib/routes/infoq/topic.ts +17 -14
  265. package/lib/routes/informedainews/docs.ts +1 -1
  266. package/lib/routes/inoreader/index.ts +1 -1
  267. package/lib/routes/inoreader/rss.ts +1 -1
  268. package/lib/routes/instagram/web-api/index.ts +17 -13
  269. package/lib/routes/instagram/web-api/utils.ts +46 -63
  270. package/lib/routes/javbus/index.ts +1 -1
  271. package/lib/routes/jianshu/collection.ts +1 -1
  272. package/lib/routes/jianshu/home.ts +1 -1
  273. package/lib/routes/jianshu/user.ts +1 -1
  274. package/lib/routes/jike/topic.ts +1 -1
  275. package/lib/routes/jike/user.ts +1 -1
  276. package/lib/routes/jin10/index.ts +1 -1
  277. package/lib/routes/jin10/topic.ts +1 -1
  278. package/lib/routes/jinse/lives.ts +1 -1
  279. package/lib/routes/jinse/timeline.ts +1 -1
  280. package/lib/routes/jiuyangongshe/community.ts +1 -1
  281. package/lib/routes/jjwxc/book.ts +1 -1
  282. package/lib/routes/keep/user.ts +1 -1
  283. package/lib/routes/kemono/const.ts +9 -0
  284. package/lib/routes/kemono/index.ts +282 -141
  285. package/lib/routes/kemono/types.ts +31 -0
  286. package/lib/routes/konachan/post.ts +27 -19
  287. package/lib/routes/kurogames/wutheringwaves/constants.ts +1 -1
  288. package/lib/routes/kurogames/wutheringwaves/news.ts +4 -1
  289. package/lib/routes/laohu8/personal.ts +1 -1
  290. package/lib/routes/lemmy/index.ts +1 -1
  291. package/lib/routes/lenovo/drive.ts +65 -0
  292. package/lib/routes/lenovo/namespace.ts +7 -0
  293. package/lib/routes/lenovo/templates/drive.art +9 -0
  294. package/lib/routes/line/publisher.ts +1 -1
  295. package/lib/routes/line/today.ts +1 -1
  296. package/lib/routes/lineageos/changes.ts +79 -0
  297. package/lib/routes/lineageos/namespace.ts +9 -0
  298. package/lib/routes/linkedin/cn/renderer.ts +1 -1
  299. package/lib/routes/linkedin/jobs.ts +1 -1
  300. package/lib/routes/liquipedia/cs-matches.ts +42 -14
  301. package/lib/routes/liveuamap/index.ts +1 -1
  302. package/lib/routes/lofter/collection.ts +1 -1
  303. package/lib/routes/lofter/tag.ts +1 -1
  304. package/lib/routes/lofter/user.ts +1 -1
  305. package/lib/routes/macfilos/blog.ts +1 -1
  306. package/lib/routes/magnumphotos/magazine.ts +1 -1
  307. package/lib/routes/makerworld/contest.ts +51 -0
  308. package/lib/routes/makerworld/namespace.ts +7 -0
  309. package/lib/routes/makerworld/trending.ts +45 -0
  310. package/lib/routes/makerworld/user-upload.ts +54 -0
  311. package/lib/routes/makerworld/utils.ts +18 -0
  312. package/lib/routes/mangadex/_access.ts +111 -0
  313. package/lib/routes/mangadex/_constants.ts +75 -0
  314. package/lib/routes/mangadex/_feed.ts +184 -0
  315. package/lib/routes/mangadex/_profile.ts +47 -0
  316. package/lib/routes/mangadex/_utils.ts +49 -0
  317. package/lib/routes/mangadex/index.ts +16 -67
  318. package/lib/routes/mangadex/mdlist/feed.ts +156 -0
  319. package/lib/routes/mangadex/namespace.ts +2 -0
  320. package/lib/routes/mangadex/user/feed.ts +126 -0
  321. package/lib/routes/mangadex/user/follows.ts +149 -0
  322. package/lib/routes/mastodon/account-id.ts +1 -1
  323. package/lib/routes/mastodon/acct.ts +1 -1
  324. package/lib/routes/mastodon/tag.ts +48 -0
  325. package/lib/routes/mastodon/timeline-local.ts +1 -1
  326. package/lib/routes/mastodon/timeline-remote.ts +1 -1
  327. package/lib/routes/mathpix/blog.ts +155 -0
  328. package/lib/routes/mathpix/namespace.ts +9 -0
  329. package/lib/routes/mathpix/templates/description.art +21 -0
  330. package/lib/routes/matters/namespace.ts +1 -1
  331. package/lib/routes/mckinsey/cn/index.ts +1 -1
  332. package/lib/routes/medsci/index.ts +1 -1
  333. package/lib/routes/meta/ai-blog.ts +121 -0
  334. package/lib/routes/meta/namespace.ts +6 -0
  335. package/lib/routes/metacritic/index.ts +2 -2
  336. package/lib/routes/mihoyo/ys/news.ts +19 -73
  337. package/lib/routes/mirror/index.ts +1 -1
  338. package/lib/routes/missav/new.ts +27 -9
  339. package/lib/routes/misskey/featured-notes.ts +1 -1
  340. package/lib/routes/misskey/user-timeline.ts +1 -1
  341. package/lib/routes/mittrchina/index.ts +1 -1
  342. package/lib/routes/mixcloud/config.ts +129 -0
  343. package/lib/routes/mixcloud/index.ts +163 -107
  344. package/lib/routes/mixcloud/user-playlist.ts +31 -0
  345. package/lib/routes/mixi2/community.ts +72 -0
  346. package/lib/routes/mixi2/discovery.ts +52 -0
  347. package/lib/routes/mixi2/home.ts +51 -0
  348. package/lib/routes/mixi2/namespace.ts +8 -0
  349. package/lib/routes/mixi2/user.ts +77 -0
  350. package/lib/routes/mixi2/utils.ts +56 -0
  351. package/lib/routes/mygopen/index.ts +1 -1
  352. package/lib/routes/nasa/apod.ts +1 -1
  353. package/lib/routes/nautil/topics.ts +1 -1
  354. package/lib/routes/newyorker/news.ts +1 -1
  355. package/lib/routes/nga/forum.ts +1 -1
  356. package/lib/routes/nhk/news.ts +1 -1
  357. package/lib/routes/nifd/research.ts +16 -0
  358. package/lib/routes/njust/cs.ts +58 -0
  359. package/lib/routes/njust/utils.ts +1 -1
  360. package/lib/routes/notefolio/search.ts +1 -1
  361. package/lib/routes/now/news.ts +93 -33
  362. package/lib/routes/nuaa/utils/pypasswaf.ts +1 -1
  363. package/lib/routes/nytimes/book.ts +1 -1
  364. package/lib/routes/nytimes/daily-briefing-chinese.ts +1 -1
  365. package/lib/routes/nytimes/index.ts +1 -1
  366. package/lib/routes/nytimes/rss.ts +1 -1
  367. package/lib/routes/odaily/activity.ts +1 -1
  368. package/lib/routes/odaily/newsflash.ts +1 -1
  369. package/lib/routes/odaily/post.ts +1 -1
  370. package/lib/routes/odaily/search-news.ts +1 -1
  371. package/lib/routes/odaily/user.ts +1 -1
  372. package/lib/routes/panewslab/author.ts +1 -1
  373. package/lib/routes/panewslab/news.ts +1 -1
  374. package/lib/routes/panewslab/profundity.ts +1 -1
  375. package/lib/routes/panewslab/topic.ts +1 -1
  376. package/lib/routes/paulgraham/article.ts +2 -2
  377. package/lib/routes/pconline/focus.ts +1 -1
  378. package/lib/routes/phoronix/index.ts +1 -1
  379. package/lib/routes/picnob/user.ts +64 -146
  380. package/lib/routes/picnob/utils.ts +14 -12
  381. package/lib/routes/picuki/namespace.ts +1 -7
  382. package/lib/routes/picuki/profile.ts +111 -171
  383. package/lib/routes/picuki/utils.ts +5 -10
  384. package/lib/routes/pingwest/status.ts +1 -1
  385. package/lib/routes/pingwest/tag.ts +1 -1
  386. package/lib/routes/pingwest/user.ts +1 -1
  387. package/lib/routes/pixabay/search.ts +1 -1
  388. package/lib/routes/pixiv/ranking.ts +1 -1
  389. package/lib/routes/pixiv/search.ts +1 -1
  390. package/lib/routes/pixiv/user.ts +1 -1
  391. package/lib/routes/pixivision/index.ts +1 -1
  392. package/lib/routes/plurk/anonymous.ts +1 -1
  393. package/lib/routes/plurk/hotlinks.ts +1 -1
  394. package/lib/routes/plurk/news.ts +1 -1
  395. package/lib/routes/plurk/search.ts +1 -1
  396. package/lib/routes/plurk/top.ts +1 -1
  397. package/lib/routes/plurk/topic.ts +1 -1
  398. package/lib/routes/plurk/user.ts +1 -1
  399. package/lib/routes/podwise/collections.ts +1 -1
  400. package/lib/routes/pornhub/category.ts +1 -1
  401. package/lib/routes/pornhub/model.ts +1 -1
  402. package/lib/routes/pornhub/pornstar.ts +1 -1
  403. package/lib/routes/pornhub/search.ts +1 -1
  404. package/lib/routes/ps/monthly-games.ts +1 -1
  405. package/lib/routes/psyche/topic.ts +1 -1
  406. package/lib/routes/python/namespace.ts +9 -0
  407. package/lib/routes/python/release.ts +120 -0
  408. package/lib/routes/qbitai/category.ts +1 -1
  409. package/lib/routes/qbitai/tag.ts +1 -1
  410. package/lib/routes/qidian/chapter.ts +1 -1
  411. package/lib/routes/questmobile/report.ts +1 -1
  412. package/lib/routes/radio/album.ts +40 -49
  413. package/lib/routes/radio/templates/description.art +2 -2
  414. package/lib/routes/readhub/daily.ts +1 -1
  415. package/lib/routes/readhub/index.ts +1 -1
  416. package/lib/routes/rebase/geekdaily.ts +1 -1
  417. package/lib/routes/reuters/common.ts +1 -1
  418. package/lib/routes/reuters/investigates.ts +1 -1
  419. package/lib/routes/rsshub/routes.ts +1 -1
  420. package/lib/routes/samrdprc/namespace.ts +7 -0
  421. package/lib/routes/samrdprc/news.ts +79 -0
  422. package/lib/routes/sankei/namespace.ts +7 -0
  423. package/lib/routes/sankei/news.ts +68 -0
  424. package/lib/routes/sankei/topics.ts +71 -0
  425. package/lib/routes/scoop/apps.ts +188 -0
  426. package/lib/routes/scoop/namespace.ts +9 -0
  427. package/lib/routes/scoop/templates/description.art +56 -0
  428. package/lib/routes/sehuatang/index.ts +27 -32
  429. package/lib/routes/seu/cyber/index.ts +78 -0
  430. package/lib/routes/simpleinfo/index.ts +1 -1
  431. package/lib/routes/sjtu/seiee/icisee.ts +67 -0
  432. package/lib/routes/slowmist/slowmist.ts +1 -1
  433. package/lib/routes/smartlink/index.ts +84 -0
  434. package/lib/routes/smartlink/namespace.ts +7 -0
  435. package/lib/routes/smzdm/article.ts +19 -3
  436. package/lib/routes/smzdm/baoliao.ts +19 -3
  437. package/lib/routes/smzdm/haowen-fenlei.ts +19 -3
  438. package/lib/routes/smzdm/haowen.ts +19 -3
  439. package/lib/routes/smzdm/keyword.ts +15 -2
  440. package/lib/routes/smzdm/product.ts +19 -3
  441. package/lib/routes/smzdm/ranking.ts +172 -156
  442. package/lib/routes/smzdm/utils.ts +7 -0
  443. package/lib/routes/sohu/mp.ts +1 -1
  444. package/lib/routes/solidot/main.ts +1 -1
  445. package/lib/routes/spotify/artist.ts +1 -1
  446. package/lib/routes/spotify/playlist.ts +1 -1
  447. package/lib/routes/spotify/show.ts +1 -1
  448. package/lib/routes/sspai/activity.ts +1 -1
  449. package/lib/routes/sspai/author.ts +1 -1
  450. package/lib/routes/sspai/bookmarks.ts +1 -1
  451. package/lib/routes/sspai/column.ts +1 -1
  452. package/lib/routes/sspai/index.ts +1 -1
  453. package/lib/routes/sspai/matrix.ts +1 -1
  454. package/lib/routes/sspai/series-update.ts +1 -1
  455. package/lib/routes/sspai/series.ts +1 -1
  456. package/lib/routes/sspai/shortcuts-gallery.ts +1 -1
  457. package/lib/routes/sspai/tag.ts +1 -1
  458. package/lib/routes/sspai/topic.ts +1 -1
  459. package/lib/routes/sspai/topics.ts +1 -1
  460. package/lib/routes/startuplatte/index.ts +1 -1
  461. package/lib/routes/steam/news.ts +281 -0
  462. package/lib/routes/stheadline/std/realtime.ts +24 -16
  463. package/lib/routes/stockedge/daily-news.ts +1 -1
  464. package/lib/routes/storm/channel.ts +80 -0
  465. package/lib/routes/tailwindcss/blog.ts +26 -0
  466. package/lib/routes/tailwindcss/constants.ts +2 -0
  467. package/lib/routes/tailwindcss/namespace.ts +7 -0
  468. package/lib/routes/tailwindcss/utils.ts +68 -0
  469. package/lib/routes/techflowpost/express.ts +1 -1
  470. package/lib/routes/techflowpost/index.ts +1 -1
  471. package/lib/routes/telegram/blog.ts +1 -1
  472. package/lib/routes/telegram/channel.ts +1 -1
  473. package/lib/routes/test/api-index.ts +13 -0
  474. package/lib/routes/theblockbeats/index.ts +3 -3
  475. package/lib/routes/theinitium/app.ts +1 -1
  476. package/lib/routes/theinitium/author.ts +1 -1
  477. package/lib/routes/theinitium/channel.ts +1 -1
  478. package/lib/routes/theinitium/tags.ts +1 -1
  479. package/lib/routes/themoviedb/seasons.ts +1 -1
  480. package/lib/routes/thepaper/channel.ts +1 -1
  481. package/lib/routes/thepaper/factpaper.ts +1 -1
  482. package/lib/routes/thepaper/featured.ts +1 -1
  483. package/lib/routes/thepaper/list.ts +1 -1
  484. package/lib/routes/thepaper/sidebar.ts +1 -1
  485. package/lib/routes/thepaper/user.ts +1 -1
  486. package/lib/routes/thepaper/utils.ts +8 -3
  487. package/lib/routes/thepetcity/index.ts +1 -1
  488. package/lib/routes/theverge/index.ts +1 -1
  489. package/lib/routes/threads/index.ts +1 -1
  490. package/lib/routes/thzt/index.ts +72 -0
  491. package/lib/routes/thzt/namespace.ts +8 -0
  492. package/lib/routes/timednews/news.ts +1 -1
  493. package/lib/routes/tingtingfm/program.ts +1 -1
  494. package/lib/routes/tju/yzb/index.ts +2 -2
  495. package/lib/routes/tophub/index.ts +1 -1
  496. package/lib/routes/tophub/list.ts +1 -1
  497. package/lib/routes/tver/namespace.ts +7 -0
  498. package/lib/routes/tver/series.ts +98 -0
  499. package/lib/routes/twitch/live.ts +1 -1
  500. package/lib/routes/twitch/video.ts +1 -1
  501. package/lib/routes/twitter/api/web-api/login.ts +1 -3
  502. package/lib/routes/twitter/api/web-api/utils.ts +24 -2
  503. package/lib/routes/twitter/keyword.ts +1 -1
  504. package/lib/routes/twitter/list.ts +1 -1
  505. package/lib/routes/twitter/media.ts +1 -1
  506. package/lib/routes/twitter/namespace.ts +1 -0
  507. package/lib/routes/twitter/user.ts +1 -1
  508. package/lib/routes/twitter/utils.ts +24 -16
  509. package/lib/routes/twreporter/category.ts +1 -1
  510. package/lib/routes/twreporter/newest.ts +1 -1
  511. package/lib/routes/udn/breaking-news.ts +1 -1
  512. package/lib/routes/uestc/auto.ts +1 -1
  513. package/lib/routes/uestc/cqe.ts +1 -1
  514. package/lib/routes/uestc/scse.ts +1 -1
  515. package/lib/routes/uestc/sice.ts +1 -1
  516. package/lib/routes/uestc/sise.ts +1 -1
  517. package/lib/routes/unusualwhales/news.ts +10 -8
  518. package/lib/routes/utgd/category.ts +1 -1
  519. package/lib/routes/utgd/timeline.ts +1 -1
  520. package/lib/routes/utgd/topic.ts +1 -1
  521. package/lib/routes/v2ex/tab.ts +1 -1
  522. package/lib/routes/v2ex/topics.ts +1 -1
  523. package/lib/routes/vertikal/latest.ts +1 -1
  524. package/lib/routes/vimeo/category.ts +1 -1
  525. package/lib/routes/vimeo/usr-videos.ts +1 -1
  526. package/lib/routes/visualstudio/code-blog.ts +67 -0
  527. package/lib/routes/visualstudio/namespace.ts +7 -0
  528. package/lib/routes/vocus/publication.ts +1 -1
  529. package/lib/routes/vocus/user.ts +1 -1
  530. package/lib/routes/voronoiapp/common.ts +1 -1
  531. package/lib/routes/warhammer-community/namespace.ts +7 -0
  532. package/lib/routes/warhammer-community/news.ts +73 -0
  533. package/lib/routes/warp/blog.ts +77 -0
  534. package/lib/routes/warp/namespace.ts +7 -0
  535. package/lib/routes/weibo/keyword.ts +1 -1
  536. package/lib/routes/weibo/search/hot.ts +1 -1
  537. package/lib/routes/weibo/user.ts +1 -1
  538. package/lib/routes/windsurf/blog.ts +118 -0
  539. package/lib/routes/windsurf/changelog.ts +100 -0
  540. package/lib/routes/windsurf/namespace.ts +9 -0
  541. package/lib/routes/windsurf/templates/description.art +21 -0
  542. package/lib/routes/woshipm/popular.ts +3 -2
  543. package/lib/routes/xiaohongshu/check-cookie.ts +16 -0
  544. package/lib/routes/xiaohongshu/user.ts +3 -3
  545. package/lib/routes/xiaohongshu/util.ts +24 -12
  546. package/lib/routes/xiaoyuzhou/podcast.ts +18 -5
  547. package/lib/routes/xjtu/ee-jzxx.ts +110 -0
  548. package/lib/routes/xsijishe/rank.ts +2 -2
  549. package/lib/routes/xueqiu/cookies.ts +1 -1
  550. package/lib/routes/xueqiu/user.ts +115 -52
  551. package/lib/routes/yahoo/news/index.ts +1 -1
  552. package/lib/routes/yahoo/news/listid.ts +1 -1
  553. package/lib/routes/yahoo/news/provider-helper.ts +1 -1
  554. package/lib/routes/yahoo/news/provider.ts +1 -1
  555. package/lib/routes/yande/post.ts +1 -1
  556. package/lib/routes/yilinzazhi/index.ts +1 -1
  557. package/lib/routes/yilinzazhi/latest.ts +1 -1
  558. package/lib/routes/youtube/api/google.ts +216 -0
  559. package/lib/routes/youtube/api/youtubei.ts +98 -0
  560. package/lib/routes/youtube/channel.ts +10 -35
  561. package/lib/routes/youtube/community.ts +5 -3
  562. package/lib/routes/youtube/playlist.ts +11 -30
  563. package/lib/routes/youtube/user.ts +12 -92
  564. package/lib/routes/youtube/utils.ts +27 -52
  565. package/lib/routes/youzhiyouxing/materials.ts +1 -1
  566. package/lib/routes/yuanliao/index.ts +218 -0
  567. package/lib/routes/yuanliao/namespace.ts +9 -0
  568. package/lib/routes/yyets/article.ts +1 -1
  569. package/lib/routes/yyets/today.ts +1 -1
  570. package/lib/routes/zaimanhua/comic.ts +88 -0
  571. package/lib/routes/zaimanhua/template/comic.art +3 -0
  572. package/lib/routes/zaimanhua/update.ts +42 -10
  573. package/lib/routes/zcool/top.ts +1 -1
  574. package/lib/routes/zcool/user.ts +1 -1
  575. package/lib/routes/zed/blog.ts +75 -0
  576. package/lib/routes/zed/namespace.ts +7 -0
  577. package/lib/routes/zhihu/activities.ts +1 -1
  578. package/lib/routes/zhihu/all-collections.ts +10 -1
  579. package/lib/routes/zhihu/check-cookie.ts +31 -0
  580. package/lib/routes/zhihu/collection.ts +9 -1
  581. package/lib/routes/zhihu/execlib/x-zse-96-v3.ts +5 -5
  582. package/lib/routes/zhihu/hot.ts +12 -79
  583. package/lib/routes/zhihu/topic.ts +11 -5
  584. package/lib/routes/zhihu/zhuanlan.ts +7 -2
  585. package/lib/routes/zhitongcaijing/index.ts +1 -1
  586. package/lib/routes/zongheng/detail.ts +77 -0
  587. package/lib/routes/zongheng/namespace.ts +7 -0
  588. package/lib/types.ts +48 -3
  589. package/lib/utils/cache/index.ts +2 -2
  590. package/lib/utils/helpers.test.ts +8 -1
  591. package/lib/utils/helpers.ts +19 -0
  592. package/lib/utils/proxy/index.ts +102 -18
  593. package/lib/utils/proxy/multi-proxy.ts +139 -0
  594. package/lib/utils/proxy/unify-proxy.ts +3 -1
  595. package/lib/utils/puppeteer-utils.test.ts +1 -1
  596. package/lib/utils/puppeteer.test.ts +136 -27
  597. package/lib/utils/puppeteer.ts +152 -28
  598. package/lib/utils/readable-social.test.ts +65 -0
  599. package/lib/utils/readable-social.ts +15 -1
  600. package/lib/utils/request-rewriter/fetch.ts +42 -4
  601. package/package.json +54 -56
  602. package/lib/routes/go/niid/idwr-dl.ts +0 -104
  603. package/lib/routes/google/templates/description.art +0 -6
  604. package/lib/routes/mihoyo/templates/ys.art +0 -4
  605. package/lib/routes/mixcloud/queries.ts +0 -2274
  606. package/lib/routes/picnob/templates/desc.art +0 -20
  607. package/lib/routes-deprecated/blogs/hedwig.js +0 -42
  608. package/lib/routes-deprecated/chiphell/forum.js +0 -67
@@ -6,11 +6,15 @@ import { art } from '@/utils/render';
6
6
  import path from 'node:path';
7
7
  import { config } from '@/config';
8
8
  import ConfigNotFoundError from '@/errors/types/config-not-found';
9
+ import md5 from '@/utils/md5';
10
+ import CryptoJS from 'crypto-js';
9
11
 
10
12
  const defaultDomain = 'jmcomic1.me';
11
13
  // list of address: https://jmcomic2.bet
12
14
  const allowDomain = new Set(['18comic.vip', '18comic.org', 'jmcomic.me', 'jmcomic1.me', 'jm-comic3.art', 'jm-comic.club', 'jm-comic2.ark']);
13
15
 
16
+ const apiDomain = 'www.cdnblackmyth.club';
17
+
14
18
  const getRootUrl = (domain) => {
15
19
  if (!config.feature.allow_user_supply_unsafe_domain && !allowDomain.has(domain)) {
16
20
  throw new ConfigNotFoundError(`This RSS is disabled unless 'ALLOW_USER_SUPPLY_UNSAFE_DOMAIN' is set to 'true'.`);
@@ -19,6 +23,71 @@ const getRootUrl = (domain) => {
19
23
  return `https://${domain}`;
20
24
  };
21
25
 
26
+ const apiMapCategory = (category) => {
27
+ switch (category) {
28
+ case 'another':
29
+ return '其他漫畫';
30
+ case 'doujin':
31
+ return '同人';
32
+ case 'hanman':
33
+ return '韓漫';
34
+ case 'meiman':
35
+ return '美漫';
36
+ case 'short':
37
+ return '短篇';
38
+ case 'single':
39
+ return '單本';
40
+ default:
41
+ return null;
42
+ }
43
+ };
44
+
45
+ const getApiUrl = () => `https://${apiDomain}`;
46
+
47
+ // using api to fetch data
48
+ const processApiItems = async (apiUrl: string) => {
49
+ apiUrl = apiUrl.replace(/\?$/, '');
50
+ // get timestamp using javascript native api
51
+ const ts = Date.now();
52
+ const tokenParam = `${ts},1.7.5`;
53
+ // md5 from {token ts + "18comicAPP"
54
+ let token = `${ts}18comicAPP`;
55
+ token = md5(token);
56
+
57
+ const response = await got(apiUrl, {
58
+ headers: {
59
+ token,
60
+ tokenparam: tokenParam,
61
+ },
62
+ });
63
+
64
+ // decode base64
65
+ const encryptedWordArray = CryptoJS.enc.Base64.parse(response.data.data);
66
+
67
+ // to md5 hex string , this string must be 32 bytes , because it is used as key for AES-256
68
+ const md5HexStr = CryptoJS.MD5(ts + '185Hcomic3PAPP7R').toString(); // hex 字串
69
+
70
+ // convert string to WordArray that can be used as key for AES
71
+ const key = CryptoJS.enc.Utf8.parse(md5HexStr); // 32 bytes => AES-256
72
+
73
+ // create a CipherParams object from the encrypted WordArray
74
+ const cipherParams = CryptoJS.lib.CipherParams.create({
75
+ ciphertext: encryptedWordArray,
76
+ });
77
+
78
+ // decrypt the CipherParams object using AES in ECB mode with PKCS7 padding
79
+ const decrypted = CryptoJS.AES.decrypt(cipherParams, key, {
80
+ mode: CryptoJS.mode.ECB,
81
+ padding: CryptoJS.pad.Pkcs7,
82
+ });
83
+
84
+ // convert the decrypted WordArray to a UTF-8 string , the result is a JSON string
85
+ const resultJson = decrypted.toString(CryptoJS.enc.Utf8);
86
+
87
+ const result = JSON.parse(resultJson);
88
+ return result;
89
+ };
90
+
22
91
  const ProcessItems = async (ctx, currentUrl, rootUrl) => {
23
92
  currentUrl = currentUrl.replace(/\?$/, '');
24
93
 
@@ -82,4 +151,4 @@ const ProcessItems = async (ctx, currentUrl, rootUrl) => {
82
151
  };
83
152
  };
84
153
 
85
- export { defaultDomain, getRootUrl, ProcessItems };
154
+ export { defaultDomain, getRootUrl, ProcessItems, getApiUrl, processApiItems, apiMapCategory };
@@ -27,7 +27,7 @@ const categories = {
27
27
 
28
28
  export const route: Route = {
29
29
  path: '/hot-list/:category?',
30
- categories: ['new-media', 'popular'],
30
+ categories: ['new-media'],
31
31
  example: '/36kr/hot-list',
32
32
  parameters: { category: '分类,默认为24小时热榜' },
33
33
  features: {
@@ -18,7 +18,7 @@ const shortcuts = {
18
18
 
19
19
  export const route: Route = {
20
20
  path: '/:category/:subCategory?/:keyword?',
21
- categories: ['new-media', 'popular'],
21
+ categories: ['new-media'],
22
22
  example: '/36kr/newsflashes',
23
23
  parameters: {
24
24
  category: '分类,必填项',
@@ -34,7 +34,7 @@ export const route: Route = {
34
34
 
35
35
  async function handler(ctx) {
36
36
  const { category = '' } = ctx.req.param();
37
- const isArcPost = category && !Number.isNaN(category); // https://www.3dmgame.com/news/\d+/
37
+ const isArcPost = category && !Number.isNaN(Number(category)); // https://www.3dmgame.com/news/\d+/
38
38
  const url = `https://www.3dmgame.com/${category === 'news_36_1' ? category : 'news/' + category}`;
39
39
  const res = await got(url);
40
40
  const $ = load(res.data);
@@ -8,7 +8,7 @@ import { baseUrl, getTribeDetail, getTribeSets } from './utils';
8
8
 
9
9
  export const route: Route = {
10
10
  path: '/tribe/set/:id',
11
- categories: ['picture', 'popular'],
11
+ categories: ['picture'],
12
12
  view: ViewType.Pictures,
13
13
  example: '/500px/tribe/set/f5de0b8aa6d54ec486f5e79616418001',
14
14
  parameters: { id: '部落 ID' },
@@ -37,7 +37,7 @@ const timeRangeEnum = new Set(['all', 'oneDay', 'threeDay', 'oneWeek', 'oneMonth
37
37
 
38
38
  export const route: Route = {
39
39
  path: '/article/:categoryId/:sortType?/:timeRange?',
40
- categories: ['anime', 'popular'],
40
+ categories: ['anime'],
41
41
  view: ViewType.Articles,
42
42
  example: '/acfun/article/110',
43
43
  parameters: {
@@ -4,7 +4,7 @@ import { parseDate } from '@/utils/parse-date';
4
4
 
5
5
  export const route: Route = {
6
6
  path: '/bangumi/:id',
7
- categories: ['anime', 'popular'],
7
+ categories: ['anime'],
8
8
  view: ViewType.Videos,
9
9
  example: '/acfun/bangumi/5022158',
10
10
  parameters: { id: '番剧 id' },
@@ -15,7 +15,7 @@ export const route: Route = {
15
15
  parameters: {
16
16
  uid: '用户 UID',
17
17
  },
18
- categories: ['anime', 'popular'],
18
+ categories: ['anime'],
19
19
  example: '/acfun/user/video/6102',
20
20
  view: ViewType.Videos,
21
21
  maintainers: ['wdssmq'],
@@ -5,7 +5,7 @@ import { parseDate } from '@/utils/parse-date';
5
5
 
6
6
  export const route: Route = {
7
7
  path: '/category/:category',
8
- categories: ['new-media', 'popular'],
8
+ categories: ['new-media'],
9
9
  example: '/aeon/category/philosophy',
10
10
  parameters: {
11
11
  category: {
@@ -5,7 +5,7 @@ import { parseDate } from '@/utils/parse-date';
5
5
 
6
6
  export const route: Route = {
7
7
  path: '/:type',
8
- categories: ['new-media', 'popular'],
8
+ categories: ['new-media'],
9
9
  example: '/aeon/essays',
10
10
  parameters: {
11
11
  type: {
@@ -5,7 +5,7 @@ import { baseUrl } from './utils';
5
5
 
6
6
  export const route: Route = {
7
7
  path: '/topic_list',
8
- categories: ['new-media', 'popular'],
8
+ categories: ['new-media'],
9
9
  example: '/agirls/topic_list',
10
10
  parameters: {},
11
11
  features: {
@@ -6,7 +6,7 @@ import { baseUrl, parseArticle } from './utils';
6
6
 
7
7
  export const route: Route = {
8
8
  path: '/topic/:topic',
9
- categories: ['new-media', 'popular'],
9
+ categories: ['new-media'],
10
10
  example: '/agirls/topic/AppleWatch',
11
11
  parameters: { topic: '精选主题,可通过下方精选主题列表获得' },
12
12
  features: {
@@ -6,7 +6,7 @@ import { baseUrl, parseArticle } from './utils';
6
6
 
7
7
  export const route: Route = {
8
8
  path: '/:category?',
9
- categories: ['new-media', 'popular'],
9
+ categories: ['new-media'],
10
10
  example: '/agirls/app',
11
11
  parameters: { category: '分类,默认为最新文章,可在对应主题页的 URL 中找到,下表仅列出部分' },
12
12
  features: {
@@ -0,0 +1,110 @@
1
+ import { Route } from '@/types';
2
+ import ofetch from '@/utils/ofetch';
3
+ import { parseDate } from '@/utils/parse-date';
4
+ import { load } from 'cheerio';
5
+ import { rootUrl, buildApiUrl } from './util';
6
+ import cache from '@/utils/cache';
7
+
8
+ export const route: Route = {
9
+ path: '/daily',
10
+ name: 'AI日报',
11
+ url: 'www.aibase.com',
12
+ maintainers: ['3tuuu'],
13
+ handler: async (ctx) => {
14
+ // 每页数量限制
15
+ const limit = Number.parseInt(ctx.req.query('limit') ?? '30', 10);
16
+ // 用项目中已有的获取页面方法,获取页面以及 Token
17
+ const currentUrl = new URL('discover', rootUrl).href;
18
+ const currentHtml = await ofetch(currentUrl);
19
+ const $ = load(currentHtml);
20
+ const logoSrc = $('img.logo').prop('src');
21
+ const image = logoSrc ? new URL(logoSrc, rootUrl).href : '';
22
+ const author = 'AI Base';
23
+ const { aILogListUrl } = await buildApiUrl($);
24
+ const response: DailyData = await ofetch(aILogListUrl, {
25
+ headers: {
26
+ accept: 'application/json;charset=utf-8',
27
+ },
28
+ query: {
29
+ pagesize: limit,
30
+ page: 1,
31
+ type: 2,
32
+ isen: 0,
33
+ },
34
+ });
35
+ if (!response || !response.data) {
36
+ throw new Error('日报数据不存在或为空');
37
+ }
38
+ const items = await Promise.all(
39
+ response.data.slice(0, limit).map(async (item) => {
40
+ const articleUrl = `https://www.aibase.com/zh/news/${item.Id}`;
41
+ return await cache.tryGet(articleUrl, async () => {
42
+ const articleHtml = await ofetch(articleUrl);
43
+ const $ = load(articleHtml);
44
+ const description = $('.post-content').html();
45
+ if (!description) {
46
+ throw new Error(`Empty content: ${articleUrl}`);
47
+ }
48
+ return {
49
+ title: item.title,
50
+ link: articleUrl,
51
+ description,
52
+ pubDate: parseDate(item.addtime),
53
+ author: 'AI Base',
54
+ };
55
+ });
56
+ })
57
+ );
58
+
59
+ return {
60
+ title: 'AI日报',
61
+ description: '每天三分钟关注AI行业趋势',
62
+ language: 'zh-cn',
63
+ link: 'https://www.aibase.com/zh/daily',
64
+ item: items,
65
+ allowEmpty: true,
66
+ image,
67
+ author,
68
+ };
69
+ },
70
+ example: '/aibase/daily',
71
+ description: '获取 AI 日报',
72
+ categories: ['new-media'],
73
+ features: {
74
+ requireConfig: false,
75
+ requirePuppeteer: false,
76
+ antiCrawler: false,
77
+ supportRadar: true,
78
+ supportBT: false,
79
+ supportPodcast: false,
80
+ supportScihub: false,
81
+ },
82
+ radar: [
83
+ {
84
+ source: ['www.aibase.com/zh/daily'],
85
+ target: '/daily',
86
+ },
87
+ ],
88
+ };
89
+
90
+ interface DailyData {
91
+ has_more: boolean;
92
+ message: string;
93
+ data: DailyItem[];
94
+ }
95
+ interface DailyItem {
96
+ /** 文章 ID */
97
+ Id: number;
98
+ /** 添加时间 */
99
+ addtime: string;
100
+ /** 文章标题 */
101
+ title: string;
102
+ /** 文章副标题 */
103
+ subtitle: string;
104
+ /** 文章简要描述 */
105
+ desc: string;
106
+ /** 文章主图 */
107
+ orgthumb: string;
108
+ playtime: number;
109
+ pv: string;
110
+ }
@@ -189,7 +189,7 @@ export const route: Route = {
189
189
  | [法律](https://top.aibase.com/discover/138-139) | [138-139](https://rsshub.app/aibase/discover/138-139) |
190
190
  </details>
191
191
  `,
192
- categories: ['new-media', 'popular'],
192
+ categories: ['new-media'],
193
193
 
194
194
  features: {
195
195
  requireConfig: false,
@@ -58,7 +58,7 @@ export const route: Route = {
58
58
  },
59
59
  example: '/aibase/news',
60
60
  description: '获取 AI 资讯列表',
61
- categories: ['new-media', 'popular'],
61
+ categories: ['new-media'],
62
62
  features: {
63
63
  requireConfig: false,
64
64
  requirePuppeteer: false,
@@ -90,7 +90,7 @@ export const route: Route = {
90
90
  | [娱乐](https://top.aibase.com/topic/%E5%A8%B1%E4%B9%90) | [简历](https://top.aibase.com/topic/%E7%AE%80%E5%8E%86) | [OpenAI](https://top.aibase.com/topic/OpenAI) | [客户服务](https://top.aibase.com/topic/%E5%AE%A2%E6%88%B7%E6%9C%8D%E5%8A%A1) | [室内设计](https://top.aibase.com/topic/%E5%AE%A4%E5%86%85%E8%AE%BE%E8%AE%A1) |
91
91
  </details>
92
92
  `,
93
- categories: ['new-media', 'popular'],
93
+ categories: ['new-media'],
94
94
 
95
95
  features: {
96
96
  requireConfig: false,
@@ -56,12 +56,15 @@ const buildApiUrl = async ($: CheerioAPI) => {
56
56
  const apiTagProcUrl = new URL(`${token}/ai/GetAiProductOfTag.aspx`, apiRootUrl).href;
57
57
  // AI 资讯列表
58
58
  const apiInfoListUrl = new URL(`${token}/ai/GetAiInfoList.aspx`, apiRootUrl).href;
59
+ // AI 日报
60
+ const aILogListUrl = new URL(`${token}/ai/v2/GetAILogList.aspx`, apiRootUrl).href;
59
61
 
60
62
  return {
61
63
  apiRecommListUrl,
62
64
  apiRecommProcUrl,
63
65
  apiTagProcUrl,
64
66
  apiInfoListUrl,
67
+ aILogListUrl,
65
68
  };
66
69
  };
67
70
 
@@ -5,7 +5,7 @@ import { getHeaders, randomString, decryptAES } from './utils';
5
5
 
6
6
  export const route: Route = {
7
7
  path: '/news',
8
- categories: ['finance', 'popular'],
8
+ categories: ['finance'],
9
9
  example: '/ainvest/news',
10
10
  parameters: {},
11
11
  view: ViewType.Articles,
@@ -4,7 +4,7 @@ import { parseDate } from '@/utils/parse-date';
4
4
 
5
5
  export const route: Route = {
6
6
  path: '/:id',
7
- categories: ['multimedia', 'popular'],
7
+ categories: ['multimedia'],
8
8
  view: ViewType.Audios,
9
9
  example: '/ajmide/10603594',
10
10
  parameters: { id: '播客 id,可以从播客页面 URL 中找到' },
@@ -6,7 +6,7 @@ import { parseDate } from '@/utils/parse-date';
6
6
 
7
7
  export const route: Route = {
8
8
  path: '/information/:type?',
9
- categories: ['new-media', 'popular'],
9
+ categories: ['new-media'],
10
10
  example: '/aliresearch/information',
11
11
  parameters: { type: '类型,见下表,默认为新闻' },
12
12
  features: {
@@ -0,0 +1,61 @@
1
+ import { Route } from '@/types';
2
+ import ofetch from '@/utils/ofetch';
3
+ import { load } from 'cheerio';
4
+ import { parseDate } from '@/utils/parse-date';
5
+ export const route: Route = {
6
+ path: '/security-bulletin',
7
+ categories: ['program-update'],
8
+ example: '/android/security-bulletin',
9
+ parameters: {},
10
+ features: {
11
+ requireConfig: false,
12
+ requirePuppeteer: false,
13
+ antiCrawler: false,
14
+ supportBT: false,
15
+ supportPodcast: false,
16
+ supportScihub: false,
17
+ },
18
+ radar: [
19
+ {
20
+ source: ['source.android.com/docs/security/bulletin', 'source.android.com/docs/security/bulletin/asb-overview', 'source.android.com/'],
21
+ },
22
+ ],
23
+ name: 'Security Bulletins',
24
+ maintainers: ['TonyRL'],
25
+ handler,
26
+ url: 'source.android.com/docs/security/bulletin/asb-overview',
27
+ };
28
+
29
+ async function handler() {
30
+ const baseUrl = 'https://source.android.com';
31
+ const link = `${baseUrl}/docs/security/bulletin/asb-overview`;
32
+
33
+ const response = await ofetch(link, {
34
+ headers: {
35
+ Cookie: 'signin=autosignin; cookies_accepted=true; django_language=en;',
36
+ },
37
+ });
38
+
39
+ const $ = load(response);
40
+
41
+ const items = $('table tr')
42
+ .slice(1)
43
+ .toArray()
44
+ .map((item) => {
45
+ const $item = $(item);
46
+ const a = $item.find('td:nth-child(1) a');
47
+ return {
48
+ title: `Bulletin ${a.text()}`,
49
+ description: $item.find('td:nth-child(2)').html(),
50
+ link: `${baseUrl}${a.attr('href')}`,
51
+ pubDate: parseDate($item.find('td:nth-child(3)').text()),
52
+ };
53
+ });
54
+
55
+ return {
56
+ title: $('title').text(),
57
+ link,
58
+ image: $('link[rel="apple-touch-icon"]').attr('href'),
59
+ item: items,
60
+ };
61
+ }
@@ -0,0 +1,112 @@
1
+ import ofetch from '@/utils/ofetch';
2
+ import { load } from 'cheerio';
3
+ import cache from '@/utils/cache';
4
+ import { Route } from '@/types';
5
+ import pMap from 'p-map';
6
+ import { parseDate } from '@/utils/parse-date';
7
+
8
+ export const route: Route = {
9
+ path: '/research',
10
+ categories: ['programming'],
11
+ example: '/anthropic/research',
12
+ parameters: {},
13
+ radar: [
14
+ {
15
+ source: ['www.anthropic.com/research', 'www.anthropic.com'],
16
+ },
17
+ ],
18
+ name: 'Research',
19
+ maintainers: ['ttttmr'],
20
+ handler,
21
+ url: 'www.anthropic.com/research',
22
+ };
23
+
24
+ async function handler() {
25
+ const link = 'https://www.anthropic.com/research';
26
+ const response = await ofetch(link);
27
+ const $ = load(response);
28
+
29
+ // self.__next_f.push
30
+ const regexp = /self\.__next_f\.push\((.+)\)/;
31
+ const textList: string[] = [];
32
+ for (const e of $('script').toArray()) {
33
+ const $e = $(e);
34
+ const text = $e.text();
35
+ const match = regexp.exec(text);
36
+ if (match) {
37
+ let data;
38
+ try {
39
+ data = JSON.parse(match[1]);
40
+ if (Array.isArray(data) && data.length === 2 && data[0] === 1) {
41
+ textList.push(data[1]);
42
+ }
43
+ } catch {
44
+ // ignore
45
+ }
46
+ }
47
+ }
48
+
49
+ const partRegex = /^([0-9a-zA-Z]+):([0-9a-zA-Z]+)?(\[.*)$/;
50
+ const fd = textList
51
+ .join('')
52
+ .split('\n')
53
+ .map((d) => {
54
+ const matchPart = partRegex.exec(d);
55
+ if (matchPart) {
56
+ return {
57
+ id: matchPart[1],
58
+ tag: matchPart[2],
59
+ data: JSON.parse(matchPart[3]),
60
+ };
61
+ }
62
+ return {
63
+ id: '',
64
+ tag: '',
65
+ data: d,
66
+ };
67
+ });
68
+
69
+ const sections = fd.flatMap((d) => (Array.isArray(d.data) ? d.data : [])).flatMap((item) => item?.page?.sections ?? []);
70
+ const tabPages = sections.flatMap((section) => section?.tabPages ?? []).filter((tabPage) => tabPage?.label === 'Overview');
71
+ const publicationSections = tabPages.flatMap((tabPage) => tabPage.sections).filter((section) => section?.title === 'Publications');
72
+ const posts = publicationSections
73
+ .flatMap((section) => section?.posts ?? [])
74
+ .map((post) => ({
75
+ title: post.title,
76
+ link: `https://www.anthropic.com/research/${post.slug.current}`,
77
+ pubDate: parseDate(post.publishedOn),
78
+ }));
79
+
80
+ const items = await pMap(
81
+ posts,
82
+ (item) =>
83
+ cache.tryGet(item.link, async () => {
84
+ const response = await ofetch(item.link);
85
+ const $ = load(response);
86
+
87
+ const content = $('div[class*="PostDetail_post-detail__"]');
88
+ content.find('img').each((_, e) => {
89
+ const $e = $(e);
90
+ $e.removeAttr('style srcset');
91
+ const src = $e.attr('src');
92
+ const params = new URLSearchParams(src);
93
+ const newSrc = params.get('/_next/image?url');
94
+ if (newSrc) {
95
+ $e.attr('src', newSrc);
96
+ }
97
+ });
98
+
99
+ item.description = content.html();
100
+
101
+ return item;
102
+ }),
103
+ { concurrency: 5 }
104
+ );
105
+
106
+ return {
107
+ title: 'Anthropic Research',
108
+ link,
109
+ description: 'Latest research from Anthropic',
110
+ item: items,
111
+ };
112
+ }
@@ -1,3 +1,4 @@
1
+ import { routePath } from 'hono/route';
1
2
  import { Route, ViewType } from '@/types';
2
3
  import got from '@/utils/got';
3
4
  import { load } from 'cheerio';
@@ -37,7 +38,7 @@ export const route: Route = {
37
38
 
38
39
  async function handler(ctx) {
39
40
  const { topic = 'trending-news', nav = '' } = ctx.req.param();
40
- const useNav = ctx.req.routePath === '/apnews/nav/:nav{.*}?';
41
+ const useNav = routePath(ctx) === '/apnews/nav/:nav{.*}?';
41
42
  const url = useNav ? `${HOME_PAGE}/${nav}` : `${HOME_PAGE}/hub/${topic}`;
42
43
  const response = await got(url);
43
44
  const $ = load(response.data);
@@ -44,7 +44,7 @@ export function fetchArticle(item) {
44
44
  description: $('div.RichTextStoryBody').html() || $(':is(.VideoLead, .VideoPage-pageSubHeading)').html(),
45
45
  category: [...(section ? [section] : []), ...(ldjson.keywords ?? [])],
46
46
  guid: $("meta[name='brightspot.contentId']").attr('content'),
47
- author: ldjson.author,
47
+ author: ldjson.author?.map((e) => e.mainEntity),
48
48
  };
49
49
  } else {
50
50
  // Live