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:`/article`,categories:[`new-media`],example:`/baijing/article`,url:`www.baijing.cn/article/`,name:`资讯`,maintainers:[`p3psi-boo`],handler:a};async function a(){let i=(await e(`https://www.baijing.cn/index/ajax/get_article/`)).data.article_list.map(e=>({title:e.title,link:`https://www.baijing.cn/article/${e.id}`,author:e.user_info.user_name,category:e.topic?.map(e=>e.title)}));return{title:`白鲸出海 - 资讯`,link:`https://www.baijing.cn/article/`,item:await Promise.all(i.map(i=>t.tryGet(i.link,async()=>{let t=r(await e(i.link));return i.description=t(`.content`).html(),i.pubDate=n(t(`.timeago`).text()),i})))}}export{i as route};