From 37d6cb08a71ecb36e228e37640bf4f19a590bb50 Mon Sep 17 00:00:00 2001 From: Tony Date: Mon, 30 Oct 2023 14:05:34 +0000 Subject: [PATCH] fix(route): oschina remove ads (#13655) --- lib/v2/oschina/news.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/v2/oschina/news.js b/lib/v2/oschina/news.js index eddbe3a2c..6682bb44c 100644 --- a/lib/v2/oschina/news.js +++ b/lib/v2/oschina/news.js @@ -66,6 +66,7 @@ module.exports = async (ctx) => { }, }); const content = cheerio.load(detail.data); + content('.ad-wrap').remove(); item.description = content('.article-detail').html(); item.author = content('.article-box__meta .item').first().text();