rsshub
Version:
Make RSS Great Again!
52 lines (50 loc) • 1.36 kB
JavaScript
import "./esm-shims-CzJ_djXG.mjs";
import "./config-C37vj7VH.mjs";
import "./dist-BInvbO1W.mjs";
import "./logger-Czu8UMNd.mjs";
import "./ofetch-BIyrKU3Y.mjs";
import { t as parseDate } from "./parse-date-BrP7mxXf.mjs";
import "./helpers-DxBp0Pty.mjs";
import { t as got_default } from "./got-KxxWdaxq.mjs";
import { load } from "cheerio";
//#region lib/routes/ccnu/career.ts
const route = {
path: "/career",
categories: ["university"],
example: "/ccnu/career",
parameters: {},
features: {
requireConfig: false,
requirePuppeteer: false,
antiCrawler: false,
supportBT: false,
supportPodcast: false,
supportScihub: false
},
radar: [{ source: ["ccnu.91wllm.com/news/index/tag/tzgg", "ccnu.91wllm.com/"] }],
name: "就业信息",
maintainers: ["jackyu1996"],
handler,
url: "ccnu.91wllm.com/news/index/tag/tzgg"
};
async function handler() {
const host = "https://ccnu.91wllm.com";
const link = `${host}/news/index/tag/tzgg`;
const $ = load((await got_default(link)).data);
const list = $(".newsList");
return {
title: "华中师范大学就业信息",
link,
item: list && list.toArray().map((item) => {
item = $(item);
const a = item.find("a");
return {
title: a.text(),
pubDate: parseDate(item.find(".y").text(), "YYYY-MM-DD"),
link: `${host}${a.attr("href")}`
};
})
};
}
//#endregion
export { route };