fix: remove cnbeta 6.18 ad (#4983)

This commit is contained in:
Cloud
2020-06-14 22:00:02 +08:00
committed by GitHub
parent 38742bbfa0
commit 169a366a1e
2 changed files with 15 additions and 12 deletions

View File

@@ -8,6 +8,9 @@ module.exports = async (ctx) => {
const ProcessFeed = (data) => {
const $ = cheerio.load(data);
// 移除6.18广告
$('.article-global').remove();
// 提取内容
return $('.article-summary p').html() + '<br>' + $('.article-content').html();
};