UNPKG

rsshub

Version:
40 lines (39 loc) 1.01 kB
import { t as parseDate } from "./parse-date-3kcy2Eau.mjs"; import { t as buildData } from "./common-config-DW8ZWC5w.mjs"; //#region lib/routes/iiilab/index.ts const baseUrl = "https://www.iiilab.com/"; const route = { path: "/", categories: ["new-media"], example: "/iiilab", radar: [{ source: ["www.iiilab.com/"], target: "" }], name: "发现", maintainers: ["Joey"], handler, url: "www.iiilab.com/" }; async function handler() { const link = baseUrl; return await buildData({ link, url: link, title: "发现", description: "人人都是自媒体-发现", item: { item: ".aw-common-list > div", title: ($) => $("a").first().text(), link: ($) => $("a").first().attr("href"), description: ($) => $(".markitup-box").text(), pubDate: ($) => parseDate($(".text-color-999").first().text(), "YYYY-MM-DD HH:mm"), guid: ($) => { const href = $("a").attr("href"); return href ? Buffer.from(href).toString("base64") : void 0; } } }); } //#endregion export { route };