44 lines
1.1 KiB
TypeScript
44 lines
1.1 KiB
TypeScript
import { Route } from '@/types';
|
|
import { getNoticeList } from './utils';
|
|
|
|
const url = 'https://gra.njucm.edu.cn/2899/list.htm';
|
|
const host = 'https://gra.njucm.edu.cn';
|
|
|
|
export const route: Route = {
|
|
path: '/grabszs',
|
|
categories: ['university'],
|
|
example: '/njucm/grabszs',
|
|
parameters: {},
|
|
features: {
|
|
requireConfig: false,
|
|
requirePuppeteer: false,
|
|
antiCrawler: true,
|
|
supportBT: false,
|
|
supportPodcast: false,
|
|
supportScihub: false,
|
|
},
|
|
radar: [
|
|
{
|
|
source: ['lib.njucm.edu.cn/2899/list.htm', 'lib.njucm.edu.cn/'],
|
|
},
|
|
],
|
|
name: '研究生院博士招生',
|
|
maintainers: ['real-jiakai'],
|
|
handler,
|
|
url: 'lib.njucm.edu.cn/2899/list.htm',
|
|
};
|
|
|
|
async function handler(ctx) {
|
|
const out = await getNoticeList(ctx, url, host, '#wp_news_w3 > table > tbody > tr', 'a', {
|
|
title: '.Article_Title',
|
|
content: '.Article_Content',
|
|
date: '.Article_PublishDate',
|
|
});
|
|
|
|
return {
|
|
title: '南京中医药大学 -- 博士招生',
|
|
link: url,
|
|
item: out,
|
|
};
|
|
}
|