import{t as e}from"./got-BBDj7u1e.mjs";import{load as t}from"cheerio";const n={path:`/ss/:type`,categories:[`university`],example:`/zzu/ss/xwzx`,parameters:{type:`分类名`},features:{requireConfig:!1,requirePuppeteer:!1,antiCrawler:!1,supportBT:!1,supportPodcast:!1,supportScihub:!1},radar:[{source:[`www5.zzu.edu.cn/ss/`]}],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/ss/index/skxw.htm`],tzgg:[`通知公告`,`https://www5.zzu.edu.cn/ss/index/tzgg.htm`]},a=t((await e(i[r][1])).data),o=a(`.list_notice > a`).toArray().slice(0,10).map(e=>{let t=a(e),n=new URL(t.attr(`href`),i[r][1]).href,o=t.find(`h3`).text().trim(),s=t.find(`time`).text().trim(),c=null;return s&&(c=r===`xwzx`?`${new Date().getFullYear()}-${s}`:s),{title:o,link:n,pubDate:c}});return{title:`郑大社科院-${i[r][0]}`,link:i[r][1],item:o}}export{n as route};