forked from DIYgod/RSSHub
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: 新增中科院自动化所通知公告等路由 (DIYgod#4283)
- Loading branch information
1 parent
72a0858
commit 0984970
Showing
28 changed files
with
607 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(), | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(), | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.