rsshub
Version:
Make RSS Great Again!
39 lines (38 loc) • 1.11 kB
JavaScript
import { t as rofetch } from "./ofetch-C3ts-Hud.mjs";
import { n as resolveArticles, t as parseNoticeList } from "./utils-BUzgVloD.mjs";
import { load } from "cheerio";
//#region lib/routes/jou/home.ts
const pageUrl = "https://www.jou.edu.cn/index/tzgg.htm";
const route = {
path: "/tzgg",
categories: ["university"],
example: "/jou/tzgg",
parameters: {},
features: {
requireConfig: false,
requirePuppeteer: false,
antiCrawler: false,
supportBT: false,
supportPodcast: false,
supportScihub: false
},
radar: [{ source: ["www.jou.edu.cn/index/tzgg.htm", "www.jou.edu.cn/"] }],
name: "官网通知公告",
maintainers: ["real-jiakai"],
handler,
url: "www.jou.edu.cn/index/tzgg.htm"
};
async function handler() {
const items = await resolveArticles(parseNoticeList(load(await rofetch(pageUrl)), pageUrl, "table.winstyle106390 tr[height=\"20\"]", ".timestyle106390"), {
title: ".titlestyle106402",
content: ".v_news_content",
date: ".timestyle106402"
});
return {
title: "江苏海洋大学 -- 通知公告",
link: pageUrl,
item: items
};
}
//#endregion
export { route };