UNPKG

rsshub

Version:
16 lines (14 loc) 585 B
import { t as parseDate } from "./parse-date-r5WDWHno.mjs"; import { t as timezone } from "./timezone-CA9Huotp.mjs"; import { load } from "cheerio"; //#region lib/routes/p-articles/utils.ts const rootUrl = "https://p-articles.com"; const ProcessFeed = (info, data) => { const $ = load(data); info.author = $("div.detail_title_02 > h4 > a:nth-child(2)").text().trim(); info.pubDate = timezone(parseDate($("div.detail_title_02 > h4 ").text().trim()), 8); info.description = $("div.detail_contect_01").html(); return info; }; //#endregion export { rootUrl as n, ProcessFeed as t };