UNPKG

rsshub

Version:
46 lines (44 loc) 1.32 kB
import "./dist-Bog6z_OM.mjs"; import "./config-MQ-7ebJ_.mjs"; import "./logger-C4avouvV.mjs"; import "./ofetch-DKl_Ma9g.mjs"; import { t as parseDate } from "./parse-date-r5WDWHno.mjs"; import "./helpers-Bo4JQYdN.mjs"; import { t as got_default } from "./got-CO-ndVl2.mjs"; import { load } from "cheerio"; //#region lib/routes/hrbeu/job/bigemploy.ts const route = { path: "/job/bigemploy", categories: ["university"], example: "/hrbeu/job/bigemploy", parameters: {}, features: { requireConfig: false, requirePuppeteer: false, antiCrawler: false, supportBT: false, supportPodcast: false, supportScihub: false }, radar: [{ source: ["job.hrbeu.edu.cn/*"] }], name: "大型招聘会", maintainers: ["Derekmini"], handler, url: "job.hrbeu.edu.cn/*" }; async function handler() { const $ = load((await got_default("http://job.hrbeu.edu.cn/HrbeuJY/web")).data); return { title: "大型招聘会", link: "http://job.hrbeu.edu.cn/HrbeuJY/web", item: $("div.articlecontent").toArray().map((item) => ({ title: $(item).find("a.bigTitle").text(), pubDate: parseDate($(item).find("p").eq(1).text().replace("时间:", "").trim()), description: "点击标题,登录查看招聘详情", link: $(item).find("a.bigTitle").attr("href") })), allowEmpty: true }; } //#endregion export { route };