From f810f9ae970dff9f50480820f9482b6aec5c7845 Mon Sep 17 00:00:00 2001 From: Carl Li Date: Wed, 6 Mar 2019 12:10:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=89=9B=E5=AE=A2=E7=BD=91?= =?UTF-8?q?=E5=B8=96=E5=AD=90=E5=86=85=E5=AE=B9=EF=BC=88description?= =?UTF-8?q?=EF=BC=89=E8=A7=A3=E6=9E=90=E6=96=B9=E6=A1=88=20(#1688)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 目前抓取的description数据,包含赞数和收藏数等,且会不断更新。这个 PR 把这些变化的数字去掉。 原先每个帖子都有 ```html 收藏(43)
  • 分享
  • 赞(0) ``` 全都去掉了。 --- lib/routes/nowcoder/discuss.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/routes/nowcoder/discuss.js b/lib/routes/nowcoder/discuss.js index 2babf197f..ccb500dde 100644 --- a/lib/routes/nowcoder/discuss.js +++ b/lib/routes/nowcoder/discuss.js @@ -49,7 +49,7 @@ module.exports = async (ctx) => { .text() .split(' ')[1]; - const description = $('.post-topic-main') + const description = $('.nc-post-content') .html() .trim();