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

@@ -986,6 +986,18 @@ Supported sub-sites:
</Route> </Route>
## 网易号
### 更新
<Route author="HendricksZheng" example="/netease/dy/W4983108759592548559" path="/netease/dy/:id" :paramsDesc="['网易号 ID', '见如下说明']">
1. 在[网易号搜索页面](https://dy.163.com/v2/media/tosearch.html) 搜索想要订阅的网易号。
2. 打开网易号文章页面。
3. 通过浏览器控制台执行 `$('#contain').dataset.wemediaid`,返回的即为网易号 ID。
</Route>
## 网易新闻 ## 网易新闻
### 排行榜 ### 排行榜
@@ -1010,18 +1022,6 @@ Supported sub-sites:
</Route> </Route>
## 网易号
### 更新
<Route author="HendricksZheng" example="/netease/dy/W4983108759592548559" path="/netease/dy/:id" :paramsDesc="['网易号 ID', '见如下说明']">
1. 在[网易号搜索页面](https://dy.163.com/v2/media/tosearch.html) 搜索想要订阅的网易号。
2. 打开网易号文章页面。
3. 通过浏览器控制台执行 `$('#contain').dataset.wemediaid`,返回的即为网易号 ID。
</Route>
## 维基百科 ## 维基百科
### 中国大陆新闻动态 ### 中国大陆新闻动态

View File

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