Skip to content

Commit

Permalink
feat: 新增中科院自动化所通知公告等路由 (DIYgod#4283)
Browse files Browse the repository at this point in the history
  • Loading branch information
shengmaosu authored Apr 2, 2020
1 parent 72a0858 commit 0984970
Show file tree
Hide file tree
Showing 28 changed files with 607 additions and 35 deletions.
6 changes: 6 additions & 0 deletions docs/other.md
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,12 @@ type 为 all 时,category 参数不支持 cost 和 free

<Route author="cc798461" example="/moxingfans" path="/moxingfans"/>

## 考研帮

### 考研帮调剂信息

<Route author="sushengmao" example="/kaoyan" path="/kaoyan" />

## 空气质量

### 实时 AQI
Expand Down
74 changes: 70 additions & 4 deletions docs/university.md
Original file line number Diff line number Diff line change
Expand Up @@ -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" />

## 桂林电子科技大学

Expand Down Expand Up @@ -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`']">
Expand 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"/>
Expand All @@ -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中找到']">
Expand All @@ -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" />
Expand Down Expand Up @@ -660,9 +700,9 @@ category 列表:

## 南方科技大学

## 南方科技大学研究生网通知公告
### 南方科技大学研究生网通知公告

<Route author="sushengmao" example="/sustyjs/sustyjs" path="/sustyjs/sustyjs" />
<Route author="sushengmao" example="/sustyjs" path="/sustyjs" />

## 南京工业大学

Expand Down Expand Up @@ -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" />

### 深圳大学研究生招生网

Expand Down Expand Up @@ -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`']">
Expand Down Expand Up @@ -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" />

## 中国科学院

### 上海微系统与信息技术研究所学术活动
Expand All @@ -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="['分类, 见下表']">
Expand Down Expand Up @@ -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" />

## 中南大学

### 招聘信息
Expand Down
108 changes: 83 additions & 25 deletions lib/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
Expand Down Expand Up @@ -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'));

Expand Down Expand Up @@ -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'));
Expand Down Expand Up @@ -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'));

Expand Down Expand Up @@ -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'));
Expand Down Expand Up @@ -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'));
Expand Down
23 changes: 23 additions & 0 deletions lib/routes/kaoyan/kaoyan.js
Original file line number Diff line number Diff line change
@@ -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 changes: 23 additions & 0 deletions lib/routes/universities/bit/bityjs.js
Original file line number Diff line number Diff line change
@@ -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(),
};
};
3 changes: 2 additions & 1 deletion lib/routes/universities/cauele/cauele.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
};
Expand Down
3 changes: 2 additions & 1 deletion lib/routes/universities/cauyjs/cauyjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
};
Expand Down
Loading

0 comments on commit 0984970

Please sign in to comment.