UNPKG

rsshub

Version:
45 lines (43 loc) 1.04 kB
import "./esm-shims-CzJ_djXG.mjs"; import "./config-C37vj7VH.mjs"; import "./dist-BInvbO1W.mjs"; import "./logger-Czu8UMNd.mjs"; import "./ofetch-BIyrKU3Y.mjs"; import "./helpers-DxBp0Pty.mjs"; import { t as got_default } from "./got-KxxWdaxq.mjs"; import { t as getItems } from "./items-processor-C6GOwMjo.mjs"; import { load } from "cheerio"; //#region lib/routes/publico/public.ts const route = { path: "/public", categories: ["traditional-media"], example: "/publico/public", features: { requireConfig: false, requirePuppeteer: true, antiCrawler: false, supportBT: false, supportPodcast: false, supportScihub: false }, radar: [{ source: ["publico.es/public"], target: "/public" }], name: "Public", maintainers: ["adrianrico97"], handler }; async function handler() { const currentUrl = `https://www.publico.es/public`; return { title: "public | Público", link: currentUrl, item: getItems(load((await got_default({ method: "get", url: currentUrl })).data)) }; } //#endregion export { route };