UNPKG

rsshub

Version:
55 lines (53 loc) 1.64 kB
import "./esm-shims-CzJ_djXG.mjs"; import "./config-C37vj7VH.mjs"; import "./dist-BInvbO1W.mjs"; import "./logger-Czu8UMNd.mjs"; import "./ofetch-BIyrKU3Y.mjs"; import "./parse-date-BrP7mxXf.mjs"; import "./cache-Bo__VnGm.mjs"; import "./helpers-DxBp0Pty.mjs"; import "./got-KxxWdaxq.mjs"; import "./timezone-D8cuwzTY.mjs"; import "./wechat-mp-Dq_pp853.mjs"; import { t as utils_default } from "./utils-Bdr8-nWs.mjs"; //#region lib/routes/nua/gra.ts const baseUrl = "https://grad.nua.edu.cn"; const route = { path: "/gra/:type", categories: ["university"], example: "/nua/gra/1959", parameters: { type: "News Type" }, features: { requireConfig: false, requirePuppeteer: false, antiCrawler: true, supportBT: false, supportPodcast: false, supportScihub: false }, radar: [{ source: ["grad.nua.edu.cn/:type/list.htm"] }], name: "Graduate Institute", maintainers: ["evnydd0sf"], handler, description: `| News Type | Parameters | | --------- | ---------- | | 招生工作 | 1959 | | 培养工作 | 1962 | | 学位工作 | 1958 |` }; async function handler(ctx) { const type = ctx.req.param("type"); const newsUrl = `${baseUrl}/${type}/list.htm`; const listName = "li.list_item"; const artiContent = ".read"; const items = await utils_default.ProcessList(newsUrl, baseUrl, listName, ".Article_PublishDate", ".col_title"); const results = await utils_default.ProcessFeed(items[0], artiContent); return { title: "NUA-研究生处-" + items[1], link: `${baseUrl}/${type}/list.htm`, description: "南京艺术学院 研究生处 " + items[1], item: results }; } //#endregion export { route };