import{t as e}from"./cache-DUthuMSu.mjs";import{n as t}from"./parse-date-BdYTmLpo.mjs";import{t as n}from"./got-BBDj7u1e.mjs";import{load as r}from"cheerio";const i=`https://guangdiu.com`,a={path:`/rank`,categories:[`shopping`],example:`/guangdiu/rank`,parameters:{},features:{requireConfig:!1,requirePuppeteer:!1,antiCrawler:!1,supportBT:!1,supportPodcast:!1,supportScihub:!1},radar:[{source:[`guangdiu.com/rank`]}],name:`一小时风云榜`,maintainers:[`fatpandac`],handler:o,url:`guangdiu.com/rank`};async function o(){let a=`${i}/rank.php`,o=r((await n(a)).data),s=o(`div.hourrankitem`).toArray().map(e=>({title:o(e).find(`a.hourranktitle`).text(),link:new URL(o(e).find(`a.hourranktitle`).attr(`href`),i).href}));return{title:`逛丢 - 一小时风云榜`,link:a,item:await Promise.all(s.map(i=>e.tryGet(i.link,async()=>{let e=r((await n(i.link)).data);return i.description=e(`#dabstract`).html()+e(`a.dgotobutton`).html(`前往购买`),i.pubDate=t(e(`div.hourranktime`).text()),i})))}}export{a as route};