UNPKG

rsshub

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