mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-15 10:15:23 +08:00
rss: remove kejixingqiu and xkcd, close #627
This commit is contained in:
@@ -1518,16 +1518,6 @@ GitHub 官方也提供了一些 RSS:
|
||||
|
||||
参数: 无
|
||||
|
||||
### xkcd
|
||||
|
||||
#### xkcd 的科学漫画 <Author uid="arbent"/>
|
||||
|
||||
举例: <https://rsshub.app/xkcd/comic>
|
||||
|
||||
路由: `/xkcd/comic`
|
||||
|
||||
参数: 无
|
||||
|
||||
## 动漫
|
||||
|
||||
### bilibili
|
||||
@@ -2890,14 +2880,6 @@ ISO 3166-1 国家代码列表请参见 [维基百科 ISO_3166-1](https://zh.wiki
|
||||
| -------- | -------- | -------- | -------- |
|
||||
| prog | design | startup | tech |
|
||||
|
||||
### 科技星球
|
||||
|
||||
#### 首页 <Author uid="vhgyux"/>
|
||||
|
||||
举例: <https://rsshub.app/kejixingqiu/home>
|
||||
|
||||
路由: `/kejixingqiu/home`
|
||||
|
||||
### 爱范儿 ifanr <Author uid="HenryQW"/>
|
||||
|
||||
#### AppSolution
|
||||
|
||||
@@ -344,9 +344,6 @@ router.get('/caixin/:column/:category', require('./routes/caixin/category'));
|
||||
// 草榴社区
|
||||
router.get('/t66y/:id', require('./routes/t66y/index'));
|
||||
|
||||
// 科技星球
|
||||
router.get('/kejixingqiu/home', require('./routes/kejixingqiu/home'));
|
||||
|
||||
// 机核
|
||||
router.get('/gcores/category/:category', require('./routes/gcores/category'));
|
||||
|
||||
@@ -522,9 +519,6 @@ router.get('/zaobao/znews/:type?', require('./routes/zaobao/znews'));
|
||||
// Apple
|
||||
router.get('/apple/exchange_repair', require('./routes/apple/exchange_repair'));
|
||||
|
||||
// XKCD
|
||||
router.get('/xkcd/comic', require('./routes/xkcd/comic'));
|
||||
|
||||
// Minecraft CurseForge
|
||||
router.get('/curseforge/files/:project', require('./routes/curseforge/files'));
|
||||
|
||||
@@ -538,7 +532,6 @@ router.get('/sspai/series', require('./routes/sspai/series'));
|
||||
router.get('/xclient/app/:name', require('./routes/xclient/app'));
|
||||
|
||||
// 中国驻外使领事馆
|
||||
|
||||
router.get('/embassy/:country', require('./routes/embassy/embassy'));
|
||||
router.get('/embassy/:country/:city', require('./routes/embassy/consulate'));
|
||||
|
||||
|
||||
@@ -1,35 +0,0 @@
|
||||
const axios = require('../../utils/axios');
|
||||
const cheerio = require('cheerio');
|
||||
|
||||
module.exports = async (ctx) => {
|
||||
const response = await axios({
|
||||
method: 'get',
|
||||
url: 'http://www.xincheng.tv',
|
||||
});
|
||||
|
||||
const data = response.data;
|
||||
|
||||
const $ = cheerio.load(data);
|
||||
const list = $('.l-news_item');
|
||||
|
||||
ctx.state.data = {
|
||||
title: $('title').text(),
|
||||
link: 'http://www.xincheng.tv',
|
||||
description: $('meta[name="description"]').attr('content'),
|
||||
item:
|
||||
list &&
|
||||
list
|
||||
.map((index, item) => {
|
||||
item = $(item);
|
||||
return {
|
||||
title: `${item.find('.sub1-titile2').text()} - ${item.find('.sub1-titile1').text()}`,
|
||||
description: item.find('.sub1-new-item').text(),
|
||||
link: `http://www.xincheng.tv${item
|
||||
.find('.sub1-titile2')
|
||||
.parent()
|
||||
.attr('href')}`,
|
||||
};
|
||||
})
|
||||
.get(),
|
||||
};
|
||||
};
|
||||
@@ -1,25 +0,0 @@
|
||||
const axios = require('../../utils/axios');
|
||||
|
||||
module.exports = async (ctx) => {
|
||||
const response = await axios.get('https://xkcd.com/info.0.json');
|
||||
|
||||
const result = response.data;
|
||||
const postTime = new Date();
|
||||
postTime.setFullYear(parseInt(result.year), parseInt(result.month) - 1, parseInt(result.day));
|
||||
postTime.setHours(0, 0, 0, 0); // 无法获取精确时间
|
||||
|
||||
ctx.state.data = {
|
||||
title: 'xkcd',
|
||||
link: 'https://www.xkcd.com',
|
||||
description: 'A webcomic of romance, sarcasm, math, and language.',
|
||||
item: [
|
||||
{
|
||||
title: result.title,
|
||||
description: `<img src="${result.img}"><br />${result.alt}`,
|
||||
pubDate: postTime.toUTCString(),
|
||||
link: 'https://www.xkcd.com/' + result.num,
|
||||
guid: result.num,
|
||||
},
|
||||
],
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user