UNPKG

rsshub

Version:
46 lines (44 loc) 1.32 kB
import "./esm-shims-CzJ_djXG.mjs"; import "./config-C37vj7VH.mjs"; import "./dist-BInvbO1W.mjs"; import "./logger-Czu8UMNd.mjs"; import "./ofetch-BIyrKU3Y.mjs"; import "./parse-date-BrP7mxXf.mjs"; import "./timezone-D8cuwzTY.mjs"; import { t as common_config_default } from "./common-config-ChcwGVXn.mjs"; //#region lib/routes/gov/zhengce/zhengceku.ts const route = { path: "/zhengce/zhengceku/:department", categories: ["government"], example: "/gov/zhengce/zhengceku/bmwj", parameters: { department: "库名" }, features: { requireConfig: false, requirePuppeteer: false, antiCrawler: false, supportBT: false, supportPodcast: false, supportScihub: false }, name: "国务院政策文件库", maintainers: ["zxx-457"], handler }; async function handler(ctx) { const link = `http://www.gov.cn/zhengce/zhengceku/${ctx.req.param("department")}/`; return await common_config_default({ link, url: link, title: `%title%`, description: "政府文件库, 当页的所有列表", params: { title: `$('.channel_tab > .noline > a').text().trim() + ' - 政府文件库'` }, item: { item: ".news_box > .list > ul > li:not(.line)", title: `$('h4 > a').text()`, link: `$('h4 > a').attr('href')`, pubDate: `parseDate($('h4 > .date').text().trim())` } }); } //#endregion export { route };