mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-07 21:47:57 +08:00
@@ -642,7 +642,7 @@ RSSHub 提供下列 API 接口:
|
||||
|
||||
### 虎扑
|
||||
|
||||
<route name="虎扑BBS步行街" author="LogicJake" example="/hupu/bxj/bxj/2" path="/hupu/bxj/:id/:order?" :paramsDesc="['栏目id,可在栏目 URL 找到', '排序方式,1最新回帖(默认),2最新发帖']"/>
|
||||
<route name="虎扑BBS论坛" author="LogicJake" example="/hupu/bbs/bxj/2" path="/hupu/bbs/:id/:order?" :paramsDesc="['板块id,可在板块 URL 找到', '排序方式,1最新回帖(默认),2最新发帖']"/>
|
||||
|
||||
### Dcard
|
||||
|
||||
|
||||
@@ -1078,7 +1078,8 @@ router.get('/leetcode/articles', require('./routes/leetcode/articles'));
|
||||
router.get('/segmentfault/channel/:name', require('./routes/segmentfault/channel'));
|
||||
|
||||
// 虎扑
|
||||
router.get('/hupu/bxj/:id/:order?', require('./routes/hupu/bxj'));
|
||||
router.get('/hupu/bxj/:id/:order?', require('./routes/hupu/bbs'));
|
||||
router.get('/hupu/bbs/:id/:order?', require('./routes/hupu/bbs'));
|
||||
|
||||
// 牛客网
|
||||
router.get('/nowcoder/discuss/:type/:order', require('./routes/nowcoder/discuss'));
|
||||
|
||||
@@ -22,6 +22,7 @@ module.exports = async (ctx) => {
|
||||
const $ = cheerio.load(response.data);
|
||||
|
||||
const type_name = $('span.infoname').text();
|
||||
const description = $('#des_forum').text();
|
||||
|
||||
const list = $('ul.for-list li')
|
||||
.slice(0, 10)
|
||||
@@ -59,9 +60,7 @@ module.exports = async (ctx) => {
|
||||
const $ = cheerio.load(response.data);
|
||||
|
||||
const date = $('#tpc span.stime').text();
|
||||
const description = $('div.quote-content')
|
||||
.html()
|
||||
.trim();
|
||||
const description = $('div.quote-content').html();
|
||||
|
||||
const single = {
|
||||
title: title,
|
||||
@@ -77,6 +76,7 @@ module.exports = async (ctx) => {
|
||||
ctx.state.data = {
|
||||
title: `${type_name}${order_name}——虎扑步行街`,
|
||||
link: link,
|
||||
description: description,
|
||||
item: out,
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user