rsshub
Version:
Make RSS Great Again!
34 lines (33 loc) • 1.01 kB
JavaScript
import { t as rofetch } from "./ofetch-W1aeTHCo.mjs";
import { t as processPages } from "./utils-D48q-Xcc.mjs";
import { load } from "cheerio";
//#region lib/routes/ynu/grs/zytz.ts
const route = {
path: "/grs/zytz",
categories: ["university"],
example: "/ynu/grs/zytz",
radar: [{ source: ["grs.ynu.edu.cn/*"] }],
name: "研究生院重要通知(置顶消息)",
maintainers: ["hzcheney"],
handler
};
async function handler() {
const host = "http://www.grs.ynu.edu.cn/";
const $ = load(await rofetch("http://www.grs.ynu.edu.cn/index.htm"));
return {
title: "云南大学研究生院重要通知",
link: "http://www.grs.ynu.edu.cn/zytz.htm",
description: "云南大学研究生院重要通知",
item: await processPages({
list: $("#news table table tbody tr").slice(0, 9).toArray().map((e) => ({
path: $("td a", e).attr("href") ?? "",
title: $("td a", e).attr("title") ?? "",
author: "研究生院"
})),
host,
department: "grs"
})
};
}
//#endregion
export { route };