import{t as e}from"./ofetch-Dl6dVB_5.mjs";import{t}from"./parse-date-BdYTmLpo.mjs";const n={path:`/articles/:type`,categories:[`blog`],example:`/freebuf/articles/web`,parameters:{type:`文章类别`},features:{requireConfig:!1,requirePuppeteer:!1,antiCrawler:!1,supportBT:!1,supportPodcast:!1,supportScihub:!1},radar:[{source:[`freebuf.com/articles/:type/*.html`,`freebuf.com/articles/:type`]}],name:`文章`,maintainers:[`trganda`],handler:r,description:`::: tip
  Freebuf 的文章页面带有反爬虫机制，所以目前无法获取文章的完整内容。
:::`};async function r(n){let{type:r=`web`}=n.req.param(),i=`https://www.freebuf.com`,a=`${i}/articles/${r}`,o=(await e(`https://www.freebuf.com/fapi/frontend/category/list`,{headers:{referer:`https://www.freebuf.com`,accept:`text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7`},query:{name:r,page:1,limit:20,select:0,order:0,type:`category`}})).data.data_list.map(e=>({title:e.post_title,link:`${i}${e.url}`,description:e.content,pubDate:t(e.post_date),author:e.nickname}));return{title:`Freebuf ${r}`,link:a,item:o}}export{n as route};