diff --git a/docs/README.md b/docs/README.md
index df8377e186..1454d5e94e 100644
--- a/docs/README.md
+++ b/docs/README.md
@@ -642,7 +642,7 @@ RSSHub 提供下列 API 接口:
### 虎扑
-
+
### Dcard
diff --git a/lib/routes/hupu/bbs.js b/lib/routes/hupu/bbs.js
index 814a0a22a6..f2c0c92654 100644
--- a/lib/routes/hupu/bbs.js
+++ b/lib/routes/hupu/bbs.js
@@ -13,9 +13,12 @@ module.exports = async (ctx) => {
let order_name;
if (parseInt(order) === 1) {
order_name = '最新回帖';
- } else {
+ } else if (parseInt(order) === 2) {
order_name = '最新发帖';
link += '-postdate-1';
+ } else if (parseInt(order) === 3) {
+ order_name = '精华';
+ link += '-digest';
}
const response = await axios.get(link);
@@ -29,12 +32,15 @@ module.exports = async (ctx) => {
.map(function() {
const info = {
title: $(this)
- .find('div.titlelink.box > a')
+ .find('div.titlelink.box > a.truetit')
.text()
.trim(),
link: $(this)
- .find('div.titlelink.box > a')
+ .find('div.titlelink.box > a.truetit')
.attr('href'),
+ author: $(this)
+ .find('a.aulink')
+ .text(),
};
return info;
})
@@ -50,6 +56,7 @@ module.exports = async (ctx) => {
list.map(async (info) => {
const title = info.title;
const itemUrl = url.resolve(host, info.link);
+ const author = info.author;
const cache = await ctx.cache.get(itemUrl);
if (cache) {
@@ -65,6 +72,7 @@ module.exports = async (ctx) => {
const single = {
title: title,
link: itemUrl,
+ author: author,
description: description,
pubDate: new Date(date).toUTCString(),
};