import{t as e}from"./ofetch-Dl6dVB_5.mjs";import{t}from"./cache-DUthuMSu.mjs";import{t as n}from"./parse-date-BdYTmLpo.mjs";import{load as r}from"cheerio";const i={path:`/`,categories:[`university`],example:`/snnu`,url:`www.snnu.edu.cn`,features:{requireConfig:!1,requirePuppeteer:!1,antiCrawler:!1,supportRadar:!0,supportBT:!1,supportPodcast:!1,supportScihub:!1},name:`学校官网 - 通知公告`,maintainers:[`alterkeyy`],radar:[{source:[`www.snnu.edu.cn/tzgg.htm`],target:`/`}],handler:async()=>{let i=`https://www.snnu.edu.cn/tzgg.htm`,a=r(await e(i)),o=a(`.ul-txtq3 li`).toArray().slice(0,10);return{title:`陕西师范大学 - 通知公告`,link:i,image:`https://www.snnu.edu.cn/images/logo.png`,item:await Promise.all(o.map(o=>{let s=a(o),c=s.find(`a`).first(),l=new URL(c.attr(`href`)||``,i).href,u=n(s.find(`.date.date2`).first().text()),d=s.find(`a .txt h3`).first().text();return d||=c.text(),t.tryGet(l,async()=>{try{let t=r(await e(l)),n=t(`.v_news_content`).html()||t(`#vsb_content`).html()||``;return{title:d,link:l,description:n,pubDate:u}}catch{return{title:d,link:l,pubDate:u}}})}))}}};export{i as route};