Files
RSSHub/lib/routes/gov/mmht/mmht.ts
T
2024-03-09 03:06:53 +08:00

28 lines
1.1 KiB
TypeScript
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import { Route } from '@/types';
import { gdgov } from '../general/general';
export const route: Route = {
path: '/mmht/*',
name: 'Unknown',
maintainers: [],
handler,
};
async function handler(ctx) {
const info = {
defaultPath: 'xwzx/zcjd/',
list_element: '#main21l_main_dk > table > tbody > tr > td:nth-child(2) a',
list_include: 'site',
title_element: 'td[background="/global/rlyelen_line04.gif"] > table:nth-child(1) > tbody > tr:nth-child(2)',
title_match: '(.*)',
description_element: 'td[background="/global/rlyelen_line04.gif"] > table:nth-child(1) > tbody > tr:nth-child(4)',
author_element: undefined,
author_match: undefined,
authorisme: '茂名市高新技术产业开发局政务网',
pubDate_element: 'td[background="/global/rlyelen_line04.gif"] > table:nth-child(1) > tbody > tr:nth-child(3) > td > table > tbody > tr > td',
pubDate_match: '发表时间:(.*)       信息来源',
pubDate_format: undefined,
};
await gdgov(info, ctx);
}