rsshub
Version:
Make RSS Great Again!
42 lines (40 loc) • 1.12 kB
JavaScript
import "./dist-Bog6z_OM.mjs";
import "./config-MQ-7ebJ_.mjs";
import "./logger-C4avouvV.mjs";
import { t as ofetch_default } from "./ofetch-DKl_Ma9g.mjs";
import "./parse-date-r5WDWHno.mjs";
import "./is-worker-DESPicPc.mjs";
import "./cache-SV6W5EPy.mjs";
import { n as rootUrl, t as processList } from "./utils-DY1RSSVj.mjs";
import { load } from "cheerio";
//#region lib/routes/30secondsofcode/new-and-popular.ts
const route = {
path: "/latest",
categories: ["programming"],
example: "/latest",
features: {
requireConfig: false,
requirePuppeteer: false,
antiCrawler: false,
supportBT: false,
supportPodcast: false,
supportScihub: false
},
radar: [{
source: ["30secondsofcode.org"],
target: "/latest"
}],
name: "New & Popular Snippets",
maintainers: ["Rjnishant530"],
handler
};
async function handler() {
return {
title: "New & Popular Snippets",
description: "Discover short code snippets for all your development needs.",
link: rootUrl,
item: await processList(load(await ofetch_default(rootUrl))("section.preview-list > ul > li").toArray())
};
}
//#endregion
export { route };