import{t as e}from"./got-BBDj7u1e.mjs";import{load as t}from"cheerio";const n={path:`/student/:type`,categories:[`university`],example:`/zzu/student/xwzx`,parameters:{type:`分类名`},features:{requireConfig:!1,requirePuppeteer:!1,antiCrawler:!1,supportBT:!1,supportPodcast:!1,supportScihub:!1},radar:[{source:[`www5.zzu.edu.cn/student/`]}],name:`郑大学生处`,maintainers:[`amandus1990`],handler:r,description:`| 新闻资讯 | 通知公告 |
| -------- | -------- |
| xwzx     | tzgg     |`};async function r(n){let r=n.req.param(`type`),i={xwzx:[`新闻资讯`,`https://www5.zzu.edu.cn/student/xwzx.htm`],tzgg:[`通知公告`,`https://www5.zzu.edu.cn/student/tzgg.htm`]},a=t((await e(i[r][1])).data),o=a(`.part-list ul li`).toArray().slice(0,10).map(e=>{let t=a(e),n=t.find(`a`).first(),o=new URL(n.attr(`href`),i[r][1]).href,s=n.find(`span`).text().trim(),c=t.find(`em`).text().trim(),l=null;if(c){let e=c.match(/(\d{4})年(\d{1,2})月(\d{1,2})日/);e&&(l=`${e[1]}-${e[2].padStart(2,`0`)}-${e[3].padStart(2,`0`)}`)}return{title:s,link:o,pubDate:l}});return{title:`郑大学生处-${i[r][0]}`,link:i[r][1],item:o}}export{n as route};