feat(route): add iiilab support (#11596)

* add iiilab support

* Update lib/v2/iiilab/index.js
This commit is contained in:
joey
2023-01-12 20:42:29 +08:00
committed by GitHub
parent 3622af0cde
commit a247455da5
5 changed files with 49 additions and 0 deletions
+6
View File
@@ -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" />
## 软餐
### 首页
+24
View File
@@ -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'),
},
});
};
+3
View File
@@ -0,0 +1,3 @@
module.exports = {
'/': ['Joey'],
};
+13
View File
@@ -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',
},
],
},
};
+3
View File
@@ -0,0 +1,3 @@
module.exports = function (router) {
router.get('/', require('./index'));
};