import{t as e}from"./cache-DUthuMSu.mjs";import{t}from"./parse-date-BdYTmLpo.mjs";import{t as n}from"./got-BBDj7u1e.mjs";import{n as r,t as i}from"./extractor-BQhMZTG8.mjs";import{load as a}from"cheerio";const o={path:`/wh/news/:column?`,categories:[`university`],example:`/sdu/wh/news/xyyw`,parameters:{column:"专栏名称，默认为校园要闻（`xyyw`）"},features:{requireConfig:!1,requirePuppeteer:!1,antiCrawler:!1,supportBT:!1,supportPodcast:!1,supportScihub:!1},name:`新闻网`,maintainers:[`kxxt`],handler:s,description:`| 校园要闻 | 学生动态 | 综合新闻 | 山大视点 | 菁菁校园 | 校园简讯 | 玛珈之窗 | 热点专题 | 媒体视角 | 高教视野 | 理论学习 |
| -------- | -------- | -------- | -------- | -------- | -------- | -------- | -------- | -------- | -------- | -------- |
| xyyw     | xsdt     | zhxw     | sdsd     | jjxy     | xyjx     | mjzc     | rdzt     | mtsj     | gjsy     | llxx     |`};async function s(o){let s=o.req.param(`column`)??`xyyw`,c=r.wh.news.url,l=a((await n(c+r.wh.news.columns[s].url)).data),u=l(`.n_newslist li`),d=await Promise.all(u.map(async(n,r)=>{r=l(r);let a=r.find(`a`),o=a.attr(`title`),s=a.attr(`href`),u=s.startsWith(`http`)?s:c+s,{description:d,author:f,exactDate:p}=await e.tryGet(u,()=>i(u)),m=r.find(`span`);return{title:o,link:u,description:d,pubDate:p??t(m.text(),`YYYY/MM/DD`),author:f}}));return{title:`${r.wh.news.name} ${r.wh.news.columns[s].name}`,link:c+r.wh.news.columns[s].url,item:d}}export{o as route};