UNPKG

rsshub

Version:
16 lines (15 loc) 600 B
import { t as parseDate } from "./parse-date-3kcy2Eau.mjs"; import { t as timezone } from "./timezone-UiMFOuvL.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(); const dateValue = $("div.detail_title_02 > h4 ").text(); info.pubDate = timezone(parseDate(dateValue), 8); info.description = $("div.detail_contect_01").html(); return info; }; //#endregion export { rootUrl as n, ProcessFeed as t };