rsshub
Version:
Make RSS Great Again!
28 lines (27 loc) • 617 B
JavaScript
import { t as rofetch } from "./ofetch-W1aeTHCo.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 $ = load(await rofetch(rootUrl));
return {
title: "phrack",
link: rootUrl,
description: "phrack magazine",
item: [{
title: $("div[id=\"article\"]").text(),
description: $(".md-article-area").html(),
link: rootUrl
}]
};
}
//#endregion
export { route };