rsshub
Version:
Make RSS Great Again!
42 lines (39 loc) • 1.37 kB
text/typescript
import { Route } from '@/types';
import getContent from '../utils/common';
export const route: Route = {
path: '/xky/:category?/:page?',
categories: ['university'],
example: '/hunau/xky',
parameters: { category: '页面分类,默认为 `tzgg_8472`', page: '页码,默认为 `1`' },
features: {
requireConfig: false,
requirePuppeteer: false,
antiCrawler: false,
supportBT: false,
supportPodcast: false,
supportScihub: false,
},
radar: [
{
source: ['xky.hunau.edu.cn/', 'xky.hunau.edu.cn/tzgg_8472', 'xky.hunau.edu.cn/:category'],
target: '/:category',
},
],
name: '信息与智能科学学院',
maintainers: [],
handler,
url: 'xky.hunau.edu.cn/',
description: `| 分类 | 通知公告 | 学院新闻 | 其他分类通知... |
| ---- | ---------- | -------- | --------------- |
| 参数 | tzgg\_8472 | xyxw | 对应 URL |`,
};
async function handler(ctx) {
await getContent(ctx, {
baseHost: 'https://xky.hunau.edu.cn',
baseCategory: 'tzgg_8472', // 默认:通知公告
baseTitle: '信息与智能科学技术学院',
baseDescription: '湖南农业大学信息与智能科学技术学院',
baseDeparment: 'xky',
baseClass: 'div.right_list ul li:has(a)',
});
}