diff --git a/docs/other.md b/docs/other.md index addff2fd2..9d7240a93 100644 --- a/docs/other.md +++ b/docs/other.md @@ -384,6 +384,12 @@ type 为 all 时,category 参数不支持 cost 和 free +## 币世界 + +### 快讯 + + + ## 播客 IBC 岩手放送| IBC ラジオ イヤーマイッタマイッタ ### IBC 岩手放送| IBC ラジオ イヤーマイッタマイッタ diff --git a/lib/router.js b/lib/router.js index a84243151..cdb8fe61a 100644 --- a/lib/router.js +++ b/lib/router.js @@ -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/pay/announce', require('./routes/wechat-open/pay/announce')); +// 币世界快讯 +router.get('/bishijie/kuaixun', require('./routes/bishijie/kuaixun')); + module.exports = router; diff --git a/lib/routes/bishijie/kuaixun.js b/lib/routes/bishijie/kuaixun.js new file mode 100644 index 000000000..430412094 --- /dev/null +++ b/lib/routes/bishijie/kuaixun.js @@ -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')`, + }, + }); +};