UNPKG

rsshub

Version:
37 lines (35 loc) 997 B
import "./dist-Bog6z_OM.mjs"; import "./config-MQ-7ebJ_.mjs"; import "./logger-C4avouvV.mjs"; import "./ofetch-DKl_Ma9g.mjs"; import "./helpers-Bo4JQYdN.mjs"; import { t as got_default } from "./got-CO-ndVl2.mjs"; import { load } from "cheerio"; //#region lib/routes/thepaper/839studio/studio.ts const route = { path: "/839studio", name: "澎湃美数课作品集", maintainers: ["umm233"], handler }; async function handler() { const data = (await got_default({ method: "get", url: "http://projects.thepaper.cn/thepaper-cases/839studio/?lang=zh" })).data; const $ = load(data); return { title: "澎湃美数课作品集", link: "http://projects.thepaper.cn/thepaper-cases/839studio/", item: $("div[class=imgtext]").toArray().map((item) => { item = $(item); return { title: item.find(".imgup a").first().text(), description: `描述:${item.find(".imgdown p").text()}`, link: item.find(".imgup a").attr("href") }; }) }; } //#endregion export { route };