import{t as e}from"./cache-DUthuMSu.mjs";import{t}from"./parse-date-BdYTmLpo.mjs";import{t as n}from"./got-BBDj7u1e.mjs";import{load as r}from"cheerio";const i=`https://yz.chsi.com.cn`,a={path:`/hotnews`,categories:[`study`],example:`/chsi/hotnews`,parameters:{},features:{requireConfig:!1,requirePuppeteer:!1,antiCrawler:!1,supportBT:!1,supportPodcast:!1,supportScihub:!1},radar:[{source:[`yz.chsi.com.cn/`]}],name:`考研热点新闻`,maintainers:[`yanbot-team`],handler:o,url:`yz.chsi.com.cn/`};async function o(){let a=r((await n(i)).data)(`.focus-part .index-hot a`);return{title:`中国研究生招生信息网 - 热点`,link:i,description:`中国研究生招生信息网 - 热点`,item:await Promise.all(a.map((a,o)=>{let{href:s,title:c}=o.attribs,l=``;return l=s.startsWith(`http`)?s:i+s,e.tryGet(l,async()=>{let e,i;if(s){let t=r((await n(l)).data);e=t(`#article_dnull`).html()?t(`#article_dnull`).html().trim():c,t(`.news-time`).text()&&(i=t(`.news-time`).text())}else e=c;let a={title:c,link:l,description:e};return i&&(a.pubDate=t(i,`YYYY年MM月DD日`)),a})}))}}export{a as route};