feat(route): add iiilab support (#11596)
* add iiilab support * Update lib/v2/iiilab/index.js
This commit is contained in:
parent
3622af0cde
commit
a247455da5
|
|
@ -3397,6 +3397,12 @@ column 为 third 时可选的 category:
|
|||
|
||||
<Route author="Director-0428" example="/woshipm/latest" path="/woshipm/latest"/>
|
||||
|
||||
## 人人都是自媒体
|
||||
|
||||
### 发现
|
||||
|
||||
<Route author="Joey" example="/iiilab" path="/iiilab" radar="1" />
|
||||
|
||||
## 软餐
|
||||
|
||||
### 首页
|
||||
|
|
|
|||
|
|
@ -0,0 +1,24 @@
|
|||
const buildData = require('@/utils/common-config');
|
||||
const baseUrl = 'https://www.iiilab.com/';
|
||||
|
||||
module.exports = async (ctx) => {
|
||||
const link = baseUrl;
|
||||
ctx.state.data = await buildData({
|
||||
link,
|
||||
url: link,
|
||||
title: `%title%`,
|
||||
description: `%description%`,
|
||||
params: {
|
||||
title: '发现',
|
||||
description: '人人都是自媒体-发现',
|
||||
},
|
||||
item: {
|
||||
item: '.aw-common-list > div',
|
||||
title: `$('a').first().text()`,
|
||||
link: `$('a').first().attr('href')`,
|
||||
description: `$('.markitup-box').first().text()`,
|
||||
pubDate: `parseDate($('.text-color-999').first().text(), 'YYYY-MM-DD HH:mm')`,
|
||||
guid: Buffer.from(`$('a').attr('href')`).toString('base64'),
|
||||
},
|
||||
});
|
||||
};
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
module.exports = {
|
||||
'/': ['Joey'],
|
||||
};
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
module.exports = {
|
||||
'iiilab.com': {
|
||||
_name: '人人都是自媒体',
|
||||
www: [
|
||||
{
|
||||
title: '发现',
|
||||
docs: 'https://docs.rsshub.app/new-media.html#ren-ren-dou-shi-zi-mei-ti',
|
||||
source: '/',
|
||||
target: '/iiilab',
|
||||
},
|
||||
],
|
||||
},
|
||||
};
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
module.exports = function (router) {
|
||||
router.get('/', require('./index'));
|
||||
};
|
||||
Loading…
Reference in New Issue