UNPKG

rsshub

Version:
26 lines (25 loc) 693 B
import { t as rofetch } from "./ofetch-W1aeTHCo.mjs"; import { n as processTopics2Feed, t as RUBY_CHINA_HOST } from "./utils-BAJmjxOH.mjs"; import { load } from "cheerio"; //#region lib/routes/ruby-china/jobs.ts const route = { path: "/jobs", categories: ["bbs"], example: "/ruby-china/jobs", name: "招聘", maintainers: ["ahonn"], description: "未登录状态下抓取页面非实时更新", handler }; async function handler() { const title = "Ruby China - 招聘"; const link = `${RUBY_CHINA_HOST}/jobs`; return { title, link, description: title, item: await processTopics2Feed(load(await rofetch(link))(".topics .topic").toArray()) }; } //#endregion export { route };