mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-13 00:35:57 +08:00
feat: add weibo oasis (#3107)
This commit is contained in:
@@ -552,6 +552,12 @@ pageClass: routes
|
|||||||
|
|
||||||
<Route author="zengxs" example="/weibo/super_index/1008084989d223732bf6f02f75ea30efad58a9" path="/weibo/super_index/:id" :paramsDesc="['超话ID']" anticrawler="1"/>
|
<Route author="zengxs" example="/weibo/super_index/1008084989d223732bf6f02f75ea30efad58a9" path="/weibo/super_index/:id" :paramsDesc="['超话ID']" anticrawler="1"/>
|
||||||
|
|
||||||
|
## 微博绿洲
|
||||||
|
|
||||||
|
### 用户
|
||||||
|
|
||||||
|
<Route author="kt286" example="/weibo/oasis/user/1990895721" path="/weibo/oasis/user/:userid" :paramsDesc="['用户 id, 可在用户主页 URL 中找到']" anticrawler="1"/>
|
||||||
|
|
||||||
## 雪球
|
## 雪球
|
||||||
|
|
||||||
### 用户动态
|
### 用户动态
|
||||||
|
|||||||
@@ -55,6 +55,7 @@ router.get('/weibo/user/:uid/:displayVideo?', require('./routes/weibo/user'));
|
|||||||
router.get('/weibo/keyword/:keyword', require('./routes/weibo/keyword'));
|
router.get('/weibo/keyword/:keyword', require('./routes/weibo/keyword'));
|
||||||
router.get('/weibo/search/hot', require('./routes/weibo/search/hot'));
|
router.get('/weibo/search/hot', require('./routes/weibo/search/hot'));
|
||||||
router.get('/weibo/super_index/:id', require('./routes/weibo/super_index'));
|
router.get('/weibo/super_index/:id', require('./routes/weibo/super_index'));
|
||||||
|
router.get('/weibo/oasis/user/:userid', require('./routes/weibo/oasis/user'));
|
||||||
|
|
||||||
// 贴吧
|
// 贴吧
|
||||||
router.get('/tieba/forum/:kw', require('./routes/tieba/forum'));
|
router.get('/tieba/forum/:kw', require('./routes/tieba/forum'));
|
||||||
|
|||||||
17
lib/routes/weibo/oasis/user.js
Normal file
17
lib/routes/weibo/oasis/user.js
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
const buildData = require('@/utils/common-config');
|
||||||
|
|
||||||
|
module.exports = async (ctx) => {
|
||||||
|
const userid = ctx.params.userid;
|
||||||
|
const link = `https://oasis.weibo.cn/v1/h5/share?uid=${userid}`;
|
||||||
|
ctx.state.data = await buildData({
|
||||||
|
link,
|
||||||
|
url: link,
|
||||||
|
title: `$('.name-main').text().trim() + ' - 用户 - 绿洲'`,
|
||||||
|
description: `$('.desc').text().trim()`,
|
||||||
|
item: {
|
||||||
|
item: '.container .item',
|
||||||
|
title: `$('.status-desc').text()`,
|
||||||
|
description: `$('.status-desc').text() + '<br>' + $('.media-wrapper').html()`,
|
||||||
|
},
|
||||||
|
});
|
||||||
|
};
|
||||||
Reference in New Issue
Block a user