diff --git a/lib/routes/stbu/jsjxy.ts b/lib/routes/stbu/jsjxy.ts index 81f739a9ffb11a..2f4a8333f8187d 100644 --- a/lib/routes/stbu/jsjxy.ts +++ b/lib/routes/stbu/jsjxy.ts @@ -15,17 +15,17 @@ export const route: Route = { features: { requireConfig: false, requirePuppeteer: false, - antiCrawler: false, + antiCrawler: true, supportBT: false, supportPodcast: false, supportScihub: false, }, radar: [ { - source: ['jsjxy.stbu.edu.cn/news', 'jsjxy.stbu.edu.cn/'], + source: ['jsjxy.stbu.edu.cn/news', 'jsjxy.stbu.edu.cn', 'stbu.edu.cn'], }, ], - name: '计算机学院通知公告', + name: '计算机学院 - 通知公告', maintainers: ['HyperCherry'], handler, url: 'jsjxy.stbu.edu.cn/news', diff --git a/lib/routes/stbu/xyxw.ts b/lib/routes/stbu/xyxw.ts index ec9a75c1062b99..a93e25bedafd03 100644 --- a/lib/routes/stbu/xyxw.ts +++ b/lib/routes/stbu/xyxw.ts @@ -9,19 +9,30 @@ import timezone from '@/utils/timezone'; const gbk2utf8 = (s) => iconv.decode(s, 'gbk'); export const route: Route = { path: '/xyxw', + categories: ['university'], + example: '/stbu/xyxw', + parameters: {}, + features: { + requireConfig: false, + requirePuppeteer: false, + antiCrawler: true, + supportBT: false, + supportPodcast: false, + supportScihub: false, + }, radar: [ { - source: ['stbu.edu.cn/html/news/xueyuan', 'stbu.edu.cn/'], + source: ['stbu.edu.cn/html/news/xueyuan', 'stbu.edu.cn'], }, ], - name: 'Unknown', + name: '学院新闻', maintainers: ['HyperCherry'], handler, url: 'stbu.edu.cn/html/news/xueyuan', }; async function handler() { - const baseUrl = 'https://www.stbu.edu.cn'; + const baseUrl = 'http://www.stbu.edu.cn'; const requestUrl = `${baseUrl}/html/news/xueyuan/`; const { data: response } = await got(requestUrl, { responseType: 'buffer',