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.piyao.org.cn`,a={path:`/jrpy`,categories:[`other`],example:`/piyao/jrpy`,parameters:{},features:{requireConfig:!1,requirePuppeteer:!1,antiCrawler:!1,supportBT:!1,supportPodcast:!1,supportScihub:!1},radar:[{source:[`piyao.org.cn/jrpy/index.htm`]}],name:`今日辟谣`,maintainers:[`Fatpandac`],handler:o,url:`piyao.org.cn/jrpy/index.htm`};async function o(){let a=`${i}/jrpy/index.htm`,o=r((await n(a)).data),s=o(`ul#list li`).toArray().map(e=>({title:o(e).find(`a`).text(),link:new URL(o(e).find(`a`).attr(`href`),i).href}));return{title:`今日辟谣`,link:a,item:await Promise.all(s.map(i=>e.tryGet(i.link,async()=>{let e=r((await n(i.link)).data);return i.title=e(`div.con_tit > h2`).text(),i.description=e(`div.con_txt`).html(),i.pubDate=t(e(`div.con_tit > p > span`).text().split(`时间：`)[1]),i})))}}export{a as route};