mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-09-24 23:12:34 +08:00
feat: 增加buaq.net站点RSS (#5592)
Co-authored-by: codefactor-io <support@codefactor.io>
This commit is contained in:
@@ -2262,4 +2262,15 @@
|
||||
},
|
||||
],
|
||||
},
|
||||
'buaq.net': {
|
||||
_name: '不安全资讯',
|
||||
'.': [
|
||||
{
|
||||
title: '不安全资讯',
|
||||
docs: 'http://docs.rsshub.app/new-media.html#bu-an-quan',
|
||||
source: '/',
|
||||
target: '/buaq',
|
||||
},
|
||||
],
|
||||
},
|
||||
});
|
||||
|
||||
@@ -1360,3 +1360,9 @@ QueryString:
|
||||
### 全文
|
||||
|
||||
<Route author="HenryQW" example="/zzz" path="/zzz/index"/>
|
||||
|
||||
## 不安全
|
||||
|
||||
### 全文
|
||||
|
||||
<Route author="22k" example="/buaq" path="/buaq/index"/>
|
||||
|
||||
@@ -3156,4 +3156,25 @@ router.get('/mingjian', require('./routes/mingjian/index'));
|
||||
// hentaimama
|
||||
router.get('/hentaimama/videos', require('./routes/hentaimama/videos'));
|
||||
|
||||
// 不安全
|
||||
router.get('/buaq', require('./routes/buaq/index'));
|
||||
|
||||
// 快出海
|
||||
router.get('/kchuhai', require('./routes/kchuhai/index'));
|
||||
|
||||
// i春秋资讯
|
||||
router.get('/ichunqiu', require('./routes/ichunqiu/index'));
|
||||
|
||||
// 冰山博客
|
||||
router.get('/bsblog123', require('./routes/bsblog123/index'));
|
||||
// start
|
||||
// 纳威安全导航
|
||||
router.get('/navisec', require('./routes/navisec/index'));
|
||||
|
||||
// 安全师
|
||||
router.get('/secshi', require('./routes/secshi/index'));
|
||||
|
||||
// 出海笔记
|
||||
router.get('/chuhaibiji', require('./routes/chuhaibiji/index'));
|
||||
|
||||
module.exports = router;
|
||||
|
||||
@@ -0,0 +1,29 @@
|
||||
const got = require('@/utils/got');
|
||||
const cheerio = require('cheerio');
|
||||
|
||||
module.exports = async (ctx) => {
|
||||
const baseUrl = 'https://bsblog123.com/';
|
||||
const response = await got({
|
||||
method: 'get',
|
||||
url: baseUrl,
|
||||
});
|
||||
const $ = cheerio.load(response.data); // 使用 cheerio 加载返回的 HTML
|
||||
const list = $('div[class="whitebg bloglist"] li');
|
||||
ctx.state.data = {
|
||||
title: `冰山博客 ~ 资讯`,
|
||||
link: `https://bsblog123.com`,
|
||||
description: '冰山博客 ~ 资讯',
|
||||
item:
|
||||
list &&
|
||||
list
|
||||
.map((index, item) => {
|
||||
item = $(item);
|
||||
return {
|
||||
title: $('h3.blogtitle', item).text(),
|
||||
link: $('h3 a', item).attr('href'),
|
||||
description: $('p', item).text(),
|
||||
};
|
||||
})
|
||||
.get(),
|
||||
};
|
||||
};
|
||||
@@ -0,0 +1,31 @@
|
||||
const got = require('@/utils/got');
|
||||
const cheerio = require('cheerio');
|
||||
|
||||
module.exports = async (ctx) => {
|
||||
const baseUrl = 'https://buaq.net';
|
||||
|
||||
const response = await got({
|
||||
method: 'get',
|
||||
url: baseUrl,
|
||||
});
|
||||
const $ = cheerio.load(response.data); // 使用 cheerio 加载返回的 HTML
|
||||
const list = $('tr[class]');
|
||||
|
||||
ctx.state.data = {
|
||||
title: `不安全文章 ~ 资讯`,
|
||||
link: `https://buaq.net/`,
|
||||
description: '不安全文章 ~ 资讯',
|
||||
item:
|
||||
list &&
|
||||
list
|
||||
.map((index, item) => {
|
||||
item = $(item);
|
||||
return {
|
||||
title: $('font[size="4"]', item).children('a').text(),
|
||||
pubDate: new Date($('font[size="1"]', item).children().first().text()).toUTCString(),
|
||||
link: baseUrl + $('font[size="4"]', item).children('a').attr('href'),
|
||||
};
|
||||
})
|
||||
.get(),
|
||||
};
|
||||
};
|
||||
@@ -0,0 +1,30 @@
|
||||
const got = require('@/utils/got');
|
||||
const cheerio = require('cheerio');
|
||||
|
||||
module.exports = async (ctx) => {
|
||||
const baseUrl = 'https://www.chuhaibiji.com/';
|
||||
const response = await got({
|
||||
method: 'get',
|
||||
url: baseUrl,
|
||||
});
|
||||
const $ = cheerio.load(response.data); // 使用 cheerio 加载返回的 HTML
|
||||
const list = $('ul[class="post-loop post-loop-default tab-wrap clearfix active"] li[class="item"]');
|
||||
ctx.state.data = {
|
||||
title: `出海笔记 ~ 资讯`,
|
||||
link: `https://www.secshi.com/`,
|
||||
description: '出海笔记 ~ 资讯',
|
||||
item:
|
||||
list &&
|
||||
list
|
||||
.map((index, item) => {
|
||||
item = $(item);
|
||||
return {
|
||||
title: $('h2 a', item).text(),
|
||||
link: $('h2 a', item).attr('href'),
|
||||
description: $('p', item).text(),
|
||||
pubDate: new Date($('span[class="item-meta-li date"]', item).text()).toUTCString(),
|
||||
};
|
||||
})
|
||||
.get(),
|
||||
};
|
||||
};
|
||||
@@ -0,0 +1,30 @@
|
||||
const got = require('@/utils/got');
|
||||
const cheerio = require('cheerio');
|
||||
|
||||
module.exports = async (ctx) => {
|
||||
const baseUrl = 'https://bbs.ichunqiu.com/portal.php';
|
||||
const baseSite = 'https://bbs.ichunqiu.com/';
|
||||
const response = await got({
|
||||
method: 'get',
|
||||
url: baseUrl,
|
||||
});
|
||||
const $ = cheerio.load(response.data); // 使用 cheerio 加载返回的 HTML
|
||||
const list = $('li[class="ui_2_ul_li cl border_b_gray"]');
|
||||
ctx.state.data = {
|
||||
title: `i春秋学院 ~ 资讯`,
|
||||
link: `https://buaq.net/`,
|
||||
description: 'i春秋学院 ~ 资讯',
|
||||
item:
|
||||
list &&
|
||||
list
|
||||
.map((index, item) => {
|
||||
item = $(item);
|
||||
return {
|
||||
title: $('h3', item).text(),
|
||||
link: baseSite + $('h3 a', item).attr('href'),
|
||||
description: $('p', item).text(),
|
||||
};
|
||||
})
|
||||
.get(),
|
||||
};
|
||||
};
|
||||
@@ -0,0 +1,29 @@
|
||||
const cheerio = require('cheerio');
|
||||
const got = require('@/utils/got');
|
||||
|
||||
module.exports = async (ctx) => {
|
||||
const url = `https://www.kchuhai.com/report/`;
|
||||
|
||||
const response = await got({
|
||||
method: 'get',
|
||||
url: url,
|
||||
});
|
||||
const $ = cheerio.load(response.data); // 使用 cheerio 加载返回的 HTML
|
||||
const list = $('div[class="position-relative"]');
|
||||
ctx.state.data = {
|
||||
title: `出海 ~ 资讯`,
|
||||
link: `www.kchuhai.com`,
|
||||
description: '出海 ~ 资讯',
|
||||
item:
|
||||
list &&
|
||||
list
|
||||
.map((index, item) => {
|
||||
item = $(item);
|
||||
return {
|
||||
title: $('div', item).children('a').text(),
|
||||
link: $('div', item).children('a').attr('href'),
|
||||
};
|
||||
})
|
||||
.get(),
|
||||
};
|
||||
};
|
||||
@@ -0,0 +1,29 @@
|
||||
const got = require('@/utils/got');
|
||||
const cheerio = require('cheerio');
|
||||
|
||||
module.exports = async (ctx) => {
|
||||
const baseUrl = 'https://bowen.navisec.it/';
|
||||
const response = await got({
|
||||
method: 'get',
|
||||
url: baseUrl,
|
||||
});
|
||||
const $ = cheerio.load(response.data); // 使用 cheerio 加载返回的 HTML
|
||||
const list = $('tbody tr');
|
||||
ctx.state.data = {
|
||||
title: `纳威安全导航 ~ 资讯`,
|
||||
link: `https://bowen.navisec.it/`,
|
||||
description: '纳威安全导航 ~ 资讯',
|
||||
item:
|
||||
list &&
|
||||
list
|
||||
.map((index, item) => {
|
||||
item = $(item);
|
||||
return {
|
||||
title: $('a', item).text(),
|
||||
link: $('a', item).attr('href'),
|
||||
pubDate: new Date($('td', item).last().text()).toUTCString(),
|
||||
};
|
||||
})
|
||||
.get(),
|
||||
};
|
||||
};
|
||||
@@ -0,0 +1,29 @@
|
||||
const got = require('@/utils/got');
|
||||
const cheerio = require('cheerio');
|
||||
|
||||
module.exports = async (ctx) => {
|
||||
const baseUrl = 'https://www.secshi.com/';
|
||||
const response = await got({
|
||||
method: 'get',
|
||||
url: baseUrl,
|
||||
});
|
||||
const $ = cheerio.load(response.data); // 使用 cheerio 加载返回的 HTML
|
||||
const list = $('ul[class="b2_gap"] li[class="post-3-li post-list-item"]');
|
||||
ctx.state.data = {
|
||||
title: `安全师 ~ 资讯`,
|
||||
link: `https://www.secshi.com/`,
|
||||
description: '安全师 ~ 资讯',
|
||||
item:
|
||||
list &&
|
||||
list
|
||||
.map((index, item) => {
|
||||
item = $(item);
|
||||
return {
|
||||
title: $('h2', item).text(),
|
||||
link: $('h2 a', item).attr('href'),
|
||||
description: $('div[class="post-excerpt"]', item).text(),
|
||||
};
|
||||
})
|
||||
.get(),
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user