import{t as e}from"./cache-DUthuMSu.mjs";import{t}from"./got-BBDj7u1e.mjs";import{t as n}from"./utils-EIANOJGV.mjs";import{load as r}from"cheerio";const i={path:`/user/:id`,categories:[`social-media`],example:`/jianshu/user/yZq3ZV`,view:0,parameters:{id:`作者 id, 可在作者主页 URL 中找到`},features:{requireConfig:!1,requirePuppeteer:!1,antiCrawler:!1,supportBT:!1,supportPodcast:!1,supportScihub:!1},radar:[{source:[`www.jianshu.com/u/:id`]}],name:`作者`,maintainers:[`DIYgod`,`HenryQW`,`JimenezLi`],handler:a};async function a(i){let a=i.req.param(`id`),o=(await t({method:`get`,url:`https://www.jianshu.com/u/${a}`,headers:{Referer:`https://www.jianshu.com/u/${a}`}})).data,s=r(o),c=s(`.note-list li`).toArray(),l=await n.ProcessFeed(c,e);return{title:s(`title`).text(),link:`https://www.jianshu.com/u/${a}`,description:s(`meta[name="description"]`).attr(`content`)||s(`title`).text(),item:l}}export{i as route};