UNPKG

rsshub

Version:
50 lines (48 loc) 1.27 kB
import "./esm-shims-CzJ_djXG.mjs"; import "./config-C37vj7VH.mjs"; import "./dist-BInvbO1W.mjs"; import "./logger-Czu8UMNd.mjs"; import "./ofetch-BIyrKU3Y.mjs"; import "./helpers-DxBp0Pty.mjs"; import { t as got_default } from "./got-KxxWdaxq.mjs"; import { load } from "cheerio"; //#region lib/routes/cas/ia/yjs.ts const route = { path: "/ia/yjs", categories: ["university"], example: "/cas/ia/yjs", parameters: {}, features: { requireConfig: false, requirePuppeteer: false, antiCrawler: false, supportBT: false, supportPodcast: false, supportScihub: false }, radar: [{ source: ["www.ia.cas.cn/yjsjy/zs/sszs", "www.ia.cas.cn/"] }], name: "自动化所", maintainers: ["shengmaosu"], handler, url: "www.ia.cas.cn/yjsjy/zs/sszs" }; async function handler() { const link = "http://www.ia.cas.cn/yjsjy/zs/sszs/"; const $ = load((await got_default(link)).data); const list = $(".col-md-9 li"); return { title: "中科院自动化所", link, description: "中科院自动化所通知公告", item: list && list.toArray().map((item) => { item = $(item); return { title: item.find("li a").text(), description: item.find("li a").text(), link: item.find("li a").attr("href") }; }) }; } //#endregion export { route };