UNPKG

rsshub

Version:
40 lines (39 loc) 915 B
import { t as got_default } from "./got-DUpa1V3-.mjs"; import { t as getItems } from "./items-processor-CQcOY18x.mjs"; import { load } from "cheerio"; //#region lib/routes/publico/tremending.ts const route = { path: "/tremending", categories: ["traditional-media"], example: "/publico/tremending", features: { requireConfig: false, requirePuppeteer: true, antiCrawler: false, supportBT: false, supportPodcast: false, supportScihub: false }, radar: [{ source: ["publico.es/tremending"], target: "/tremending" }], name: "Tremending", maintainers: ["adrianrico97"], handler }; async function handler() { const currentUrl = `https://www.publico.es/tremending`; const response = await got_default({ method: "get", url: currentUrl }); const $ = load(response.data); return { title: "Tremending | Público", link: currentUrl, item: getItems($) }; } //#endregion export { route };