rsshub
Version:
Make RSS Great Again!
33 lines (32 loc) • 908 B
JavaScript
import { t as got_default } from "./got-BTowW50G.mjs";
import { load } from "cheerio";
//#region lib/routes/thepaper/839studio/studio.ts
const route = {
path: "/839studio",
categories: ["traditional-media"],
example: "/thepaper/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) => {
const $item = $(item);
return {
title: $item.find(".imgup a").text(),
description: `描述:${$item.find(".imgdown p").text()}`,
link: $item.find(".imgup a").attr("href")
};
})
};
}
//#endregion
export { route };