UNPKG

rsshub

Version:
38 lines (36 loc) 1.01 kB
import "./esm-shims-CzJ_djXG.mjs"; import "./config-C37vj7VH.mjs"; import "./dist-BInvbO1W.mjs"; import "./logger-Czu8UMNd.mjs"; import { t as ofetch_default } from "./ofetch-BIyrKU3Y.mjs"; import * as cheerio from "cheerio"; //#region lib/routes/psnine/shuzhe.ts const handler = async () => { const response = await ofetch_default("https://www.psnine.com/dd"); const $ = cheerio.load(response); const out = $(".dd_ul li").toArray().map((item) => { const $item = $(item); return { title: $item.find(".dd_title").text(), link: $item.find(".dd_title a").attr("href"), description: $item.find(".dd_status").text(), author: $item.find(".meta a").text() }; }); return { title: $("head title").text(), link: "https://www.psnine.com/", item: out }; }; const route = { path: "/shuzhe", categories: ["game"], example: "/psnine/shuzhe", name: "数折", maintainers: ["betta-cyber"], handler, radar: [{ source: ["psnine.com/dd", "psnine.com"] }] }; //#endregion export { route };