feat: add bishijie (#2846)

* feat: add bishijie

* feat: add bishijie
This commit is contained in:
Cloud
2019-08-13 23:39:53 +08:00
committed by DIYgod
parent 71f8300305
commit 58bea348a6
3 changed files with 32 additions and 0 deletions

View File

@@ -384,6 +384,12 @@ type 为 all 时category 参数不支持 cost 和 free
<Route author="LogicJake" example="/kpmg/insights" path="/kpmg/insights" /> <Route author="LogicJake" example="/kpmg/insights" path="/kpmg/insights" />
## 币世界
### 快讯
<Route author="kt286" example="/bishijie/kuaixun" path="/bishijie/kuaixun"/>
## 播客 IBC 岩手放送| IBC ラジオ イヤーマイッタマイッタ ## 播客 IBC 岩手放送| IBC ラジオ イヤーマイッタマイッタ
### IBC 岩手放送| IBC ラジオ イヤーマイッタマイッタ ### IBC 岩手放送| IBC ラジオ イヤーマイッタマイッタ

View File

@@ -1651,4 +1651,7 @@ router.get('/wechat-open/community/xyx-announce', require('./routes/wechat-open/
router.get('/wechat-open/community/pay-announce', require('./routes/wechat-open/community/pay-announce')); router.get('/wechat-open/community/pay-announce', require('./routes/wechat-open/community/pay-announce'));
router.get('/wechat-open/pay/announce', require('./routes/wechat-open/pay/announce')); router.get('/wechat-open/pay/announce', require('./routes/wechat-open/pay/announce'));
// 币世界快讯
router.get('/bishijie/kuaixun', require('./routes/bishijie/kuaixun'));
module.exports = router; module.exports = router;

View File

@@ -0,0 +1,23 @@
const buildData = require('@/utils/common-config');
module.exports = async (ctx) => {
const link = `https://www.bishijie.com/kuaixun/`;
const host = `https://www.bishijie.com`;
ctx.state.data = await buildData({
link,
url: link,
title: `%title%`,
params: {
title: '币世界快讯列表',
host,
},
item: {
item: '.livetop ul',
title: `$('li.lh32 h2 a').text()`,
link: `'%host%' + $('li.lh32 h2 a').attr('href')`,
description: `$('li.lh32 div a').html()`,
pubDate: `new Date($('li.lh32').parent().attr('id')*1000).toUTCString()`,
guid: `$('li.lh32').parent().data('id')`,
},
});
};