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://www.ruankao.org.cn/index/work.html`,a=(e=``)=>{let t=r(e);return t(`[style]`).each((e,n)=>{let r=(t(n).attr(`style`)||``).replaceAll(/font-family:[^;]*;?/gi,``).trim();t(n).attr(`style`,r||null)}),t(`style`).each((e,n)=>{let r=(t(n).html()||``).replaceAll(/font-family:[^;]*;?/gi,``);t(n).html(r)}),t.html()},o={path:`/news`,name:`软考动态`,description:`**注意：** 官方网站限制了国外网络请求，可能需要通过部署在中国大陆内的 RSSHub 实例访问。`,maintainers:[`PrinOrange`],handler:async()=>{let{data:o}=await n(i),s=r(o),c=s(`ul[class*="newsList"] > li`).toArray().map(e=>{let n=s(e).find(`label.time`).text().trim().slice(1,-1),r=s(e).find(`a`).attr(`title`),i=s(e).find(`a`).attr(`href`);return{date:t(n),title:r,link:i}});return{title:`计算机职业技术资格考试（软考）动态`,description:`计算机职业技术资格考试（软考）消息推送`,link:i,image:`https://bm.ruankao.org.cn/asset/image/public/logo.png`,item:await Promise.all(c.map(t=>e.tryGet(t.link,async()=>{let{data:e}=await n(t.link),i=a(r(e)(`#contentTxt`).html()||``);return{title:t.title,pubDate:t.date,link:t.link,description:i,category:[`study`],guid:t.link,id:t.link,image:`https://bm.ruankao.org.cn/asset/image/public/logo.png`,content:i,updated:t.date,language:`zh-CN`}}))),allowEmpty:!0,language:`zh-CN`,feedLink:`https://rsshub.app/ruankao/news`,id:`https://rsshub.app/ruankao/news`}},categories:[`study`],features:{requireConfig:!1,requirePuppeteer:!1,antiCrawler:!0,supportBT:!1,supportPodcast:!1,supportScihub:!1,supportRadar:!0},radar:[{title:`计算机职业技术资格考试（软考）动态`,source:[`www.ruankao.org.cn/index/work`,`www.ruankao.org.cn`],target:`/news`}],example:`/ruankao/news`};export{o as route};