mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-09 06:30:40 +08:00
feat: 新增中科院自动化所通知公告等路由 (#4283)
This commit is contained in:
@@ -278,6 +278,12 @@ type 为 all 时,category 参数不支持 cost 和 free
|
||||
|
||||
<Route author="cc798461" example="/moxingfans" path="/moxingfans"/>
|
||||
|
||||
## 考研帮
|
||||
|
||||
### 考研帮调剂信息
|
||||
|
||||
<Route author="sushengmao" example="/kaoyan" path="/kaoyan" />
|
||||
|
||||
## 空气质量
|
||||
|
||||
### 实时 AQI
|
||||
|
||||
@@ -329,7 +329,7 @@ xskb1 对应 http://www.auto.uestc.edu.cn/index/xskb1.htm
|
||||
|
||||
## 广州大学研招网通知公告
|
||||
|
||||
<Route author="sushengmao" example="/gzyjs/gzyjs" path="/gzyjs/gzyjs" />
|
||||
<Route author="sushengmao" example="/gzyjs" path="/gzyjs" />
|
||||
|
||||
## 桂林电子科技大学
|
||||
|
||||
@@ -520,8 +520,24 @@ category 列表:
|
||||
|
||||
<Route author="vuhe" example="/ncwu/notice" path="/ncwu/notice"/>
|
||||
|
||||
## 华东理工大学
|
||||
|
||||
### 华东理工大学研究生院通知公告
|
||||
|
||||
<Route author="sushengmao" example="/ecustyjs" path="/ecustyjs" />
|
||||
|
||||
## 华东师范大学
|
||||
|
||||
### 华东师范大学研究生院
|
||||
|
||||
<Route author="sushengmao" example="/ecnuyjs" path="/ecnuyjs" />
|
||||
|
||||
## 华南理工大学
|
||||
|
||||
### 研究生院通知公告
|
||||
|
||||
<Route author="sushengmao" example="/scutyjs" path="/scutyjs" />
|
||||
|
||||
### 教务处通知公告
|
||||
|
||||
<Route author="KeNorizon" example="/scut/jwc/notice/all" path="/scut/jwc/notice/:category?" :paramsDesc="['通知分类, 默认为 `all`']">
|
||||
@@ -538,6 +554,14 @@ category 列表:
|
||||
|
||||
## 华南师范大学
|
||||
|
||||
### 软件学院通知公告
|
||||
|
||||
<Route author="sushengmao" example="/scnucs" path="/scnucs" />
|
||||
|
||||
### 研究生院通知公告
|
||||
|
||||
<Route author="sushengmao" example="/scnuyjs" path="/scnuyjs" />
|
||||
|
||||
### 教务处通知
|
||||
|
||||
<Route author="fengkx" example="/scnu/jw" path="/scnu/jw"/>
|
||||
@@ -552,6 +576,10 @@ category 列表:
|
||||
|
||||
## 华中科技大学
|
||||
|
||||
### 华中科技大学研究生院通知公告
|
||||
|
||||
<Route author="sushengmao" example="/hustyjs" path="/hustyjs" />
|
||||
|
||||
### 人工智能和自动化学院通知
|
||||
|
||||
<Route author="RayHY" example="/hust/aia/notice/0" path="/hust/aia/notice/:type?" :paramsDesc="['分区 type, 默认为最新通知 可在网页 HTML中找到']">
|
||||
@@ -568,6 +596,18 @@ category 列表:
|
||||
|
||||
## 华中师范大学
|
||||
|
||||
### 华中师范大学研究生通知公告
|
||||
|
||||
<Route author="sushengmao" example="/ccnuyjs" path="/ccnuyjs" />
|
||||
|
||||
### 华中师范大学计算机学院
|
||||
|
||||
<Route author="sushengmao" example="/ccnucs" path="/ccnucs" />
|
||||
|
||||
### 华中师范大学伍论贡学院
|
||||
|
||||
<Route author="sushengmao" example="/ccnuwu" path="/ccnuwu" />
|
||||
|
||||
### 就业信息
|
||||
|
||||
<Route author="jackyu1996" example="/ccnu/career" path="/ccnu/career" />
|
||||
@@ -660,9 +700,9 @@ category 列表:
|
||||
|
||||
## 南方科技大学
|
||||
|
||||
## 南方科技大学研究生网通知公告
|
||||
### 南方科技大学研究生网通知公告
|
||||
|
||||
<Route author="sushengmao" example="/sustyjs/sustyjs" path="/sustyjs/sustyjs" />
|
||||
<Route author="sushengmao" example="/sustyjs" path="/sustyjs" />
|
||||
|
||||
## 南京工业大学
|
||||
|
||||
@@ -1036,7 +1076,7 @@ https://rsshub.app/**nuist**/`bulletin` 或 https://rsshub.app/**nuist**/`bullet
|
||||
|
||||
#### 深圳大学研究生招生网通知公告
|
||||
|
||||
<Route author="sushengmao" example="/szuyjs/szuyjs" path="/szuyjs/szuyjs" />
|
||||
<Route author="sushengmao" example="/szuyjs" path="/szuyjs" />
|
||||
|
||||
### 深圳大学研究生招生网
|
||||
|
||||
@@ -1102,6 +1142,10 @@ https://rsshub.app/**nuist**/`bulletin` 或 https://rsshub.app/**nuist**/`bullet
|
||||
|
||||
## 同济大学
|
||||
|
||||
### 同济大学研究生院通知公告
|
||||
|
||||
<Route author="sushengmao" example="/tjuyjs" path="/tjuyjs" />
|
||||
|
||||
### 同济大学软件学院通知
|
||||
|
||||
<Route author="sgqy" example="/tju/sse/xwdt" path="/tju/sse/:type?" :paramsDesc="['通知类型. 默认为 `xwdt`']">
|
||||
@@ -1394,6 +1438,14 @@ https://rsshub.app/**nuist**/`bulletin` 或 https://rsshub.app/**nuist**/`bullet
|
||||
|
||||
</Route>
|
||||
|
||||
### 中国海洋大学研究生院
|
||||
|
||||
<Route author="sushengmao" example="/outyjs" path="/outyjs" />
|
||||
|
||||
### 中国海洋大学信电学院通知公告
|
||||
|
||||
<Route author="sushengmao" example="/outele" path="/outele" />
|
||||
|
||||
## 中国科学院
|
||||
|
||||
### 上海微系统与信息技术研究所学术活动
|
||||
@@ -1412,6 +1464,10 @@ https://rsshub.app/**nuist**/`bulletin` 或 https://rsshub.app/**nuist**/`bullet
|
||||
|
||||
## 中国石油大学(华东)
|
||||
|
||||
### 中国石油大学研究生院通知公告
|
||||
|
||||
<Route author="sushengmao" example="/upcyjs" path="/upcyjs" />
|
||||
|
||||
### 主页
|
||||
|
||||
<Route author="Veagau" example="/upc/main" path="/upc/main/:type" :paramsDesc="['分类, 见下表']">
|
||||
@@ -1444,6 +1500,16 @@ https://rsshub.app/**nuist**/`bulletin` 或 https://rsshub.app/**nuist**/`bullet
|
||||
|
||||
</Route>
|
||||
|
||||
## 中科院
|
||||
|
||||
### 中科院自动化所
|
||||
|
||||
<Route author="sushengmao" example="/zkyyjs" path="/zkyyjs" />
|
||||
|
||||
### 中科院人工智能所
|
||||
|
||||
<Route author="sushengmao" example="/zkyai" path="/zkyai" />
|
||||
|
||||
## 中南大学
|
||||
|
||||
### 招聘信息
|
||||
|
||||
108
lib/router.js
108
lib/router.js
@@ -226,9 +226,6 @@ router.get('/jiemian/list/:cid', require('./routes/jiemian/list.js'));
|
||||
// 好奇心日报
|
||||
router.get('/qdaily/:type/:id', require('./routes/qdaily/index'));
|
||||
|
||||
// WEEX
|
||||
router.get('/weexcn/news/:typeid', require('./routes/weexcn/index'));
|
||||
|
||||
// 爱奇艺
|
||||
router.get('/iqiyi/dongman/:id', require('./routes/iqiyi/dongman'));
|
||||
router.get('/iqiyi/user/video/:uid', require('./routes/iqiyi/video'));
|
||||
@@ -433,9 +430,6 @@ router.get('/xueqiu/stock_info/:id/:type?', require('./routes/xueqiu/stock_info'
|
||||
router.get('/xueqiu/snb/:id', require('./routes/xueqiu/snb'));
|
||||
router.get('/xueqiu/hots', require('./routes/xueqiu/hots'));
|
||||
|
||||
// 天天基金
|
||||
router.get('/eastmoney/user/:uid', require('./routes/eastmoney/user'));
|
||||
|
||||
// Greasy Fork
|
||||
router.get('/greasyfork/:language/:domain?', require('./routes/greasyfork/scripts'));
|
||||
|
||||
@@ -545,9 +539,6 @@ router.get('/sayhuahuo', require('./routes/galgame/sayhuahuo'));
|
||||
// 终点分享
|
||||
router.get('/zdfx', require('./routes/galgame/zdfx'));
|
||||
|
||||
// 紳士漫畫
|
||||
router.get('/ssmh', require('./routes/ssmh'));
|
||||
|
||||
// 北京理工大学
|
||||
router.get('/bit/jwc', require('./routes/universities/bit/jwc/jwc'));
|
||||
router.get('/bit/cs', require('./routes/universities/bit/cs/cs'));
|
||||
@@ -699,9 +690,6 @@ router.get('/hust/auto/news/', require('./routes/universities/hust/aia/news'));
|
||||
router.get('/hust/aia/news/', require('./routes/universities/hust/aia/news'));
|
||||
router.get('/hust/aia/notice/:type?', require('./routes/universities/hust/aia/notice'));
|
||||
|
||||
// 武昌首义学院
|
||||
router.get('/wsyu/news/:type?', require('./routes/universities/wsyu/news'));
|
||||
|
||||
// 井冈山大学
|
||||
router.get('/jgsu/jwc', require('./routes/universities/jgsu/jwc'));
|
||||
|
||||
@@ -1779,12 +1767,31 @@ router.get('/lkong/thread/:id', require('./routes/lkong/thread'));
|
||||
// router.get('/lkong/user/:id', require('./routes/lkong/user'));
|
||||
|
||||
// 坂道系列资讯
|
||||
// 坂道系列官网新闻
|
||||
router.get('/nogizaka46/news', require('./routes/nogizaka46/news'));
|
||||
router.get('/keyakizaka46/news', require('./routes/keyakizaka46/news'));
|
||||
router.get('/keyakizaka46/blog', require('./routes/keyakizaka46/blog'));
|
||||
router.get('/hinatazaka46/news', require('./routes/hinatazaka46/news'));
|
||||
router.get('/keyakizaka46/blog', require('./routes/keyakizaka46/blog'));
|
||||
router.get('/hinatazaka46/blog', require('./routes/hinatazaka46/blog'));
|
||||
|
||||
// 酷安
|
||||
router.get('/coolapk/tuwen', require('./routes/coolapk/tuwen'));
|
||||
|
||||
// 模型网
|
||||
router.get('/moxingnet', require('./routes/moxingnet'));
|
||||
|
||||
// 湖北大学
|
||||
router.get('/hubu/news/:type', require('./routes/universities/hubu/news'));
|
||||
|
||||
// 大连海事大学
|
||||
router.get('/dlmu/news/:type', require('./routes/universities/dlmu/news'));
|
||||
|
||||
// Rockstar Games Social Club
|
||||
router.get('/socialclub/events/:game?', require('./routes/socialclub/events'));
|
||||
|
||||
// CTFHub Event Calendar
|
||||
router.get('/ctfhub/calendar/:limit?/:form?/:class?/:title?', require('./routes/ctfhub'));
|
||||
|
||||
// 阿里云
|
||||
router.get('/aliyun/database_month', require('./routes/aliyun/database_month'));
|
||||
router.get('/aliyun/notice/:type?', require('./routes/aliyun/notice'));
|
||||
@@ -2394,23 +2401,74 @@ router.get('/moxingfans', require('./routes/moxingfans'));
|
||||
// Chiphell
|
||||
router.get('/chiphell/forum/:forumId?', require('./routes/chiphell/forum'));
|
||||
|
||||
// 酷安
|
||||
router.get('/coolapk/tuwen', require('./routes/coolapk/tuwen'));
|
||||
// 华东理工大学研究生院
|
||||
router.get('/ecustyjs', require('./routes/universities/ecustyjs/ecustyjs'));
|
||||
|
||||
// CTFHub Event Calendar
|
||||
router.get('/ctfhub/calendar/:limit?/:form?/:class?/:title?', require('./routes/ctfhub'));
|
||||
// 同济大学研究生院
|
||||
router.get('/tjuyjs', require('./routes/universities/tjuyjs/tjuyjs'));
|
||||
|
||||
// 模型网
|
||||
router.get('/moxingnet', require('./routes/moxingnet'));
|
||||
// 中国石油大学研究生院
|
||||
router.get('/upcyjs', require('./routes/universities/upcyjs/upcyjs'));
|
||||
|
||||
// Rockstar Games Social Club
|
||||
router.get('/socialclub/events/:game?', require('./routes/socialclub/events'));
|
||||
// 中国海洋大学研究生院
|
||||
router.get('/outyjs', require('./routes/universities/outyjs/outyjs'));
|
||||
|
||||
// 湖北大学
|
||||
router.get('/hubu/news/:type', require('./routes/universities/hubu/news'));
|
||||
// 中科院人工智能所
|
||||
router.get('/zkyai', require('./routes/universities/zkyai/zkyai'));
|
||||
|
||||
// 大连海事大学
|
||||
router.get('/dlmu/news/:type', require('./routes/universities/dlmu/news'));
|
||||
// 中科院自动化所
|
||||
router.get('/zkyyjs', require('./routes/universities/zkyyjs/zkyyjs'));
|
||||
|
||||
// 中国海洋大学信电学院
|
||||
router.get('/outele', require('./routes/universities/outele/outele'));
|
||||
|
||||
// 华东师范大学研究生院
|
||||
router.get('/ecnuyjs', require('./routes/universities/ecnuyjs/ecnuyjs'));
|
||||
|
||||
// 考研帮调剂信息
|
||||
router.get('/kaoyan', require('./routes/kaoyan/kaoyan'));
|
||||
|
||||
// 华中科技大学研究生院
|
||||
router.get('/hustyjs', require('./routes/universities/hustyjs/hustyjs'));
|
||||
|
||||
// 华中师范大学研究生院
|
||||
router.get('/ccnuyjs', require('./routes/universities/ccnu/ccnuyjs'));
|
||||
|
||||
// 华中师范大学计算机学院
|
||||
router.get('/ccnucs', require('./routes/universities/ccnu/ccnucs'));
|
||||
|
||||
// 华中师范大学伍论贡学院
|
||||
router.get('/ccnuwu', require('./routes/universities/ccnu/ccnuwu'));
|
||||
|
||||
// WEEX
|
||||
router.get('/weexcn/news/:typeid', require('./routes/weexcn/index'));
|
||||
|
||||
// 天天基金
|
||||
router.get('/eastmoney/user/:uid', require('./routes/eastmoney/user'));
|
||||
|
||||
// 紳士漫畫
|
||||
router.get('/ssmh', require('./routes/ssmh'));
|
||||
|
||||
// 武昌首义学院
|
||||
router.get('/wsyu/news/:type?', require('./routes/universities/wsyu/news'));
|
||||
|
||||
// 华南师范大学研究生学院
|
||||
router.get('/scnuyjs', require('./routes/universities/scnu/scnuyjs'));
|
||||
|
||||
// 华南师范大学软件学院
|
||||
router.get('/scnucs', require('./routes/universities/scnu/scnucs'));
|
||||
|
||||
// 华南理工大学研究生院
|
||||
router.get('/scutyjs', require('./routes/universities/scut/scutyjs'));
|
||||
|
||||
// 华南农业大学研究生院通知公告
|
||||
router.get('/scauyjs', require('./routes/universities/scauyjs/scauyjs'));
|
||||
|
||||
// 北京大学研究生招生网通知公告
|
||||
router.get('/pkuyjs', require('./routes/universities/pku/pkuyjs'));
|
||||
|
||||
// 北京理工大学研究生通知公告
|
||||
router.get('/bityjs', require('./routes/universities/bit/bityjs'));
|
||||
|
||||
// 湖南科技大学教务处
|
||||
router.get('/hnust/jwc', require('./routes/universities/hnust/jwc/index'));
|
||||
|
||||
23
lib/routes/kaoyan/kaoyan.js
Normal file
23
lib/routes/kaoyan/kaoyan.js
Normal file
@@ -0,0 +1,23 @@
|
||||
const got = require('@/utils/got');
|
||||
const cheerio = require('cheerio');
|
||||
|
||||
module.exports = async (ctx) => {
|
||||
const link = 'http://tiaoji.kaoyan.com/xinxi/';
|
||||
const response = await got.get(link);
|
||||
const $ = cheerio.load(response.data);
|
||||
const list = $('.areaZslist li').slice(0, 10);
|
||||
|
||||
ctx.state.data = {
|
||||
title: '考研帮调剂信息',
|
||||
link: link,
|
||||
description: '考研帮调剂信息',
|
||||
item:
|
||||
list &&
|
||||
list
|
||||
.map((index, item) => {
|
||||
item = $(item);
|
||||
return { title: item.find('li a').text(), description: item.find('li a').text(), link: item.find('li a').attr('href') };
|
||||
})
|
||||
.get(),
|
||||
};
|
||||
};
|
||||
23
lib/routes/universities/bit/bityjs.js
Normal file
23
lib/routes/universities/bit/bityjs.js
Normal file
@@ -0,0 +1,23 @@
|
||||
const got = require('@/utils/got');
|
||||
const cheerio = require('cheerio');
|
||||
|
||||
module.exports = async (ctx) => {
|
||||
const link = 'http://grd.bit.edu.cn/zsgz/zsxx/index.htm';
|
||||
const response = await got.get(link);
|
||||
const $ = cheerio.load(response.data);
|
||||
const list = $('.tongzhigonggao li').slice(0, 10);
|
||||
|
||||
ctx.state.data = {
|
||||
title: '北京理工大学研究生院',
|
||||
link: link,
|
||||
description: '北京理工大学研究生院通知公告',
|
||||
item:
|
||||
list &&
|
||||
list
|
||||
.map((index, item) => {
|
||||
item = $(item);
|
||||
return { title: item.find('li a').text(), description: item.find('li a').text(), link: item.find('li a').attr('href') };
|
||||
})
|
||||
.get(),
|
||||
};
|
||||
};
|
||||
@@ -16,7 +16,8 @@ module.exports = async (ctx) => {
|
||||
list
|
||||
.map((index, item) => {
|
||||
item = $(item);
|
||||
return { description: item.find('li a').text(), link: item.find('li a').attr('href') };
|
||||
|
||||
return { title: item.find('li a').text(), description: item.find('li a').text(), link: item.find('li a').attr('href') };
|
||||
})
|
||||
.get(),
|
||||
};
|
||||
|
||||
@@ -16,7 +16,8 @@ module.exports = async (ctx) => {
|
||||
list
|
||||
.map((index, item) => {
|
||||
item = $(item);
|
||||
return { description: item.find('li a').text(), link: item.find('li a').attr('href') };
|
||||
|
||||
return { title: item.find('li a').text(), description: item.find('li a').text(), link: item.find('li a').attr('href') };
|
||||
})
|
||||
.get(),
|
||||
};
|
||||
|
||||
23
lib/routes/universities/ccnu/ccnucs.js
Normal file
23
lib/routes/universities/ccnu/ccnucs.js
Normal file
@@ -0,0 +1,23 @@
|
||||
const got = require('@/utils/got');
|
||||
const cheerio = require('cheerio');
|
||||
|
||||
module.exports = async (ctx) => {
|
||||
const link = 'http://cs.ccnu.edu.cn/xygk/xytg.htm';
|
||||
const response = await got.get(link);
|
||||
const $ = cheerio.load(response.data);
|
||||
const list = $('.NewsList li ').slice(0, 10);
|
||||
|
||||
ctx.state.data = {
|
||||
title: '华中师范大学计算机学院',
|
||||
link: link,
|
||||
description: '华中师范大学计算机学院通知公告',
|
||||
item:
|
||||
list &&
|
||||
list
|
||||
.map((index, item) => {
|
||||
item = $(item);
|
||||
return { title: item.find('lI A').text(), description: item.find('lI A').text(), link: item.find('lI A').attr('href') };
|
||||
})
|
||||
.get(),
|
||||
};
|
||||
};
|
||||
23
lib/routes/universities/ccnu/ccnuwu.js
Normal file
23
lib/routes/universities/ccnu/ccnuwu.js
Normal file
@@ -0,0 +1,23 @@
|
||||
const got = require('@/utils/got');
|
||||
const cheerio = require('cheerio');
|
||||
|
||||
module.exports = async (ctx) => {
|
||||
const link = 'http://uowji.ccnu.edu.cn/tzgg.htm';
|
||||
const response = await got.get(link);
|
||||
const $ = cheerio.load(response.data);
|
||||
const list = $('.zy-mainxrx li ').slice(0, 10);
|
||||
|
||||
ctx.state.data = {
|
||||
title: '华中师范大学伍论贡学院',
|
||||
link: link,
|
||||
description: '华中师范大学伍论贡学院通知公告',
|
||||
item:
|
||||
list &&
|
||||
list
|
||||
.map((index, item) => {
|
||||
item = $(item);
|
||||
return { title: item.find('lI A').text(), description: item.find('lI A').text(), link: item.find('lI A').attr('href') };
|
||||
})
|
||||
.get(),
|
||||
};
|
||||
};
|
||||
23
lib/routes/universities/ccnu/ccnuyjs.js
Normal file
23
lib/routes/universities/ccnu/ccnuyjs.js
Normal file
@@ -0,0 +1,23 @@
|
||||
const got = require('@/utils/got');
|
||||
const cheerio = require('cheerio');
|
||||
|
||||
module.exports = async (ctx) => {
|
||||
const link = 'http://gs.ccnu.edu.cn/zsgz/ssyjs.htm';
|
||||
const response = await got.get(link);
|
||||
const $ = cheerio.load(response.data);
|
||||
const list = $('.main-zyrx li ').slice(0, 10);
|
||||
|
||||
ctx.state.data = {
|
||||
title: '华中师范大学研究生院',
|
||||
link: link,
|
||||
description: '华中师范大学研究生院通知公告',
|
||||
item:
|
||||
list &&
|
||||
list
|
||||
.map((index, item) => {
|
||||
item = $(item);
|
||||
return { title: item.find('lI A').text(), description: item.find('lI A').text(), link: item.find('lI A').attr('href') };
|
||||
})
|
||||
.get(),
|
||||
};
|
||||
};
|
||||
@@ -16,7 +16,7 @@ module.exports = async (ctx) => {
|
||||
list
|
||||
.map((index, item) => {
|
||||
item = $(item);
|
||||
return { description: item.find('td a').text(), link: item.find('td a').attr('href') };
|
||||
return { title: item.find('td a').text(), description: item.find('td a').text(), link: item.find('td a').attr('href') };
|
||||
})
|
||||
.get(),
|
||||
};
|
||||
|
||||
23
lib/routes/universities/ecnuyjs/ecnuyjs.js
Normal file
23
lib/routes/universities/ecnuyjs/ecnuyjs.js
Normal file
@@ -0,0 +1,23 @@
|
||||
const got = require('@/utils/got');
|
||||
const cheerio = require('cheerio');
|
||||
|
||||
module.exports = async (ctx) => {
|
||||
const link = 'http://yz.kaoyan.com/ecnu/tiaoji/';
|
||||
const response = await got.get(link);
|
||||
const $ = cheerio.load(response.data);
|
||||
const list = $('.subList li').slice(0, 10);
|
||||
|
||||
ctx.state.data = {
|
||||
title: '华东师范大学研究生院',
|
||||
link: link,
|
||||
description: '华东师范大学研究生调剂信息',
|
||||
item:
|
||||
list &&
|
||||
list
|
||||
.map((index, item) => {
|
||||
item = $(item);
|
||||
return { title: item.find('li a').text(), description: item.find('li a').text(), link: item.find('li a').attr('href') };
|
||||
})
|
||||
.get(),
|
||||
};
|
||||
};
|
||||
23
lib/routes/universities/ecustyjs/ecustyjs.js
Normal file
23
lib/routes/universities/ecustyjs/ecustyjs.js
Normal file
@@ -0,0 +1,23 @@
|
||||
const got = require('@/utils/got');
|
||||
const cheerio = require('cheerio');
|
||||
|
||||
module.exports = async (ctx) => {
|
||||
const link = 'http://gschool.ecust.edu.cn/_s51/7962/list.psp';
|
||||
const response = await got.get(link);
|
||||
const $ = cheerio.load(response.data);
|
||||
const list = $('.wp_article_list li').slice(0, 10);
|
||||
|
||||
ctx.state.data = {
|
||||
title: '华东理工大学研究生院',
|
||||
link: link,
|
||||
description: '华东理工大学研究生院通知公告',
|
||||
item:
|
||||
list &&
|
||||
list
|
||||
.map((index, item) => {
|
||||
item = $(item);
|
||||
return { title: item.find('li a').text(), description: item.find('li a').text(), link: item.find('li a').attr('href') };
|
||||
})
|
||||
.get(),
|
||||
};
|
||||
};
|
||||
@@ -16,7 +16,8 @@ module.exports = async (ctx) => {
|
||||
list
|
||||
.map((index, item) => {
|
||||
item = $(item);
|
||||
return { description: item.find('li a').text(), link: item.find('li a').attr('href') };
|
||||
|
||||
return { title: item.find('li a').text(), description: item.find('li a').text(), link: item.find('li a').attr('href') };
|
||||
})
|
||||
.get(),
|
||||
};
|
||||
|
||||
23
lib/routes/universities/hustyjs/hustyjs.js
Normal file
23
lib/routes/universities/hustyjs/hustyjs.js
Normal file
@@ -0,0 +1,23 @@
|
||||
const got = require('@/utils/got');
|
||||
const cheerio = require('cheerio');
|
||||
|
||||
module.exports = async (ctx) => {
|
||||
const link = 'http://gszs.hust.edu.cn/zsxx/ggtz.htm';
|
||||
const response = await got.get(link);
|
||||
const $ = cheerio.load(response.data);
|
||||
const list = $('.main_conRCb li').slice(0, 10);
|
||||
|
||||
ctx.state.data = {
|
||||
title: '华中科技大学研究生院',
|
||||
link: link,
|
||||
description: '华中科技大学研究生调剂信息',
|
||||
item:
|
||||
list &&
|
||||
list
|
||||
.map((index, item) => {
|
||||
item = $(item);
|
||||
return { title: item.find('li a').text(), description: item.find('li a').text(), link: item.find('li a').attr('href') };
|
||||
})
|
||||
.get(),
|
||||
};
|
||||
};
|
||||
23
lib/routes/universities/outele/outele.js
Normal file
23
lib/routes/universities/outele/outele.js
Normal file
@@ -0,0 +1,23 @@
|
||||
const got = require('@/utils/got');
|
||||
const cheerio = require('cheerio');
|
||||
|
||||
module.exports = async (ctx) => {
|
||||
const link = 'http://it.ouc.edu.cn/_s381/16619/list.psp';
|
||||
const response = await got.get(link);
|
||||
const $ = cheerio.load(response.data);
|
||||
const list = $('.common-lists li').slice(0, 10);
|
||||
|
||||
ctx.state.data = {
|
||||
title: '中国海洋大学信电学院',
|
||||
link: link,
|
||||
description: '中国海洋大学信电学院通知公告',
|
||||
item:
|
||||
list &&
|
||||
list
|
||||
.map((index, item) => {
|
||||
item = $(item);
|
||||
return { title: item.find('li a').text(), description: item.find('li a').text(), link: item.find('li a').attr('href') };
|
||||
})
|
||||
.get(),
|
||||
};
|
||||
};
|
||||
23
lib/routes/universities/outyjs/outyjs.js
Normal file
23
lib/routes/universities/outyjs/outyjs.js
Normal file
@@ -0,0 +1,23 @@
|
||||
const got = require('@/utils/got');
|
||||
const cheerio = require('cheerio');
|
||||
|
||||
module.exports = async (ctx) => {
|
||||
const link = 'http://yz.ouc.edu.cn/5926/list.htm';
|
||||
const response = await got.get(link);
|
||||
const $ = cheerio.load(response.data);
|
||||
const list = $('.wp_article_list li').slice(0, 10);
|
||||
|
||||
ctx.state.data = {
|
||||
title: '中国海洋大学研究生院',
|
||||
link: link,
|
||||
description: '中国海洋大学研究生院通知公告',
|
||||
item:
|
||||
list &&
|
||||
list
|
||||
.map((index, item) => {
|
||||
item = $(item);
|
||||
return { title: item.find('li a').text(), description: item.find('li a').text(), link: item.find('li a').attr('href') };
|
||||
})
|
||||
.get(),
|
||||
};
|
||||
};
|
||||
23
lib/routes/universities/pku/pkuyjs.js
Normal file
23
lib/routes/universities/pku/pkuyjs.js
Normal file
@@ -0,0 +1,23 @@
|
||||
const got = require('@/utils/got');
|
||||
const cheerio = require('cheerio');
|
||||
|
||||
module.exports = async (ctx) => {
|
||||
const link = 'https://admission.pku.edu.cn/zsxx/sszs/index.htm';
|
||||
const response = await got.get(link);
|
||||
const $ = cheerio.load(response.data);
|
||||
const list = $('.zsxx_cont_list li').slice(0, 10);
|
||||
|
||||
ctx.state.data = {
|
||||
title: '北京大学研究生院',
|
||||
link: link,
|
||||
description: '北京大学研究生院通知公告',
|
||||
item:
|
||||
list &&
|
||||
list
|
||||
.map((index, item) => {
|
||||
item = $(item);
|
||||
return { title: item.find('li a').text(), description: item.find('li a').text(), link: item.find('li a').attr('href') };
|
||||
})
|
||||
.get(),
|
||||
};
|
||||
};
|
||||
23
lib/routes/universities/scauyjs/scauyjs.js
Normal file
23
lib/routes/universities/scauyjs/scauyjs.js
Normal file
@@ -0,0 +1,23 @@
|
||||
const got = require('@/utils/got');
|
||||
const cheerio = require('cheerio');
|
||||
|
||||
module.exports = async (ctx) => {
|
||||
const link = 'https://yzb.scau.edu.cn/2136/list1.htm';
|
||||
const response = await got.get(link);
|
||||
const $ = cheerio.load(response.data);
|
||||
const list = $('#wp_news_w25 tr').slice(0, 10);
|
||||
|
||||
ctx.state.data = {
|
||||
title: '华南农业大学研究生院',
|
||||
link: link,
|
||||
description: '华南农业大学研究生院通知公告',
|
||||
item:
|
||||
list &&
|
||||
list
|
||||
.map((index, item) => {
|
||||
item = $(item);
|
||||
return { title: item.find('tr a').text(), description: item.find('tr a').text(), link: item.find('tr a').attr('href') };
|
||||
})
|
||||
.get(),
|
||||
};
|
||||
};
|
||||
23
lib/routes/universities/scnu/scnucs.js
Normal file
23
lib/routes/universities/scnu/scnucs.js
Normal file
@@ -0,0 +1,23 @@
|
||||
const got = require('@/utils/got');
|
||||
const cheerio = require('cheerio');
|
||||
|
||||
module.exports = async (ctx) => {
|
||||
const link = 'http://ss.scnu.edu.cn/tongzhigonggao/';
|
||||
const response = await got.get(link);
|
||||
const $ = cheerio.load(response.data);
|
||||
const list = $('.listshow li').slice(0, 10);
|
||||
|
||||
ctx.state.data = {
|
||||
title: '华南师范大学软件学院',
|
||||
link: link,
|
||||
description: '华南师范大学软件学院',
|
||||
item:
|
||||
list &&
|
||||
list
|
||||
.map((index, item) => {
|
||||
item = $(item);
|
||||
return { title: item.find('li a').text(), description: item.find('li a').text(), link: item.find('li a').attr('href') };
|
||||
})
|
||||
.get(),
|
||||
};
|
||||
};
|
||||
23
lib/routes/universities/scnu/scnuyjs.js
Normal file
23
lib/routes/universities/scnu/scnuyjs.js
Normal file
@@ -0,0 +1,23 @@
|
||||
const got = require('@/utils/got');
|
||||
const cheerio = require('cheerio');
|
||||
|
||||
module.exports = async (ctx) => {
|
||||
const link = 'https://yz.scnu.edu.cn/tongzhigonggao/ssgg/';
|
||||
const response = await got.get(link);
|
||||
const $ = cheerio.load(response.data);
|
||||
const list = $('.listmod div').slice(0, 10);
|
||||
|
||||
ctx.state.data = {
|
||||
title: '华南师范大学研究生院',
|
||||
link: link,
|
||||
description: '华南师范大学研究生院通知公告',
|
||||
item:
|
||||
list &&
|
||||
list
|
||||
.map((index, item) => {
|
||||
item = $(item);
|
||||
return { title: item.find('div a').text(), description: item.find('div a').text(), link: item.find('div a').attr('href') };
|
||||
})
|
||||
.get(),
|
||||
};
|
||||
};
|
||||
23
lib/routes/universities/scut/scutyjs.js
Normal file
23
lib/routes/universities/scut/scutyjs.js
Normal file
@@ -0,0 +1,23 @@
|
||||
const got = require('@/utils/got');
|
||||
const cheerio = require('cheerio');
|
||||
|
||||
module.exports = async (ctx) => {
|
||||
const link = 'http://admission.scut.edu.cn/17700/list.htm';
|
||||
const response = await got.get(link);
|
||||
const $ = cheerio.load(response.data);
|
||||
const list = $('.wp_article_list li').slice(0, 10);
|
||||
|
||||
ctx.state.data = {
|
||||
title: '华南理工大学研究生院',
|
||||
link: link,
|
||||
description: '华南理工大学研究生院通知公告',
|
||||
item:
|
||||
list &&
|
||||
list
|
||||
.map((index, item) => {
|
||||
item = $(item);
|
||||
return { title: item.find('li a').text(), description: item.find('li a').text(), link: item.find('li a').attr('href') };
|
||||
})
|
||||
.get(),
|
||||
};
|
||||
};
|
||||
@@ -16,7 +16,8 @@ module.exports = async (ctx) => {
|
||||
list
|
||||
.map((index, item) => {
|
||||
item = $(item);
|
||||
return { description: item.find('li a').text(), link: item.find('li a').attr('href') };
|
||||
|
||||
return { title: item.find('li a').text(), description: item.find('li a').text(), link: item.find('li a').attr('href') };
|
||||
})
|
||||
.get(),
|
||||
};
|
||||
|
||||
@@ -16,7 +16,8 @@ module.exports = async (ctx) => {
|
||||
list
|
||||
.map((index, item) => {
|
||||
item = $(item);
|
||||
return { description: item.find('li A').text(), link: item.find('li A').attr('href') };
|
||||
|
||||
return { title: item.find('li A').text(), description: item.find('li A').text(), link: item.find('li A').attr('href') };
|
||||
})
|
||||
.get(),
|
||||
};
|
||||
|
||||
23
lib/routes/universities/tjuyjs/tjuyjs.js
Normal file
23
lib/routes/universities/tjuyjs/tjuyjs.js
Normal file
@@ -0,0 +1,23 @@
|
||||
const got = require('@/utils/got');
|
||||
const cheerio = require('cheerio');
|
||||
|
||||
module.exports = async (ctx) => {
|
||||
const link = 'http://yz.tongji.edu.cn/zsxw/ggtz.htm';
|
||||
const response = await got.get(link);
|
||||
const $ = cheerio.load(response.data);
|
||||
const list = $('.list_main_content li').slice(0, 10);
|
||||
|
||||
ctx.state.data = {
|
||||
title: '同济大学研究生院',
|
||||
link: link,
|
||||
description: '同济大学研究生院通知公告',
|
||||
item:
|
||||
list &&
|
||||
list
|
||||
.map((index, item) => {
|
||||
item = $(item);
|
||||
return { title: item.find('li a').text(), description: item.find('li a').text(), link: item.find('li a').attr('href') };
|
||||
})
|
||||
.get(),
|
||||
};
|
||||
};
|
||||
23
lib/routes/universities/upcyjs/upcyjs.js
Normal file
23
lib/routes/universities/upcyjs/upcyjs.js
Normal file
@@ -0,0 +1,23 @@
|
||||
const got = require('@/utils/got');
|
||||
const cheerio = require('cheerio');
|
||||
|
||||
module.exports = async (ctx) => {
|
||||
const link = 'http://zs.gs.upc.edu.cn/sszs/list.htm';
|
||||
const response = await got.get(link);
|
||||
const $ = cheerio.load(response.data);
|
||||
const list = $('.list tr').slice(0, 10);
|
||||
|
||||
ctx.state.data = {
|
||||
title: '中国石油大学研究生院',
|
||||
link: link,
|
||||
description: '中国石油大学研究生院通知公告',
|
||||
item:
|
||||
list &&
|
||||
list
|
||||
.map((index, item) => {
|
||||
item = $(item);
|
||||
return { title: item.find('tr a').text(), description: item.find('tr a').text(), link: item.find('tr a').attr('href') };
|
||||
})
|
||||
.get(),
|
||||
};
|
||||
};
|
||||
23
lib/routes/universities/zkyai/zkyai.js
Normal file
23
lib/routes/universities/zkyai/zkyai.js
Normal file
@@ -0,0 +1,23 @@
|
||||
const got = require('@/utils/got');
|
||||
const cheerio = require('cheerio');
|
||||
|
||||
module.exports = async (ctx) => {
|
||||
const link = 'https://ai.ucas.ac.cn/index.php/zh-cn/tzgg';
|
||||
const response = await got.get(link);
|
||||
const $ = cheerio.load(response.data);
|
||||
const list = $('.b-list li').slice(0, 10);
|
||||
|
||||
ctx.state.data = {
|
||||
title: '中科院人工智能所',
|
||||
link: link,
|
||||
description: '中科院人工智能通知公告',
|
||||
item:
|
||||
list &&
|
||||
list
|
||||
.map((index, item) => {
|
||||
item = $(item);
|
||||
return { title: item.find('li a').text(), description: item.find('li a').text(), link: item.find('li a').attr('href') };
|
||||
})
|
||||
.get(),
|
||||
};
|
||||
};
|
||||
23
lib/routes/universities/zkyyjs/zkyyjs.js
Normal file
23
lib/routes/universities/zkyyjs/zkyyjs.js
Normal file
@@ -0,0 +1,23 @@
|
||||
const got = require('@/utils/got');
|
||||
const cheerio = require('cheerio');
|
||||
|
||||
module.exports = async (ctx) => {
|
||||
const link = 'http://www.ia.cas.cn/yjsjy/zs/sszs/';
|
||||
const response = await got.get(link);
|
||||
const $ = cheerio.load(response.data);
|
||||
const list = $('.col-md-9 li').slice(0, 10);
|
||||
|
||||
ctx.state.data = {
|
||||
title: '中科院自动化所',
|
||||
link: link,
|
||||
description: '中科院自动化所通知公告',
|
||||
item:
|
||||
list &&
|
||||
list
|
||||
.map((index, item) => {
|
||||
item = $(item);
|
||||
return { title: item.find('li a').text(), description: item.find('li a').text(), link: item.find('li a').attr('href') };
|
||||
})
|
||||
.get(),
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user