rsshub
Version:
Make RSS Great Again!
32 lines (31 loc) • 815 B
JavaScript
import { t as rofetch } from "./ofetch-W1aeTHCo.mjs";
import { load } from "cheerio";
//#region lib/routes/checkra.in/releases.ts
const route = {
path: "/releases",
categories: ["program-update"],
example: "/checkra.in/releases",
name: "新版本发布",
maintainers: ["ntzyz"],
handler
};
async function handler() {
const homepage = "https://checkra.in/releases/";
const $ = load(await rofetch(homepage));
return {
title: "Checkra1n All Releases",
link: homepage,
item: $(".release").toArray().map((item) => {
const $item = $(item);
const address = "https://checkra.in" + $item.find("a").attr("href");
return {
title: $item.find("h3").first().text(),
description: $item.find(".changelog").html(),
link: address,
guid: address
};
})
};
}
//#endregion
export { route };