import{t as e}from"./ofetch-Dl6dVB_5.mjs";import{load as t}from"cheerio";const n={path:`/jyc/:type?`,categories:[`university`],example:`/xupt/jyc`,parameters:{type:`分类，默认为 tzgg（通知公告）`},features:{requireConfig:!1,requirePuppeteer:!1,antiCrawler:!1,supportBT:!1,supportPodcast:!1,supportScihub:!1},radar:[{source:[`jyc.xupt.edu.cn/index/tzgg.htm`],target:`/jyc/tzgg`}],name:`教务处通知公告`,maintainers:[`StudyingLover`],handler:r,description:`| 分类 | 参数 |
| ---- | ---- |
| 通知公告 | tzgg |`};async function r(n){let r=n.req.param(`type`)||`tzgg`,i={tzgg:[`通知公告`,`https://jyc.xupt.edu.cn/index/tzgg.htm`]},[a,o]=i[r]||i.tzgg,s=t(await e(o)),c=s(`.ej_list li`).toArray().map(e=>{let t=s(e).find(`a`).first(),n=t.attr(`href`)||``,r=new URL(n,`https://jyc.xupt.edu.cn`).href;return{title:t.text().trim(),link:r}}).filter(e=>e.title&&e.link);return{title:`西安邮电大学教务处 - ${a}`,link:o,item:c}}export{n as route};