feat: remove rss3
This commit is contained in:
@@ -27,14 +27,6 @@ RSSHub 是一个开源、简单易用、易于扩展的 RSS 生成器,可以
|
||||
|
||||
## 鸣谢
|
||||
|
||||
### Special Sponsors
|
||||
|
||||
<div style="margin: 30px 50px 20px 0;">
|
||||
<a href="https://rss3.io" target="_blank"><img alt="RSS3" height="50px" src="https://i.imgur.com/vHtI4bz.png"></a>
|
||||
</div>
|
||||
|
||||
[](/support/)
|
||||
|
||||
### Contributors
|
||||
|
||||
[](https://github.com/DIYgod/RSSHub/graphs/contributors)
|
||||
|
||||
@@ -27,14 +27,6 @@ RSSHub can be used with browser extension [RSSHub Radar](https://github.com/DIYg
|
||||
|
||||
## Special Thanks
|
||||
|
||||
### Special Sponsors
|
||||
|
||||
<div style="margin: 30px 50px 20px 0;">
|
||||
<a href="https://rss3.io" target="_blank"><img alt="RSS3" height="50px" src="https://i.imgur.com/vHtI4bz.png"></a>
|
||||
</div>
|
||||
|
||||
[](/en/support/)
|
||||
|
||||
### Contributors
|
||||
|
||||
[](https://github.com/DIYgod/RSSHub/graphs/contributors)
|
||||
|
||||
@@ -607,12 +607,6 @@ Compared to the official one, this feed:
|
||||
|
||||
</RouteEn>
|
||||
|
||||
## RSS3
|
||||
|
||||
### Blog
|
||||
|
||||
<RouteEn author="nczitzk" example="/rss3/blog" path="/rss3/blog"/>
|
||||
|
||||
## Sakamichi Series
|
||||
|
||||
### Nogizaka46 News
|
||||
|
||||
@@ -1231,12 +1231,6 @@ IPFS 网关有可能失效,那时候换成其他网关。
|
||||
|
||||
</Route>
|
||||
|
||||
## RSS3
|
||||
|
||||
### Blog
|
||||
|
||||
<Route author="nczitzk" example="/rss3/blog" path="/rss3/blog"/>
|
||||
|
||||
## Samsung
|
||||
|
||||
### Research Blog
|
||||
|
||||
@@ -4024,9 +4024,6 @@ router.get('/sbs/chinese/:category?/:id?/:dialect?/:language?', lazyloadRouteHan
|
||||
// QuestMobile
|
||||
router.get('/questmobile/report/:category?/:label?', lazyloadRouteHandler('./routes/questmobile/report'));
|
||||
|
||||
// RSS3
|
||||
router.get('/rss3/blog', lazyloadRouteHandler('./routes/rss3/blog'));
|
||||
|
||||
// 星球日报
|
||||
// router.get('/odaily/activity', lazyloadRouteHandler('./routes/odaily/activity'));
|
||||
// router.get('/odaily/newsflash', lazyloadRouteHandler('./routes/odaily/newsflash'));
|
||||
|
||||
@@ -1,46 +0,0 @@
|
||||
const got = require('@/utils/got');
|
||||
const cheerio = require('cheerio');
|
||||
|
||||
module.exports = async (ctx) => {
|
||||
const rootUrl = 'https://blog.rss3.io';
|
||||
const response = await got({
|
||||
method: 'get',
|
||||
url: rootUrl,
|
||||
});
|
||||
|
||||
const $ = cheerio.load(response.data);
|
||||
|
||||
const list = $('h1 a')
|
||||
.slice(0, 15)
|
||||
.map((_, item) => {
|
||||
item = $(item);
|
||||
return {
|
||||
title: item.text(),
|
||||
link: `${rootUrl}${item.attr('href')}`,
|
||||
};
|
||||
})
|
||||
.get();
|
||||
|
||||
const items = await Promise.all(
|
||||
list.map((item) =>
|
||||
ctx.cache.tryGet(item.link, async () => {
|
||||
const detailResponse = await got({
|
||||
method: 'get',
|
||||
url: item.link,
|
||||
});
|
||||
const content = cheerio.load(detailResponse.data);
|
||||
|
||||
item.description = content('.post-content').html();
|
||||
item.pubDate = Date.parse(content('small time').attr('datetime'));
|
||||
|
||||
return item;
|
||||
})
|
||||
)
|
||||
);
|
||||
|
||||
ctx.state.data = {
|
||||
title: 'Blog - RSS3',
|
||||
link: rootUrl,
|
||||
item: items,
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user