UNPKG

rsshub

Version:
39 lines (37 loc) 1.08 kB
import "./dist-Bog6z_OM.mjs"; import "./config-MQ-7ebJ_.mjs"; import { t as ViewType } from "./types-gOySfSXJ.mjs"; import "./logger-C4avouvV.mjs"; import { t as ofetch_default } from "./ofetch-DKl_Ma9g.mjs"; import { load } from "cheerio"; //#region lib/routes/imhcg/blog.ts const route = { path: "/", categories: ["blog"], view: ViewType.Notifications, example: "/imhcg", parameters: {}, radar: [{ source: ["infos.imhcg.cn"] }], name: "Engineering blogs", maintainers: ["ZiHao256", "qzydustin"], handler, url: "infos.imhcg.cn" }; async function handler() { const $ = load(await ofetch_default("https://infos.imhcg.cn/")); return { title: `Engineering Blogs`, link: "https://infos.imhcg.cn/", item: $("li").toArray().map((item) => { return { title: $(item).find("a.article-title").text(), link: $(item).find("a.article-title").attr("href"), author: $(item).find("p.article-author").text(), time: $(item).find("p.article-time").text(), description: $(item).find("p.article-text").text() }; }) }; } //#endregion export { route };