rsshub
Version:
Make RSS Great Again!
41 lines (39 loc) • 1.15 kB
JavaScript
import "./esm-shims-CzJ_djXG.mjs";
import "./config-C37vj7VH.mjs";
import "./dist-BInvbO1W.mjs";
import "./logger-Czu8UMNd.mjs";
import "./ofetch-BIyrKU3Y.mjs";
import "./parse-date-BrP7mxXf.mjs";
import "./cache-Bo__VnGm.mjs";
import "./render-BQo6B4tL.mjs";
import { t as utils_default } from "./utils-BRlimb4Y.mjs";
//#region lib/routes/dribbble/popular.ts
const route = {
path: "/popular/:timeframe?",
categories: ["design"],
example: "/dribbble/popular",
parameters: { timeframe: "support the following values: week, month, year and ever" },
features: {
requireConfig: false,
requirePuppeteer: false,
antiCrawler: false,
supportBT: false,
supportPodcast: false,
supportScihub: false
},
radar: [{
source: ["dribbble.com/"],
target: "/popular"
}],
name: "Popular",
maintainers: ["DIYgod", "loganrockmore"],
handler,
url: "dribbble.com/"
};
async function handler(ctx) {
const timeframe = ctx.req.param("timeframe");
const url = `https://dribbble.com/shots/popular${timeframe ? `?timeframe=${timeframe}` : ""}`;
return await utils_default.getData(url, "Dribbble - Popular Shots");
}
//#endregion
export { route };