rsshub 1.0.0-master.ff3a9ce → 1.0.0-master.ff3ea5a

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.

Potentially problematic release.


This version of rsshub might be problematic. Click here for more details.

Files changed (388) hide show
  1. package/lib/config.ts +38 -0
  2. package/lib/errors/index.tsx +3 -2
  3. package/lib/middleware/debug.ts +6 -4
  4. package/lib/middleware/header.ts +4 -2
  5. package/lib/registry.test.ts +24 -1
  6. package/lib/registry.ts +40 -11
  7. package/lib/router.js +1 -1
  8. package/lib/routes/121/namespace.ts +9 -0
  9. package/lib/routes/121/templates/description.art +17 -0
  10. package/lib/routes/121/weather-live.ts +104 -0
  11. package/lib/routes/141jav/index.ts +3 -0
  12. package/lib/routes/141ppv/index.ts +3 -0
  13. package/lib/routes/163/news/rank.ts +1 -1
  14. package/lib/routes/18comic/album.ts +59 -64
  15. package/lib/routes/18comic/index.ts +1 -0
  16. package/lib/routes/18comic/search.ts +53 -4
  17. package/lib/routes/18comic/utils.ts +70 -1
  18. package/lib/routes/2048/index.ts +1 -0
  19. package/lib/routes/30secondsofcode/utils.ts +0 -1
  20. package/lib/routes/6park/index.ts +1 -1
  21. package/lib/routes/7mmtv/index.ts +1 -0
  22. package/lib/routes/91porn/index.ts +1 -0
  23. package/lib/routes/95mm/tab.ts +1 -0
  24. package/lib/routes/agefans/detail.ts +1 -1
  25. package/lib/routes/aliyun/database-month.ts +1 -1
  26. package/lib/routes/anthropic/research.ts +112 -0
  27. package/lib/routes/apnews/topics.ts +2 -1
  28. package/lib/routes/apnews/utils.ts +1 -1
  29. package/lib/routes/apple/design.ts +54 -0
  30. package/lib/routes/apple/namespace.ts +1 -1
  31. package/lib/routes/aqara/post.ts +1 -1
  32. package/lib/routes/augmentcode/blog.ts +161 -0
  33. package/lib/routes/augmentcode/namespace.ts +9 -0
  34. package/lib/routes/augmentcode/templates/description.art +17 -0
  35. package/lib/routes/azul/namespace.ts +9 -0
  36. package/lib/routes/azul/packages.ts +105 -0
  37. package/lib/routes/banshujiang/index.ts +763 -0
  38. package/lib/routes/banshujiang/namespace.ts +9 -0
  39. package/lib/routes/banshujiang/templates/description.art +17 -0
  40. package/lib/routes/bfl/announcements.ts +1 -1
  41. package/lib/routes/bilibili/cache.ts +78 -0
  42. package/lib/routes/bilibili/danmaku.ts +1 -1
  43. package/lib/routes/bilibili/dynamic.ts +8 -2
  44. package/lib/routes/bilibili/video.ts +31 -73
  45. package/lib/routes/biquge/index.ts +1 -1
  46. package/lib/routes/bsky/keyword.ts +15 -10
  47. package/lib/routes/capitalmind/insights.ts +40 -0
  48. package/lib/routes/capitalmind/namespace.ts +8 -0
  49. package/lib/routes/capitalmind/podcasts.ts +41 -0
  50. package/lib/routes/capitalmind/utils.ts +122 -0
  51. package/lib/routes/cartoonmad/comic.ts +1 -1
  52. package/lib/routes/chikubi/index.ts +1 -0
  53. package/lib/routes/chikubi/tag.ts +1 -0
  54. package/lib/routes/chocolatey/namespace.ts +9 -0
  55. package/lib/routes/chocolatey/packages.ts +122 -0
  56. package/lib/routes/cmde/index.ts +1 -1
  57. package/lib/routes/cockroachlabs/blog.ts +113 -0
  58. package/lib/routes/cockroachlabs/namespace.ts +7 -0
  59. package/lib/routes/cool18/index.ts +4 -1
  60. package/lib/routes/coomer/index.ts +12 -6
  61. package/lib/routes/coomer/namespace.ts +1 -1
  62. package/lib/routes/copymanga/comic.ts +7 -9
  63. package/lib/routes/css-tricks/articles.ts +48 -0
  64. package/lib/routes/css-tricks/collections.ts +62 -0
  65. package/lib/routes/css-tricks/namespace.ts +8 -0
  66. package/lib/routes/css-tricks/popular.ts +39 -0
  67. package/lib/routes/css-tricks/utils.ts +103 -0
  68. package/lib/routes/cursor/changelog.ts +26 -17
  69. package/lib/routes/cursor/namespace.ts +1 -1
  70. package/lib/routes/cw/utils.ts +6 -13
  71. package/lib/routes/dealstreetasia/home.ts +1 -1
  72. package/lib/routes/dedao/index.ts +3 -3
  73. package/lib/routes/deepl/blog.ts +422 -0
  74. package/lib/routes/deepl/namespace.ts +9 -0
  75. package/lib/routes/deepl/templates/description.art +21 -0
  76. package/lib/routes/deeplearning/the-batch.ts +1 -1
  77. package/lib/routes/dev.to/guides.ts +100 -0
  78. package/lib/routes/dev.to/namespace.ts +8 -0
  79. package/lib/routes/dev.to/top.ts +105 -0
  80. package/lib/routes/dgut/jwb.ts +73 -0
  81. package/lib/routes/dgut/namespace.ts +9 -0
  82. package/lib/routes/digitalpolicyalert/activity-tracker.ts +135 -0
  83. package/lib/routes/digitalpolicyalert/namespace.ts +9 -0
  84. package/lib/routes/dnaindia/common.ts +26 -8
  85. package/lib/routes/douban/other/list.ts +3 -3
  86. package/lib/routes/e-hentai/index.ts +4 -1
  87. package/lib/routes/ehentai/tag.ts +1 -0
  88. package/lib/routes/englishhome/index.ts +55 -0
  89. package/lib/routes/englishhome/namespace.ts +6 -0
  90. package/lib/routes/epicgames/index.ts +2 -2
  91. package/lib/routes/espn/news.ts +1 -1
  92. package/lib/routes/expats/czech-news.ts +272 -0
  93. package/lib/routes/expats/namespace.ts +9 -0
  94. package/lib/routes/fanbox/index.ts +1 -0
  95. package/lib/routes/fanbox/utils.ts +1 -1
  96. package/lib/routes/fansly/tag.ts +1 -0
  97. package/lib/routes/fantia/search.ts +1 -1
  98. package/lib/routes/fantube/creator.ts +69 -0
  99. package/lib/routes/fantube/namespace.ts +7 -0
  100. package/lib/routes/fantube/templates/post.art +17 -0
  101. package/lib/routes/fantube/types.ts +100 -0
  102. package/lib/routes/fantube/utils.ts +268 -0
  103. package/lib/routes/follow/profile.ts +1 -1
  104. package/lib/routes/followin/news.ts +1 -1
  105. package/lib/routes/foresightnews/util.ts +1 -1
  106. package/lib/routes/freexcomic/book.ts +4 -1
  107. package/lib/routes/gamer/hot.ts +5 -5
  108. package/lib/routes/gaoyu/blog.ts +145 -0
  109. package/lib/routes/gaoyu/namespace.ts +9 -0
  110. package/lib/routes/gaoyu/templates/description.art +7 -0
  111. package/lib/routes/geocaching/blogs.ts +2 -2
  112. package/lib/routes/github/namespace.ts +1 -1
  113. package/lib/routes/github/private-feed.ts +229 -0
  114. package/lib/routes/github/star.ts +1 -1
  115. package/lib/routes/google/extension.ts +9 -10
  116. package/lib/routes/gov/beijing/bphc/index.ts +1 -1
  117. package/lib/routes/gov/ccdi/index.ts +1 -1
  118. package/lib/routes/gov/chongqing/sydwgkzp.ts +22 -6
  119. package/lib/routes/gov/customs/list.ts +1 -1
  120. package/lib/routes/gov/general/general.ts +1 -1
  121. package/lib/routes/gov/hangzhou/zwfw.ts +1 -1
  122. package/lib/routes/gov/pbc/goutongjiaoliu.ts +1 -1
  123. package/lib/routes/gov/shenzhen/szlh/index.ts +77 -0
  124. package/lib/routes/gov/shenzhen/szlh/namespace.ts +8 -0
  125. package/lib/routes/grist/utils.ts +5 -4
  126. package/lib/routes/hanime1/search.ts +4 -2
  127. package/lib/routes/hellogithub/report.ts +1 -1
  128. package/lib/routes/hit/hitgs.ts +240 -54
  129. package/lib/routes/hit/templates/description.art +7 -0
  130. package/lib/routes/hlju/namespace.ts +8 -0
  131. package/lib/routes/hlju/news.ts +141 -0
  132. package/lib/routes/hostmonit/cloudflareyes.ts +1 -1
  133. package/lib/routes/hotukdeals/index.ts +1 -1
  134. package/lib/routes/hyperdash/namespace.ts +7 -0
  135. package/lib/routes/hyperdash/templates/description.art +34 -0
  136. package/lib/routes/hyperdash/top-traders.ts +84 -0
  137. package/lib/routes/hyperdash/utils.ts +49 -0
  138. package/lib/routes/hypergryph/arknights/announce.ts +1 -1
  139. package/lib/routes/ielts/index.ts +1 -1
  140. package/lib/routes/infoq/topic.ts +16 -13
  141. package/lib/routes/instagram/web-api/index.ts +17 -13
  142. package/lib/routes/instagram/web-api/utils.ts +46 -63
  143. package/lib/routes/jamesclear/book-summaries.ts +40 -0
  144. package/lib/routes/jamesclear/great-speeches.ts +40 -0
  145. package/lib/routes/jamesclear/namespace.ts +8 -0
  146. package/lib/routes/jamesclear/quotes.ts +40 -0
  147. package/lib/routes/jamesclear/three-two-one.ts +41 -0
  148. package/lib/routes/jamesclear/utils.ts +22 -0
  149. package/lib/routes/japanpost/utils.ts +2 -2
  150. package/lib/routes/javbus/index.ts +3 -0
  151. package/lib/routes/javdb/tags.ts +1 -0
  152. package/lib/routes/javlibrary/star.ts +1 -0
  153. package/lib/routes/javtiful/actress.ts +3 -0
  154. package/lib/routes/javtiful/channel.ts +3 -0
  155. package/lib/routes/javtrailers/casts.ts +3 -0
  156. package/lib/routes/jetbrains/comments.ts +99 -0
  157. package/lib/routes/jetbrains/namespace.ts +8 -0
  158. package/lib/routes/jimmyspa/books.ts +1 -1
  159. package/lib/routes/jimmyspa/news.ts +1 -1
  160. package/lib/routes/jpxgmn/tab.ts +3 -0
  161. package/lib/routes/kakuyomu/works.ts +3 -0
  162. package/lib/routes/kaopu/news.ts +1 -1
  163. package/lib/routes/kemono/const.ts +1 -1
  164. package/lib/routes/kemono/index.ts +12 -11
  165. package/lib/routes/kemono/namespace.ts +1 -1
  166. package/lib/routes/kiro/blog.ts +131 -0
  167. package/lib/routes/kiro/changelog.ts +128 -0
  168. package/lib/routes/kiro/namespace.ts +9 -0
  169. package/lib/routes/konachan/post.ts +3 -0
  170. package/lib/routes/kovidgoyal/kitty/changelog.ts +83 -0
  171. package/lib/routes/kovidgoyal/namespace.ts +7 -0
  172. package/lib/routes/kunchengblog/essay.ts +1 -1
  173. package/lib/routes/landiannews/category.ts +1 -1
  174. package/lib/routes/landiannews/index.ts +1 -1
  175. package/lib/routes/landiannews/tag.ts +1 -1
  176. package/lib/routes/line/utils.ts +1 -1
  177. package/lib/routes/lineageos/changes.ts +79 -0
  178. package/lib/routes/lineageos/namespace.ts +9 -0
  179. package/lib/routes/linkedin/cn/renderer.ts +1 -1
  180. package/lib/routes/liquipedia/cs-matches.ts +42 -14
  181. package/lib/routes/literotica/new.ts +1 -0
  182. package/lib/routes/lofter/tag.ts +27 -3
  183. package/lib/routes/makerworld/contest.ts +51 -0
  184. package/lib/routes/makerworld/namespace.ts +7 -0
  185. package/lib/routes/makerworld/trending.ts +45 -0
  186. package/lib/routes/makerworld/user-upload.ts +54 -0
  187. package/lib/routes/makerworld/utils.ts +18 -0
  188. package/lib/routes/manhuagui/comic.ts +1 -1
  189. package/lib/routes/manus/blog.ts +77 -0
  190. package/lib/routes/manus/namespace.ts +7 -0
  191. package/lib/routes/mastodon/tag.ts +48 -0
  192. package/lib/routes/mathpix/blog.ts +155 -0
  193. package/lib/routes/mathpix/namespace.ts +9 -0
  194. package/lib/routes/mathpix/templates/description.art +21 -0
  195. package/lib/routes/mckinsey/cn/category-map.ts +9 -15
  196. package/lib/routes/mckinsey/cn/index.ts +77 -40
  197. package/lib/routes/melonbooks/search.ts +1 -0
  198. package/lib/routes/metacritic/index.ts +2 -2
  199. package/lib/routes/meteoblue/namespace.ts +8 -0
  200. package/lib/routes/meteoblue/weathernews.ts +75 -0
  201. package/lib/routes/meteor/index.ts +1 -1
  202. package/lib/routes/microsoft/addon.ts +7 -9
  203. package/lib/routes/mihoyo/zzz/news.ts +106 -0
  204. package/lib/routes/missav/new.ts +2 -1
  205. package/lib/routes/mit/hanlab.ts +61 -0
  206. package/lib/routes/mit/namespace.ts +6 -0
  207. package/lib/routes/mittrchina/index.ts +3 -3
  208. package/lib/routes/mixcloud/config.ts +129 -0
  209. package/lib/routes/mixcloud/index.ts +163 -107
  210. package/lib/routes/mixcloud/user-playlist.ts +31 -0
  211. package/lib/routes/mixi2/community.ts +72 -0
  212. package/lib/routes/mixi2/discovery.ts +52 -0
  213. package/lib/routes/mixi2/home.ts +51 -0
  214. package/lib/routes/mixi2/namespace.ts +8 -0
  215. package/lib/routes/mixi2/user.ts +77 -0
  216. package/lib/routes/mixi2/utils.ts +56 -0
  217. package/lib/routes/modelscope/learn.ts +94 -0
  218. package/lib/routes/moodysmismicrosite/report.ts +1 -1
  219. package/lib/routes/musify/index.ts +130 -0
  220. package/lib/routes/musify/namespace.ts +9 -0
  221. package/lib/routes/musikguru/namespace.ts +9 -0
  222. package/lib/routes/musikguru/news.ts +146 -0
  223. package/lib/routes/musikguru/templates/description.art +21 -0
  224. package/lib/routes/myfans/post.ts +1 -0
  225. package/lib/routes/nankai/cc-notice.ts +114 -0
  226. package/lib/routes/nankai/jwc.ts +131 -0
  227. package/lib/routes/nankai/namespace.ts +7 -0
  228. package/lib/routes/nankai/notice.ts +84 -0
  229. package/lib/routes/nankai/yzb.ts +97 -0
  230. package/lib/routes/neu/yz.ts +172 -0
  231. package/lib/routes/newslaundry/explainer.ts +30 -0
  232. package/lib/routes/newslaundry/namespace.ts +8 -0
  233. package/lib/routes/newslaundry/nl-cheatsheet.ts +30 -0
  234. package/lib/routes/newslaundry/nl-collaborations.ts +30 -0
  235. package/lib/routes/newslaundry/podcast.ts +61 -0
  236. package/lib/routes/newslaundry/reports.ts +30 -0
  237. package/lib/routes/newslaundry/shot.ts +30 -0
  238. package/lib/routes/newslaundry/subscriber-only.ts +30 -0
  239. package/lib/routes/newslaundry/templates/description.art +28 -0
  240. package/lib/routes/newslaundry/utils.ts +108 -0
  241. package/lib/routes/newswav/latest.ts +100 -0
  242. package/lib/routes/newswav/namespace.ts +7 -0
  243. package/lib/routes/nhentai/index.ts +1 -0
  244. package/lib/routes/nifd/research.ts +16 -0
  245. package/lib/routes/nio/namespace.ts +9 -0
  246. package/lib/routes/nio/nioradio.ts +75 -0
  247. package/lib/routes/njust/cs.ts +58 -0
  248. package/lib/routes/njust/utils.ts +1 -1
  249. package/lib/routes/ntdm/video.ts +1 -1
  250. package/lib/routes/nuaa/utils/pypasswaf.ts +1 -1
  251. package/lib/routes/oilchem/index.ts +1 -1
  252. package/lib/routes/oncc/money18.ts +1 -1
  253. package/lib/routes/openai/cookbook.ts +1 -1
  254. package/lib/routes/paulgraham/article.ts +2 -2
  255. package/lib/routes/picuki/profile.ts +4 -0
  256. package/lib/routes/pixiv/bookmarks.ts +1 -1
  257. package/lib/routes/pixiv/novel-api/series/sfw.ts +1 -1
  258. package/lib/routes/pixiv/novels.ts +2 -2
  259. package/lib/routes/pixiv/user.ts +1 -1
  260. package/lib/routes/playno1/av.ts +1 -0
  261. package/lib/routes/pornhub/model.ts +3 -7
  262. package/lib/routes/pornhub/pornstar.ts +2 -7
  263. package/lib/routes/pornhub/users.ts +2 -7
  264. package/lib/routes/pornhub/utils.ts +12 -1
  265. package/lib/routes/qingting/podcast.ts +2 -1
  266. package/lib/routes/qipamaijia/index.ts +1 -0
  267. package/lib/routes/questmobile/report.ts +1 -1
  268. package/lib/routes/railway/index.ts +73 -0
  269. package/lib/routes/railway/namespace.ts +8 -0
  270. package/lib/routes/reuters/common.ts +0 -3
  271. package/lib/routes/rockthejvm/articles.ts +167 -0
  272. package/lib/routes/rockthejvm/namespace.ts +9 -0
  273. package/lib/routes/rockthejvm/templates/description.art +7 -0
  274. package/lib/routes/samrdprc/namespace.ts +7 -0
  275. package/lib/routes/samrdprc/news.ts +79 -0
  276. package/lib/routes/sankei/namespace.ts +7 -0
  277. package/lib/routes/sankei/news.ts +68 -0
  278. package/lib/routes/sankei/topics.ts +71 -0
  279. package/lib/routes/sciencenet/user.ts +1 -1
  280. package/lib/routes/scoop/apps.ts +188 -0
  281. package/lib/routes/scoop/namespace.ts +9 -0
  282. package/lib/routes/scoop/templates/description.art +56 -0
  283. package/lib/routes/scpta/namespace.ts +8 -0
  284. package/lib/routes/scpta/news.ts +101 -0
  285. package/lib/routes/seekingalpha/index.ts +1 -1
  286. package/lib/routes/sehuatang/index.ts +29 -31
  287. package/lib/routes/setn/index.ts +11 -2
  288. package/lib/routes/seu/cyber/index.ts +78 -0
  289. package/lib/routes/sicau/jiaowu.ts +42 -34
  290. package/lib/routes/sis001/forum.ts +1 -0
  291. package/lib/routes/sjtu/seiee/icisee.ts +67 -0
  292. package/lib/routes/sketis/isabelle-dev/blog/index.ts +1 -1
  293. package/lib/routes/smartlink/index.ts +13 -3
  294. package/lib/routes/sohu/mp.ts +17 -6
  295. package/lib/routes/sotwe/namespace.ts +1 -0
  296. package/lib/routes/sotwe/user.ts +98 -0
  297. package/lib/routes/spankbang/new-videos.ts +1 -0
  298. package/lib/routes/spglobal/ratings.ts +1 -1
  299. package/lib/routes/stanford/blog.ts +77 -0
  300. package/lib/routes/stanford/namespace.ts +7 -0
  301. package/lib/routes/syosetu/index.ts +1 -1
  302. package/lib/routes/t66y/index.ts +1 -0
  303. package/lib/routes/taobao/mysql.ts +157 -0
  304. package/lib/routes/taobao/namespace.ts +2 -2
  305. package/lib/routes/techcrunch/category.ts +48 -0
  306. package/lib/routes/telegram/channel.ts +2 -2
  307. package/lib/routes/tesla/cx.ts +1 -1
  308. package/lib/routes/test/index.ts +1 -1
  309. package/lib/routes/themoviedb/episodes.ts +1 -1
  310. package/lib/routes/thewirehindi/category.ts +78 -0
  311. package/lib/routes/thewirehindi/index.ts +43 -0
  312. package/lib/routes/thewirehindi/namespace.ts +7 -0
  313. package/lib/routes/thewirehindi/templates/description.art +9 -0
  314. package/lib/routes/thewirehindi/utils.ts +33 -0
  315. package/lib/routes/threads/utils.ts +2 -2
  316. package/lib/routes/tidb/blog.ts +314 -0
  317. package/lib/routes/tidb/namespace.ts +9 -0
  318. package/lib/routes/tumblr/namespace.ts +17 -0
  319. package/lib/routes/tumblr/posts.ts +74 -0
  320. package/lib/routes/tumblr/utils.ts +110 -0
  321. package/lib/routes/tver/namespace.ts +7 -0
  322. package/lib/routes/tver/series.ts +98 -0
  323. package/lib/routes/twitter/api/web-api/login.ts +1 -3
  324. package/lib/routes/twitter/api/web-api/utils.ts +23 -1
  325. package/lib/routes/twitter/utils.ts +21 -21
  326. package/lib/routes/udn/breaking-news.ts +2 -2
  327. package/lib/routes/uestc/auto.ts +1 -1
  328. package/lib/routes/uestc/cqe.ts +1 -1
  329. package/lib/routes/uestc/scse.ts +1 -1
  330. package/lib/routes/uestc/sice.ts +1 -1
  331. package/lib/routes/uestc/sise.ts +1 -1
  332. package/lib/routes/upc/jwc.ts +32 -46
  333. package/lib/routes/uptimerobot/rss.ts +1 -1
  334. package/lib/routes/visionias/daily-news-summary.ts +65 -0
  335. package/lib/routes/visionias/monthly-magazine.ts +68 -0
  336. package/lib/routes/visionias/news-today.ts +3 -13
  337. package/lib/routes/visionias/utils.ts +5 -5
  338. package/lib/routes/visionias/weekly-focus.ts +2 -2
  339. package/lib/routes/wdfxw/bookfree.ts +528 -0
  340. package/lib/routes/wdfxw/namespace.ts +8 -0
  341. package/lib/routes/wdfxw/templates/description.art +13 -0
  342. package/lib/routes/whu/swrh.ts +1 -1
  343. package/lib/routes/windsurf/blog.ts +118 -0
  344. package/lib/routes/windsurf/changelog.ts +100 -0
  345. package/lib/routes/windsurf/namespace.ts +9 -0
  346. package/lib/routes/windsurf/templates/description.art +21 -0
  347. package/lib/routes/x6d/index.ts +1 -1
  348. package/lib/routes/xbookcn/blog.ts +1 -0
  349. package/lib/routes/xiaohongshu/util.ts +1 -3
  350. package/lib/routes/xiaoyuzhou/pickup.ts +1 -1
  351. package/lib/routes/ximalaya/album.ts +32 -70
  352. package/lib/routes/ximalaya/types.ts +48 -0
  353. package/lib/routes/ximalaya/utils.ts +9 -7
  354. package/lib/routes/xmanhua/index.ts +1 -0
  355. package/lib/routes/xueqiu/cookies.ts +1 -1
  356. package/lib/routes/xueqiu/user.ts +1 -1
  357. package/lib/routes/xwenming/index.ts +184 -0
  358. package/lib/routes/xwenming/namespace.ts +9 -0
  359. package/lib/routes/yahoo/news/utils.ts +1 -1
  360. package/lib/routes/yande/post.ts +3 -0
  361. package/lib/routes/ymgal/game.ts +1 -0
  362. package/lib/routes/youtube/api/google.ts +27 -0
  363. package/lib/routes/youtube/api/youtubei.ts +70 -20
  364. package/lib/routes/youtube/community.ts +3 -1
  365. package/lib/routes/youtube/utils.ts +16 -14
  366. package/lib/routes/zaobao/util.ts +8 -5
  367. package/lib/routes/zhihu/activities.ts +3 -0
  368. package/lib/routes/zhihu/execlib/x-zse-96-v3.ts +5 -5
  369. package/lib/routes/zhizhuan100/namespace.ts +7 -0
  370. package/lib/routes/zhizhuan100/report.ts +79 -0
  371. package/lib/routes/zimuxia/portfolio.ts +1 -1
  372. package/lib/routes/zju/sis/index.ts +161 -0
  373. package/lib/server.ts +5 -0
  374. package/lib/types.ts +58 -54
  375. package/lib/utils/helpers.ts +1 -1
  376. package/lib/utils/logger.ts +1 -1
  377. package/lib/utils/proxy/index.ts +102 -18
  378. package/lib/utils/proxy/multi-proxy.ts +139 -0
  379. package/lib/utils/proxy/unify-proxy.ts +3 -1
  380. package/lib/utils/puppeteer-utils.test.ts +1 -1
  381. package/lib/utils/puppeteer.test.ts +14 -27
  382. package/lib/utils/puppeteer.ts +51 -37
  383. package/lib/utils/readable-social.test.ts +65 -0
  384. package/lib/utils/readable-social.ts +15 -1
  385. package/lib/utils/request-rewriter/fetch.ts +42 -4
  386. package/package.json +54 -56
  387. package/lib/routes/mixcloud/queries.ts +0 -2274
  388. package/lib/routes-deprecated/dev.to/top.js +0 -40
@@ -1,5 +1,9 @@
1
1
  import { Route } from '@/types';
2
- import { defaultDomain, getRootUrl, ProcessItems } from './utils';
2
+ import { apiMapCategory, defaultDomain, getApiUrl, getRootUrl, processApiItems } from './utils';
3
+ import { parseDate } from '@/utils/parse-date';
4
+ import { art } from '@/utils/render';
5
+ import path from 'node:path';
6
+ import cache from '@/utils/cache';
3
7
 
4
8
  export const route: Route = {
5
9
  path: '/search/:option?/:category?/:keyword?/:time?/:order?',
@@ -40,11 +44,56 @@ async function handler(ctx) {
40
44
  const category = ctx.req.param('category') ?? 'all';
41
45
  const keyword = ctx.req.param('keyword') ?? '';
42
46
  const time = ctx.req.param('time') ?? 'a';
43
- const order = ctx.req.param('order') ?? 'mr';
44
47
  const { domain = defaultDomain } = ctx.req.query();
45
48
  const rootUrl = getRootUrl(domain);
46
-
49
+ let order = ctx.req.param('order') ?? 'mr';
47
50
  const currentUrl = `${rootUrl}/search/${option}${category === 'all' ? '' : `/${category}`}${keyword ? `?search_query=${keyword}` : '?'}${time === 'a' ? '' : `&t=${time}`}${order === 'mr' ? '' : `&o=${order}`}`;
51
+ const limit = ctx.req.query('limit') ? Number.parseInt(ctx.req.query('limit')) : 20;
52
+
53
+ let apiUrl = getApiUrl();
54
+ order = time === 'a' ? order : `${order}_${time}`;
55
+ apiUrl = `${apiUrl}/search?search_query=${keyword}&o=${order}`;
56
+ let apiResult = await processApiItems(apiUrl);
57
+ let filteredItemsByCategory = apiResult.content;
58
+ // Filter items by category if not 'all'
59
+ if (category !== 'all') {
60
+ filteredItemsByCategory = apiResult.content.filter((item) => item.category.title === apiMapCategory(category));
61
+ }
62
+ filteredItemsByCategory = filteredItemsByCategory.slice(0, limit);
63
+ const results = await Promise.all(
64
+ filteredItemsByCategory.map((item) =>
65
+ cache.tryGet(`18comic:search:${item.id}`, async () => {
66
+ const result = {};
67
+ result.title = item.name;
68
+ result.link = `${rootUrl}/album/${item.id}`;
69
+ result.guid = `18comic:/album/${item.id}`;
70
+ result.updated = parseDate(item.update_at);
71
+ apiUrl = `${getApiUrl()}/album?id=${item.id}`;
72
+ apiResult = await processApiItems(apiUrl);
73
+ result.pubDate = new Date(apiResult.addtime * 1000);
74
+ result.category = apiResult.tags.map((tag) => tag);
75
+ result.author = apiResult.author.map((a) => a).join(', ');
76
+ result.description = art(path.join(__dirname, 'templates/description.art'), {
77
+ introduction: apiResult.description,
78
+ images: [
79
+ `https://cdn-msp3.${domain}/media/albums/${item.id}_3x4.jpg`,
80
+ // 取得的预览图片会被分割排序,所以先只取封面图
81
+ // `https://cdn-msp3.${domain}/media/photos/${item.id}/00001.webp`,
82
+ // `https://cdn-msp3.${domain}/media/photos/${item.id}/00002.webp`,
83
+ // `https://cdn-msp3.${domain}/media/photos/${item.id}/00003.webp`,
84
+ ],
85
+ cover: `https://cdn-msp3.${domain}/media/albums/${item.id}_3x4.jpg`,
86
+ category: result.category,
87
+ });
88
+ return result;
89
+ })
90
+ )
91
+ );
48
92
 
49
- return await ProcessItems(ctx, currentUrl, rootUrl);
93
+ return {
94
+ title: `Search Results For '${keyword}' - 禁漫天堂`,
95
+ link: currentUrl.replace(/\?$/, ''),
96
+ item: results,
97
+ allowEmpty: true,
98
+ };
50
99
  }
@@ -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 };
@@ -20,6 +20,7 @@ export const route: Route = {
20
20
  supportBT: true,
21
21
  supportPodcast: false,
22
22
  supportScihub: false,
23
+ nsfw: true,
23
24
  },
24
25
  name: '论坛',
25
26
  maintainers: ['nczitzk'],
@@ -48,7 +48,6 @@ async function processItem({ link: articleLink, date }) {
48
48
  category: tags,
49
49
  image: `${rootUrl}${image}`,
50
50
  banner: `${rootUrl}${image}`,
51
- language: 'en-us',
52
51
  } as DataItem;
53
52
  });
54
53
  }
@@ -32,7 +32,7 @@ async function handler(ctx) {
32
32
 
33
33
  const rootUrl = 'https://club.6parkbbs.com';
34
34
  const indexUrl = `${rootUrl}/${id}/index.php`;
35
- const currentUrl = `${indexUrl}${type === '' || keyword === '' ? '' : (type === 'gold' ? '?app=forum&act=gold' : `?action=search&act=threadsearch&app=forum&${type}=${keyword}&submit=${type === 'type' ? '查询' : '栏目搜索'}`)}`;
35
+ const currentUrl = `${indexUrl}${type === '' || keyword === '' ? '' : type === 'gold' ? '?app=forum&act=gold' : `?action=search&act=threadsearch&app=forum&${type}=${keyword}&submit=${type === 'type' ? '查询' : '栏目搜索'}`}`;
36
36
 
37
37
  const response = await got({
38
38
  method: 'get',
@@ -19,6 +19,7 @@ export const route: Route = {
19
19
  supportBT: false,
20
20
  supportPodcast: false,
21
21
  supportScihub: false,
22
+ nsfw: true,
22
23
  },
23
24
  name: 'Category',
24
25
  maintainers: ['nczitzk'],
@@ -20,6 +20,7 @@ export const route: Route = {
20
20
  supportBT: false,
21
21
  supportPodcast: false,
22
22
  supportScihub: false,
23
+ nsfw: true,
23
24
  },
24
25
  radar: [
25
26
  {
@@ -13,6 +13,7 @@ export const route: Route = {
13
13
  supportBT: false,
14
14
  supportPodcast: false,
15
15
  supportScihub: false,
16
+ nsfw: true,
16
17
  },
17
18
  radar: [
18
19
  {
@@ -44,7 +44,7 @@ async function handler(ctx) {
44
44
  link: a.attr('href').replace('http://', 'https://'),
45
45
  };
46
46
  })
47
- .reverse();
47
+ .toReversed();
48
48
 
49
49
  return {
50
50
  title: `AGE动漫 - ${ldJson.name}`,
@@ -61,6 +61,6 @@ async function handler() {
61
61
  return {
62
62
  title: $('title').text(),
63
63
  link: url,
64
- item: result.reverse(),
64
+ item: result.toReversed(),
65
65
  };
66
66
  }
@@ -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
@@ -0,0 +1,54 @@
1
+ import { Route } from '@/types';
2
+ import { parseDate } from '@/utils/parse-date';
3
+ import ofetch from '@/utils/ofetch';
4
+ import md5 from '@/utils/md5';
5
+ import { load } from 'cheerio';
6
+
7
+ export const route: Route = {
8
+ categories: ['design'],
9
+ example: '/apple/design',
10
+ handler,
11
+ maintainers: ['jean-jacket'],
12
+ name: 'Design updates',
13
+ path: '/design',
14
+ url: 'developer.apple.com/design/whats-new/',
15
+ };
16
+
17
+ async function handler() {
18
+ const LINK = 'https://developer.apple.com/design/whats-new/';
19
+
20
+ const response = await ofetch(LINK);
21
+ const $ = load(response);
22
+
23
+ const items = $('table')
24
+ .toArray()
25
+ .flatMap((item) => {
26
+ const table = $(item);
27
+ const date = table.find('.date').first().text();
28
+
29
+ return table
30
+ .find('.topic-item')
31
+ .toArray()
32
+ .map((row) => {
33
+ const update = $(row);
34
+ const titleTag = update.find('span.topic-title a');
35
+ const title = titleTag.text();
36
+ const link = `https://developer.apple.com${titleTag.attr('href')}`;
37
+ const description = update.find('span.description').text();
38
+
39
+ return {
40
+ description,
41
+ guid: md5(`${title}${description}${date}`),
42
+ link,
43
+ pubDate: parseDate(date),
44
+ title,
45
+ };
46
+ });
47
+ });
48
+
49
+ return {
50
+ item: items,
51
+ link: LINK,
52
+ title: 'Apple design updates',
53
+ };
54
+ }
@@ -2,6 +2,6 @@ import type { Namespace } from '@/types';
2
2
 
3
3
  export const namespace: Namespace = {
4
4
  name: 'Apple',
5
- url: 'apps.apple.com',
5
+ url: 'apple.com',
6
6
  lang: 'en',
7
7
  };
@@ -29,7 +29,7 @@ async function handler(ctx) {
29
29
 
30
30
  if (filterMatches) {
31
31
  const filterRegion = filterMatches[1];
32
- const filterType = filterMatches[2] === 'tag' ? 'tags' : (filterMatches[2] === 'category' ? 'categories' : filterMatches[2]);
32
+ const filterType = filterMatches[2] === 'tag' ? 'tags' : filterMatches[2] === 'category' ? 'categories' : filterMatches[2];
33
33
  const filterKeyword = decodeURI(filterMatches[3].split('/').pop());
34
34
  const filterApiUrl = new URL(`${filterRegion}/${apiSlug}/${filterType}?search=${filterKeyword}`, rootUrl).href;
35
35
 
@@ -0,0 +1,161 @@
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 } from '@/utils/parse-date';
7
+
8
+ import { type CheerioAPI, type Cheerio, load } from 'cheerio';
9
+ import type { Element } from 'domhandler';
10
+ import { type Context } from 'hono';
11
+ import path from 'node:path';
12
+
13
+ export const handler = async (ctx: Context): Promise<Data> => {
14
+ const limit: number = Number.parseInt(ctx.req.query('limit') ?? '50', 10);
15
+
16
+ const baseUrl: string = 'https://augmentcode.com';
17
+ const targetUrl: string = new URL('blog', baseUrl).href;
18
+
19
+ const response = await ofetch(targetUrl);
20
+ const $: CheerioAPI = load(response);
21
+ const language = $('html').attr('lang') ?? 'en';
22
+
23
+ let items: DataItem[] = [];
24
+
25
+ items = $('div[data-slot="card"]')
26
+ .slice(0, limit)
27
+ .toArray()
28
+ .map((el): Element => {
29
+ const $el: Cheerio<Element> = $(el);
30
+
31
+ const title: string = $el.find('div[data-slot="card-content"]').text();
32
+ const pubDateStr: string | undefined = $el.find('div[data-slot="card-footer"] p').last().text();
33
+ const linkUrl: string | undefined = $el.parent().attr('href');
34
+ const authorEls: Element[] = $el.find('div[data-slot="card-footer"] p').first().find('span').toArray();
35
+ const authors: DataItem['author'] = authorEls.map((authorEl) => {
36
+ const $authorEl: Cheerio<Element> = $(authorEl);
37
+
38
+ return {
39
+ name: $authorEl.contents().first().text(),
40
+ url: undefined,
41
+ avatar: undefined,
42
+ };
43
+ });
44
+ const image: string | undefined = $el.find('div[data-slot="card-header"] img').attr('src');
45
+ const upDatedStr: string | undefined = pubDateStr;
46
+
47
+ const processedItem: DataItem = {
48
+ title,
49
+ pubDate: pubDateStr ? parseDate(pubDateStr) : undefined,
50
+ link: linkUrl ? new URL(linkUrl, baseUrl).href : undefined,
51
+ author: authors,
52
+ image,
53
+ banner: image,
54
+ updated: upDatedStr ? parseDate(upDatedStr) : undefined,
55
+ language,
56
+ };
57
+
58
+ return processedItem;
59
+ });
60
+
61
+ items = await Promise.all(
62
+ items.map((item) => {
63
+ if (!item.link) {
64
+ return item;
65
+ }
66
+
67
+ return cache.tryGet(item.link, async (): Promise<DataItem> => {
68
+ const detailResponse = await ofetch(item.link);
69
+ const $$: CheerioAPI = load(detailResponse);
70
+
71
+ const title: string = $$('article h1').text();
72
+ const image: string | undefined = $$('meta[property="og:image"]').attr('content') ?? item.image;
73
+ const description: string | undefined = art(path.join(__dirname, 'templates/description.art'), {
74
+ images: image
75
+ ? [
76
+ {
77
+ src: image,
78
+ alt: title,
79
+ },
80
+ ]
81
+ : undefined,
82
+ description: $$('div.prose').html(),
83
+ });
84
+ const pubDateStr: string | undefined = $$('meta[property="article:published_time"]').attr('content');
85
+ const authorEls: Element[] = $$('meta[property="article:author"]').toArray();
86
+ const authors: DataItem['author'] = authorEls.map((authorEl) => {
87
+ const $$authorEl: Cheerio<Element> = $$(authorEl);
88
+
89
+ return {
90
+ name: $$authorEl.attr('content'),
91
+ url: undefined,
92
+ avatar: undefined,
93
+ };
94
+ });
95
+ const upDatedStr: string | undefined = pubDateStr;
96
+
97
+ const processedItem: DataItem = {
98
+ title,
99
+ description,
100
+ pubDate: pubDateStr ? parseDate(pubDateStr) : item.pubDate,
101
+ author: authors,
102
+ content: {
103
+ html: description,
104
+ text: description,
105
+ },
106
+ image,
107
+ banner: image,
108
+ updated: upDatedStr ? parseDate(upDatedStr) : item.updated,
109
+ language,
110
+ };
111
+
112
+ return {
113
+ ...item,
114
+ ...processedItem,
115
+ };
116
+ });
117
+ })
118
+ );
119
+
120
+ const title: string = $('title').text();
121
+
122
+ return {
123
+ title,
124
+ description: $('meta[name="description"]').attr('content'),
125
+ link: targetUrl,
126
+ item: items,
127
+ allowEmpty: true,
128
+ image: $('meta[property="og:image"]').attr('content'),
129
+ author: title.split(/-/).pop()?.trim(),
130
+ language,
131
+ id: targetUrl,
132
+ };
133
+ };
134
+
135
+ export const route: Route = {
136
+ path: '/blog',
137
+ name: 'Blog',
138
+ url: 'augmentcode.com',
139
+ maintainers: ['nczitzk'],
140
+ handler,
141
+ example: '/augmentcode/blog',
142
+ parameters: undefined,
143
+ description: undefined,
144
+ categories: ['programming'],
145
+ features: {
146
+ requireConfig: false,
147
+ requirePuppeteer: false,
148
+ antiCrawler: false,
149
+ supportRadar: true,
150
+ supportBT: false,
151
+ supportPodcast: false,
152
+ supportScihub: false,
153
+ },
154
+ radar: [
155
+ {
156
+ source: ['augmentcode.com/blog'],
157
+ target: '/blog',
158
+ },
159
+ ],
160
+ view: ViewType.Articles,
161
+ };
@@ -0,0 +1,9 @@
1
+ import type { Namespace } from '@/types';
2
+
3
+ export const namespace: Namespace = {
4
+ name: 'Augment Code',
5
+ url: 'augmentcode.com',
6
+ categories: ['programming'],
7
+ description: '',
8
+ lang: 'en',
9
+ };
@@ -0,0 +1,17 @@
1
+ {{ if images }}
2
+ {{ each images image }}
3
+ {{ if image?.src }}
4
+ <figure>
5
+ <img
6
+ {{ if image.alt }}
7
+ alt="{{ image.alt }}"
8
+ {{ /if }}
9
+ src="{{ image.src }}">
10
+ </figure>
11
+ {{ /if }}
12
+ {{ /each }}
13
+ {{ /if }}
14
+
15
+ {{ if description }}
16
+ {{@ description }}
17
+ {{ /if }}
@@ -0,0 +1,9 @@
1
+ import type { Namespace } from '@/types';
2
+
3
+ export const namespace: Namespace = {
4
+ name: 'Azul',
5
+ url: 'azul.com',
6
+ categories: ['programming'],
7
+ description: '',
8
+ lang: 'en',
9
+ };