mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-09-24 23:12:34 +08:00
feat: add MITRE - All Publication (#5526)
This commit is contained in:
@@ -144,6 +144,12 @@ Official Website: [https://www.ssm.gov.mo/apps1/PreventWuhanInfection/en.aspx](h
|
||||
|
||||
</RouteEn>
|
||||
|
||||
## MITRE
|
||||
|
||||
### All Publications
|
||||
|
||||
<Route author="sbilly" example="/mitre/publications" path="/mitre/publications" />
|
||||
|
||||
## SANS Institute
|
||||
|
||||
### Latest conference materials
|
||||
|
||||
@@ -172,6 +172,12 @@ pageClass: routes
|
||||
<Route author="miaoyafeng" example="/producthunt/today" path="/producthunt/today">
|
||||
</Route>
|
||||
|
||||
## MITRE
|
||||
|
||||
### 全部出版物
|
||||
|
||||
<Route author="sbilly" example="/mitre/publications" path="/mitre/publications" />
|
||||
|
||||
## SANS Institute
|
||||
|
||||
### 最新会议材料
|
||||
|
||||
@@ -2014,6 +2014,9 @@ router.get('/sf/sffq-announce', require('./routes/sf/sffq-announce'));
|
||||
router.get('/queshu/sale', require('./routes/queshu/sale'));
|
||||
router.get('/queshu/book/:bookid', require('./routes/queshu/book'));
|
||||
|
||||
// MITRE
|
||||
router.get('/mitre/publications', require('./routes/mitre/publications'));
|
||||
|
||||
// SANS
|
||||
router.get('/sans/summit_archive', require('./routes/sans/summit_archive'));
|
||||
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
// MITRE - All Publications
|
||||
|
||||
// const got = require('@/utils/got');
|
||||
// const cheerio = require('cheerio');
|
||||
const buildData = require("@/utils/common-config");
|
||||
|
||||
module.exports = async (ctx) => {
|
||||
const link = `https://www.mitre.org/publications/all`;
|
||||
const host = `https://www.mitre.org`;
|
||||
ctx.state.data = await buildData({
|
||||
link,
|
||||
url: link,
|
||||
title: `%title%`,
|
||||
params: {
|
||||
title: "MITRE: All Publications",
|
||||
host,
|
||||
link,
|
||||
},
|
||||
item: {
|
||||
item: "div.list-item",
|
||||
title: `$('div.list-item div.list-main a span.title').text()`,
|
||||
link: `'%host%' + $('div.list-item div.list-main a').attr('href')`,
|
||||
category: `$('div.list-item div.list-main a span.time').text()`,
|
||||
description: `$('div.list-item div.list-main a span.teaser').html()`,
|
||||
},
|
||||
});
|
||||
};
|
||||
Reference in New Issue
Block a user