import{t as e}from"./got-BBDj7u1e.mjs";import{t}from"./items-processor-Cvz2V8JI.mjs";import{load as n}from"cheerio";const r={path:`/ciencias/:subsection?`,parameters:{subsection:{description:`Filter by subsection. Check the subsections available on the newspaper's website.`}},categories:[`traditional-media`],example:`/publico/ciencias`,features:{requireConfig:!1,requirePuppeteer:!0,antiCrawler:!1,supportBT:!1,supportPodcast:!1,supportScihub:!1},radar:[{source:[`publico.es/ciencias`],target:`/ciencias`}],name:`Ciencias`,maintainers:[`adrianrico97`],handler:i};async function i(r){let{subsection:i}=r.req.param(),a=`https://www.publico.es`,o=i?`${a}/ciencias/${i}`:`${a}/ciencias`,s=n((await e({method:`get`,url:o})).data),c=s(`.article-section h1`).text(),l=t(s);return{title:`${c} | Público`,link:o,item:l}}export{r as route};