UNPKG

rsshub

Version:
29 lines (28 loc) 637 B
import { t as rofetch } from "./ofetch-U0CdpE2g.mjs"; import { load } from "cheerio"; //#region lib/routes/phrack/index.ts const route = { path: "/", categories: ["blog"], example: "/phrack", name: "Article", maintainers: ["CitrusIce"], handler }; async function handler() { const rootUrl = "https://www.phrack.org/index_latest"; const data = await rofetch(rootUrl); const $ = load(data); return { title: "phrack", link: rootUrl, description: "phrack magazine", item: [{ title: $("div[id=\"article\"]").text(), description: $(".md-article-area").html(), link: rootUrl }] }; } //#endregion export { route };