diff --git a/assets/radar-rules.js b/assets/radar-rules.js
index d6a042898..a5792199b 100755
--- a/assets/radar-rules.js
+++ b/assets/radar-rules.js
@@ -1879,6 +1879,25 @@
},
],
},
+ 'umass.edu': {
+ _name: 'UMASS Amherst',
+ ece: [
+ {
+ title: 'ECE News',
+ docs: 'http://docs.rsshub.app/en/university.html#umass-amherst',
+ source: '/news',
+ target: '/umass/amherst/ecenews',
+ },
+ ],
+ 'www.cics': [
+ {
+ title: 'CICS News',
+ docs: 'http://docs.rsshub.app/en/university.html#umass-amherst',
+ source: '/news',
+ target: '/umass/amherst/csnews',
+ },
+ ],
+ },
'lofter.com': {
_name: 'Lofter',
www: [
diff --git a/docs/en/university.md b/docs/en/university.md
index 83be07a44..6caedea7e 100644
--- a/docs/en/university.md
+++ b/docs/en/university.md
@@ -23,3 +23,13 @@ pageClass: routes
### News
+
+## UMASS Amherst
+
+### College of Electrical and Computer Engineering News
+
+
+
+### College of Information & Computer Sciences News
+
+
diff --git a/docs/university.md b/docs/university.md
index e438fa0d4..f80fbbb6b 100644
--- a/docs/university.md
+++ b/docs/university.md
@@ -750,6 +750,16 @@ jsjxy.hbut.edu.cn 证书链不全,自建 RSSHub 可设置环境变量 NODE_TLS
+## 马萨诸塞大学 阿默斯特分校 (UMASS Amherst)
+
+### 电子与计算机工程系新闻
+
+
+
+### 信息与计算机科学系新闻
+
+
+
## 南昌航空大学
### 教务处公告与新闻
diff --git a/lib/router.js b/lib/router.js
index f7f96ab26..b4de6a00d 100644
--- a/lib/router.js
+++ b/lib/router.js
@@ -2665,6 +2665,10 @@ router.get('/qingting/channel/:id', require('./routes/qingting/channel'));
// 金色财经
router.get('/jinse/lives', require('./routes/jinse/lives'));
+// University of Massachusetts Amherst
+router.get('/umass/amherst/ecenews', require('./routes/umass/amherst/ecenews'));
+router.get('/umass/amherst/csnews', require('./routes/umass/amherst/csnews'));
+
// 飘花电影网
router.get('/piaohua/hot', require('./routes/piaohua/hot'));
diff --git a/lib/routes/umass/amherst/csnews.js b/lib/routes/umass/amherst/csnews.js
new file mode 100644
index 000000000..51dd21229
--- /dev/null
+++ b/lib/routes/umass/amherst/csnews.js
@@ -0,0 +1,32 @@
+const got = require('@/utils/got');
+const cheerio = require('cheerio');
+
+module.exports = async (ctx) => {
+ const response = await got({
+ method: 'get',
+ url: 'https://www.cics.umass.edu/news',
+ });
+
+ const data = response.data;
+
+ const $ = cheerio.load(data);
+ const list = $('.view-mt-latest-news .views-row');
+ let itemPicUrl;
+ ctx.state.data = {
+ title: 'UMAmherst-CSNews',
+ link: 'https://www.cics.umass.edu/news',
+ item:
+ list &&
+ list
+ .map((index, item) => {
+ item = $(item);
+ itemPicUrl = item.find('.views-field-field-image img').attr('src');
+ return {
+ title: item.find('.views-field-title a').first().text(),
+ description: `
` + item.find('.views-field-body .field-content').first().text(),
+ link: item.find('.views-more-link').attr('href'),
+ };
+ })
+ .get(),
+ };
+};
diff --git a/lib/routes/umass/amherst/ecenews.js b/lib/routes/umass/amherst/ecenews.js
new file mode 100644
index 000000000..8125b540c
--- /dev/null
+++ b/lib/routes/umass/amherst/ecenews.js
@@ -0,0 +1,33 @@
+const got = require('@/utils/got');
+const cheerio = require('cheerio');
+
+module.exports = async (ctx) => {
+ const response = await got({
+ method: 'get',
+ url: 'https://ece.umass.edu/news',
+ });
+
+ const data = response.data;
+
+ const $ = cheerio.load(data);
+ const list = $('.view-news .views-row');
+ let itemPicUrl;
+
+ ctx.state.data = {
+ title: 'UMAmherst-ECENews',
+ link: 'https://ece.umass.edu/news',
+ item:
+ list &&
+ list
+ .map((index, item) => {
+ item = $(item);
+ itemPicUrl = item.find('.image-style-thumbnail').attr('src');
+ return {
+ title: item.find('.views-field-title a').first().text(),
+ description: `
` + item.find('div.field-content').last().text(),
+ link: item.find('.views-field-title a').attr('href'),
+ };
+ })
+ .get(),
+ };
+};