UNPKG

rsshub

Version:
27 lines (26 loc) 943 B
import { n as fetchMain, t as fetchDetail } from "./utils-BhkQG3L7.mjs"; //#region lib/routes/lixin/kjxy.ts const route = { path: "/kjxy/:id", categories: ["university"], example: "/lixin/kjxy/13496", parameters: { id: "类别 ID,`info/iList.jsp?cat_id=` 后方数字" }, name: "会计学院", maintainers: ["NeverBehave"], handler }; async function handler(ctx) { const { id } = ctx.req.param(); const baseUrl = "https://kjxy.lixin.edu.cn"; const link = `${baseUrl}/info/iList.jsp?cat_id=${id}`; const { list, title } = await fetchMain(link, "body > div.erji > div.erjiright > div.rightlist > ul > li"); const items = await fetchDetail(list, baseUrl, "body > div.wrapper > div.ContentPage > div.words > div.text"); return { title: `${title} - 会计学院 - 上海立信会计金融学院`, link, description: `${title} - 会计学院 - 上海立信会计金融学院`, item: items }; } //#endregion export { route };