UNPKG

rsshub

Version:
32 lines (31 loc) 762 B
import { t as rofetch } from "./ofetch-W1aeTHCo.mjs"; import { load } from "cheerio"; //#region lib/routes/kchuhai/index.ts const route = { path: "/report", categories: ["new-media"], example: "/kchuhai/report", name: "资讯", maintainers: ["8430177"], handler }; async function handler() { const url = "https://www.kchuhai.com/report/"; const $ = load(await rofetch(url)); return { title: "出海 ~ 资讯", link: url, description: "出海 ~ 资讯", item: $(".kch-ztListBox a[title]").toArray().map((item) => { const $item = $(item); const title = $item.attr("title"); if (title === void 0) return; return { title, link: $item.attr("href") }; }).filter((item) => item !== void 0) }; } //#endregion export { route };