diff --git a/assets/radar-rules.js b/assets/radar-rules.js
index 313385b8d..724874228 100644
--- a/assets/radar-rules.js
+++ b/assets/radar-rules.js
@@ -52,7 +52,6 @@
],
},
'www.chicagotribune.com': { _name: 'Chicago Tribune', www: [{ title: 'Chicago Tribune', docs: 'https://docs.rsshub.app/routes/traditional_media#chicago-tribune', source: '/' }] },
- 'pgyer.com': { _name: '蒲公英应用分发', www: [{ title: 'app更新', docs: 'https://docs.rsshub.app/routes/program-update#pu-gong-ying-ying-yong-fen-fa', source: '/:app', target: '/pgyer/:app' }] },
'wineyun.com': { _name: '酒云网', www: [{ title: '最新商品', docs: 'https://docs.rsshub.app/routes/other#jiu-yun-wang', source: ['/:category'], target: '/wineyun/:category' }] },
'playstation.com': {
_name: 'PlayStation',
@@ -393,7 +392,6 @@
{ title: '日记评论区', docs: 'https://docs.rsshub.app/routes/social-media#fur-affinity', source: '/journal/:id/', target: '/furaffinity/journal_comments/:id' },
],
},
- 'macwk.com': { _name: 'MacWk', '.': [{ title: '应用更新', docs: 'https://docs.rsshub.app/routes/program-update#macwk', source: '/soft/:name', target: '/macwk/soft/:name' }] },
'foreverblog.cn': {
_name: 'foreverblog',
www: [
diff --git a/lib/radar-rules.js b/lib/radar-rules.js
index 63b9c68c7..828932337 100644
--- a/lib/radar-rules.js
+++ b/lib/radar-rules.js
@@ -66,17 +66,6 @@ module.exports = {
},
],
},
- 'pgyer.com': {
- _name: '蒲公英应用分发',
- www: [
- {
- title: 'app更新',
- docs: 'https://docs.rsshub.app/routes/program-update#pu-gong-ying-ying-yong-fen-fa',
- source: '/:app',
- target: '/pgyer/:app',
- },
- ],
- },
'wineyun.com': {
_name: '酒云网',
www: [
@@ -934,15 +923,4 @@ module.exports = {
},
],
},
- 'macwk.com': {
- _name: 'MacWk',
- '.': [
- {
- title: '应用更新',
- docs: 'https://docs.rsshub.app/routes/program-update#macwk',
- source: '/soft/:name',
- target: '/macwk/soft/:name',
- },
- ],
- },
};
diff --git a/lib/router.js b/lib/router.js
index 23c4de43c..daf6ca304 100644
--- a/lib/router.js
+++ b/lib/router.js
@@ -152,18 +152,12 @@ router.get('/qcloud/mlvb/changelog', lazyloadRouteHandler('./routes/tencent/qclo
// 腾讯吐个槽
router.get('/tucaoqq/post/:project/:key', lazyloadRouteHandler('./routes/tencent/tucaoqq/post'));
-// Bugly SDK
-router.get('/bugly/changelog/:platform', lazyloadRouteHandler('./routes/tencent/bugly/changelog'));
-
// wechat
router.get('/wechat/miniprogram/plugins', lazyloadRouteHandler('./routes/tencent/wechat/miniprogram/plugins'));
// All the Flight Deals
router.get('/atfd/:locations/:nearby?', lazyloadRouteHandler('./routes/atfd/index'));
-// Fir
-router.get('/fir/update/:id', lazyloadRouteHandler('./routes/fir/update'));
-
// Nvidia Web Driver
router.get('/nvidia/webdriverupdate', lazyloadRouteHandler('./routes/nvidia/webdriverupdate'));
@@ -744,9 +738,6 @@ router.get('/paidai/news', lazyloadRouteHandler('./routes/paidai/news'));
// 漫画db
router.get('/manhuadb/comics/:id', lazyloadRouteHandler('./routes/manhuadb/comics'));
-// 通用CurseForge
-router.get('/curseforge/:gameid/:catagoryid/:projectid/files', lazyloadRouteHandler('./routes/curseforge/generalfiles'));
-
// 西南财经大学
router.get('/swufe/seie/:type?', lazyloadRouteHandler('./routes/universities/swufe/seie'));
@@ -834,9 +825,6 @@ router.get('/tprtc/news', lazyloadRouteHandler('./routes/tprtc/news'));
// ArchDaily
router.get('/archdaily', lazyloadRouteHandler('./routes/archdaily/home'));
-// aptonic Dropzone actions
-router.get('/aptonic/action/:untested?', lazyloadRouteHandler('./routes/aptonic/action'));
-
// im2maker
router.get('/im2maker/:channel?', lazyloadRouteHandler('./routes/im2maker/index'));
@@ -1002,9 +990,6 @@ router.get('/cug/xgxy', lazyloadRouteHandler('./routes/universities/cug/xgxy'));
router.get('/cug/news', lazyloadRouteHandler('./routes/universities/cug/news'));
router.get('/cug/gcxy/:type?', lazyloadRouteHandler('./routes/universities/cug/gcxy/index'));
-// 蒲公英
-router.get('/pgyer/:app?', lazyloadRouteHandler('./routes/pgyer/app'));
-
// 米坛社区表盘
router.get('/watchface/:watch_type?/:list_type?', lazyloadRouteHandler('./routes/watchface/update'));
@@ -1333,9 +1318,6 @@ router.get('/uniqlo/stylingbook/:category?', lazyloadRouteHandler('./routes/uniq
// unit-image
router.get('/unit-image/films/:type?', lazyloadRouteHandler('./routes/unit-image/films'));
-// Xposed Module Repository
-router.get('/xposed/module/:mod', lazyloadRouteHandler('./routes/xposed/module'));
-
// Microsoft Edge
router.get('/edge/addon/:crxid', lazyloadRouteHandler('./routes/edge/addon'));
@@ -1623,9 +1605,6 @@ router.get('/aom/journal/:id', lazyloadRouteHandler('./routes/aom/journal'));
// iCity
router.get('/icity/:id', lazyloadRouteHandler('./routes/icity/index'));
-// Anki
-router.get('/anki/changes', lazyloadRouteHandler('./routes/anki/changes'));
-
// ABC News
// router.get('/abc/:id?', lazyloadRouteHandler('./routes/abc'));
@@ -1934,12 +1913,6 @@ router.get('/kingarthur/:type', lazyloadRouteHandler('./routes/kingarthur/index'
router.get('/sznews/press', lazyloadRouteHandler('./routes/sznews/press'));
router.get('/sznews/ranking', lazyloadRouteHandler('./routes/sznews/ranking'));
-// Shuax
-router.get('/shuax/project/:name?', lazyloadRouteHandler('./routes/shuax/project'));
-
-// Obsidian
-router.get('/obsidian/announcements', lazyloadRouteHandler('./routes/obsidian/announcements'));
-
// 吉林工商学院
router.get('/jlbtc/kyc/:category?', lazyloadRouteHandler('./routes/universities/jlbtc/kyc'));
router.get('/jlbtc/jwc/:id?', lazyloadRouteHandler('./routes/universities/jlbtc/jwc'));
@@ -1952,9 +1925,6 @@ router.get('/kenshin/:category?/:type?', lazyloadRouteHandler('./routes/kenshin/
router.get('/av01/actor/:name/:type?', lazyloadRouteHandler('./routes/av01/actor'));
router.get('/av01/tag/:name/:type?', lazyloadRouteHandler('./routes/av01/tag'));
-// macked
-router.get('/macked/app/:name', lazyloadRouteHandler('./routes/macked/app'));
-
// 美国劳工联合会-产业工会联合会
router.get('/aflcio/blog', lazyloadRouteHandler('./routes/aflcio/blog'));
@@ -2011,9 +1981,6 @@ router.get('/melon/chart/:category?', lazyloadRouteHandler('./routes/melon/chart
// router.get('/zimuxia/portfolio/:id', lazyloadRouteHandler('./routes/zimuxia/portfolio'));
// router.get('/zimuxia/:category?', lazyloadRouteHandler('./routes/zimuxia/index'));
-// Hugo 更新日志
-router.get('/hugo/releases', lazyloadRouteHandler('./routes/hugo/releases'));
-
// 东立出版
router.get('/tongli/news/:type', lazyloadRouteHandler('./routes/tongli/news'));
@@ -2035,9 +2002,6 @@ router.get('/potplayer/update/:language?', lazyloadRouteHandler('./routes/potpla
// 摩点
router.get('/modian/zhongchou/:category?/:sort?/:status?', lazyloadRouteHandler('./routes/modian/zhongchou'));
-// MacWk
-router.get('/macwk/soft/:name', lazyloadRouteHandler('./routes/macwk/soft'));
-
// 世界计划 多彩舞台 feat.初音未来 (ProjectSekai)
router.get('/pjsk/news', lazyloadRouteHandler('./routes/pjsk/news'));
diff --git a/lib/routes/anki/changes.js b/lib/routes/anki/changes.js
deleted file mode 100644
index cf6564b40..000000000
--- a/lib/routes/anki/changes.js
+++ /dev/null
@@ -1,39 +0,0 @@
-const got = require('@/utils/got');
-const cheerio = require('cheerio');
-const md = require('markdown-it')({
- html: true,
-});
-
-module.exports = async (ctx) => {
- const rootUrl = 'https://changes.ankiweb.net';
- const currentUrl = `${rootUrl}/README.md`;
- const response = await got({
- method: 'get',
- url: currentUrl,
- });
-
- const html = md.render(response.data.replace(/# Changes in/g, '## Changes in').replace(/### Changes in/g, '## Changes in'));
- const $ = cheerio.load(html.replace(/
/g, ''));
-
- const items = $('div')
- .slice(0, 20)
- .map((_, item) => {
- item = $(item);
- const h2 = item.find('h2');
- const match = item.find('p').text().match('Released (.*).');
- h2.remove();
- return {
- title: h2.text(),
- description: item.html(),
- link: `${rootUrl}/#/?id=changes-in-${h2.text().toLowerCase().split(' ').join('-').replace(/\./g, '')}`,
- pubDate: match ? new Date(match[1].split(',')[0] + ' GMT+8').toUTCString() : '',
- };
- })
- .get();
-
- ctx.state.data = {
- title: 'Changes - Anki',
- link: rootUrl,
- item: items,
- };
-};
diff --git a/lib/routes/aptonic/action.js b/lib/routes/aptonic/action.js
deleted file mode 100644
index 74cdb7dae..000000000
--- a/lib/routes/aptonic/action.js
+++ /dev/null
@@ -1,38 +0,0 @@
-const got = require('@/utils/got');
-const url = require('url');
-const cheerio = require('cheerio');
-
-module.exports = async (ctx) => {
- const untested = ctx.params.untested || false;
-
- const getItems = async (link) => {
- const res = await got.get(link);
- const $ = cheerio.load(res.body);
-
- return $('table.actions >> tr')
- .get()
- .map((item) => {
- item = $(item);
- return {
- title: item.find('h2').text(),
- description: `.attr('src'))})
${$(item.find('td')[1]).children().remove().end().text()}`,
- pubDate: new Date().toUTCString(),
- link: url.resolve(link, item.find('td.icon a').attr('href')),
- };
- });
- };
-
- const link = `https://aptonic.com/actions/`;
-
- const items = await getItems(link);
-
- if (untested) {
- items.push(...(await getItems('https://aptonic.com/actions/untested')));
- }
-
- ctx.state.data = {
- title: 'Dropzone Actions',
- link,
- item: items,
- };
-};
diff --git a/lib/routes/curseforge/generalfiles.js b/lib/routes/curseforge/generalfiles.js
deleted file mode 100644
index 809bd19af..000000000
--- a/lib/routes/curseforge/generalfiles.js
+++ /dev/null
@@ -1,42 +0,0 @@
-const got = require('@/utils/got');
-const host = 'https://www.curseforge.com';
-const cheerio = require('cheerio');
-
-module.exports = async (ctx) => {
- const gameid = ctx.params.gameid;
- const catagoryid = ctx.params.catagoryid;
- const projectid = ctx.params.projectid;
- const filePage = host + `/${gameid}/${catagoryid}/${projectid}/files`;
- const response = await got({
- method: 'get',
- url: filePage,
- });
- const data = response.data;
- const $ = cheerio.load(data);
- const list = $('tr.project-file-list__item');
- ctx.state.data = {
- title: `CurseForge - ${$('h2.name').text()}`,
- link: filePage,
- description: 'CurseForge文件更新提醒',
- item: list
- .map((i, item) => ({
- title: $(item).find('span.table__content.file__name.full').text().trim(),
- description: `
-
- | FileType |
- FileName |
- FileSize |
- Download |
-
- | ${$(item).find('td.project-file__release-type > span').attr('title')} |
- ${$(item).find('span.table__content.file__name.full').text().trim()} |
- ${$(item).find('span.table__content.file__size').text().trim()} |
- Click Me |
-
-
`,
- link: filePage,
- pubDate: new Date(1000 * $(item).find('td.project-file__date-uploaded abbr').attr('data-epoch')).toUTCString(),
- }))
- .get(),
- };
-};
diff --git a/lib/routes/fir/update.js b/lib/routes/fir/update.js
deleted file mode 100644
index 7cb6be6d5..000000000
--- a/lib/routes/fir/update.js
+++ /dev/null
@@ -1,31 +0,0 @@
-const got = require('@/utils/got');
-
-module.exports = async (ctx) => {
- const id = ctx.params.id;
- const APIUrl = `https://download.fir.im/${id}`;
-
- const webUrl = `https://fir.im/${id}`;
-
- const res = await got({
- method: 'get',
- url: APIUrl,
- headers: {
- Referer: webUrl,
- },
- });
-
- const data = res.data;
-
- const title = data.app.name + ' 更新';
-
- const item = {};
- item.title = data.app.name + ' ' + data.app.releases.master.version + '(' + data.app.releases.master.build + ')';
- item.description = data.app.releases.master.changelog;
- item.link = `https://fir.im/x9zu?release_id=${data.app.releases.master.id}`;
- item.pubDate = new Date(data.app.releases.master.created_at * 1000).toUTCString();
- ctx.state.data = {
- title,
- link: webUrl,
- item: [item],
- };
-};
diff --git a/lib/routes/hugo/releases.js b/lib/routes/hugo/releases.js
deleted file mode 100644
index 0f36e2c21..000000000
--- a/lib/routes/hugo/releases.js
+++ /dev/null
@@ -1,53 +0,0 @@
-const got = require('@/utils/got');
-const cheerio = require('cheerio');
-
-async function load(link) {
- const response = await got.get(link);
- const $ = cheerio.load(response.data);
- const datestr = $('aside > time').attr('datetime');
- const description = $('article > div.flex-l').html();
- return { description, datestr };
-}
-
-const ProcessFeed = async (title, url, caches) => {
- const single = {
- title,
- link: url,
- guid: url,
- };
- const other = await caches.tryGet(url, () => load(url));
- return Promise.resolve(Object.assign({}, single, other));
-};
-
-module.exports = async (ctx) => {
- const host = 'https://gohugo.io/categories/releases';
-
- const response = await got({
- method: 'get',
- url: host,
- headers: {
- Referer: host,
- },
- });
-
- const $ = cheerio.load(response.data);
-
- const items = await Promise.all(
- $('section > div > div > h1')
- .get()
- .map(async (item) => {
- const node = $('a', item);
- const title = node.text();
- const url = new URL(node.attr('href'), 'https://gohugo.io/').href;
- const result = await ProcessFeed(title, url, ctx.cache);
- return Promise.resolve(result);
- })
- );
-
- ctx.state.data = {
- title: 'Hugo Release',
- link: host,
- description: 'Hugo Release',
- item: items,
- };
-};
diff --git a/lib/routes/macked/app.js b/lib/routes/macked/app.js
deleted file mode 100644
index a76fa1a5b..000000000
--- a/lib/routes/macked/app.js
+++ /dev/null
@@ -1,25 +0,0 @@
-const got = require('@/utils/got');
-const cheerio = require('cheerio');
-
-module.exports = async (ctx) => {
- const name = ctx.params.name;
- const url = `https://www.macbed.com/${name}/`;
-
- const res = await got.get(url);
- const $ = cheerio.load(res.data);
-
- const items = [
- {
- title: $('h1.post-title').text(),
- description: `
简介<\\strong>
${$('div.entry').text()}
.find('img').last().attr('src')})
- Download Link `,
- link: url,
- },
- ];
-
- ctx.state.data = {
- title: name,
- link: url,
- item: items,
- };
-};
diff --git a/lib/routes/macwk/soft.js b/lib/routes/macwk/soft.js
deleted file mode 100644
index d80c65076..000000000
--- a/lib/routes/macwk/soft.js
+++ /dev/null
@@ -1,32 +0,0 @@
-const got = require('@/utils/got');
-const queryString = require('query-string');
-const { parseDate } = require('@/utils/parse-date');
-
-module.exports = async (ctx) => {
- const name = ctx.params.name;
- const url = `https://api.macwk.com/api/items/soft?${queryString.stringify({
- 'filter[slug][eq]': name,
- fields: 'id,title,description',
- })}`;
- const res = await got.get(url);
- const data = res.data.data[0];
- const versionsRes = await got.get(
- `https://api.macwk.com/api/items/soft_version?${queryString.stringify({
- 'filter[softid][eq]': data.id,
- })}`
- );
- const items = versionsRes.data.data.map((item) => ({
- title: `${data.title} ${item.version}`,
- pubDate: parseDate(item.created_on, 'YYYY/MM/DD HH:mm:ss'),
- description: item.download.reduce((desc, download) => `${desc}${download.name}${download.password ? `密码:${download.password}
` : ''}
`, ''),
- link: `https://macwk.com/soft/${name}`,
- guid: `${name} ${item.version}`,
- }));
-
- ctx.state.data = {
- title: `${data.title} 的软件更新`,
- link: `https://macwk.com/soft/${name}`,
- description: data.description,
- item: items,
- };
-};
diff --git a/lib/routes/obsidian/announcements.js b/lib/routes/obsidian/announcements.js
deleted file mode 100644
index 3695c64e5..000000000
--- a/lib/routes/obsidian/announcements.js
+++ /dev/null
@@ -1,22 +0,0 @@
-const got = require('@/utils/got');
-
-module.exports = async (ctx) => {
- const rootUrl = 'https://forum.obsidian.md';
- const currentUrl = `${rootUrl}/c/announcements/13.json?page=0`;
- const response = await got({
- method: 'get',
- url: currentUrl,
- });
-
- const items = response.data.topic_list.topics.map((item) => ({
- title: item.title,
- link: `${rootUrl}/t/${item.slug}/${item.id}`,
- pubDate: new Date(item.created_at).toUTCString(),
- }));
-
- ctx.state.data = {
- title: 'Announcements - Obsidian',
- link: `${rootUrl}/c/announcements/13`,
- item: items,
- };
-};
diff --git a/lib/routes/pgyer/app.js b/lib/routes/pgyer/app.js
deleted file mode 100644
index 44c6626de..000000000
--- a/lib/routes/pgyer/app.js
+++ /dev/null
@@ -1,91 +0,0 @@
-const got = require('@/utils/got');
-const cheerio = require('cheerio');
-
-module.exports = async (ctx) => {
- // pgyer目前个人版分发页面有三种模板
- const indexOfEle = {
- viewColorful: {
- appName: 'title',
- appIntro: '#description',
- updateIntro: '.update-description',
- version: '.breadcrumb',
- appSize: '.breadcrumb',
- appImg: 'td',
- appStatus: '#down_load',
- },
- viewClassic: {
- appName: 'title',
- appIntro: '#description',
- updateIntro: 'body > div.container.content > div:nth-child(5) > div > div',
- version: 'ul',
- appSize: 'ul',
- appImg: 'td',
- appStatus: '#down_load',
- },
- viewGreen: {
- appName: 'title',
- appIntro: '#description',
- updateIntro: 'body > div.container.content > div:nth-child(5) > div > div',
- version: 'ul',
- appSize: 'ul',
- appImg: 'td',
- appStatus: '#down_load',
- },
- };
- const app = ctx.params.app;
- const link = `https://www.pgyer.com/${app}`;
- const { data } = await got.get(link);
- const $ = cheerio.load(data);
-
- // 页面模板判断
- let pageTemplate = '';
- $('head > link')
- .toArray()
- .forEach((item) => {
- const cssName = $(item).attr('href').split('/');
- cssName[cssName.length - 1].split('.').forEach((val) => {
- Object.keys(indexOfEle).forEach((item) => {
- if (item === val) {
- pageTemplate = val;
- }
- });
- });
- });
- const appName = $(indexOfEle[pageTemplate].appName).text();
- const appIntro = $(indexOfEle[pageTemplate].appIntro).text();
- const version = $(indexOfEle[pageTemplate].version).children('li').eq(0).text();
- const appSize = $(indexOfEle[pageTemplate].appSize).children('li').eq(1).text().slice(3);
- const appImg = $(indexOfEle[pageTemplate].appImg)
- .toArray()
- .reduce((acc, curr) => (acc += `
`), '');
- let appStatus = $(indexOfEle[pageTemplate].appStatus).text().trim();
- if (appStatus === '点击安装') {
- appStatus = '可下载安装';
- }
-
- let updateIntro = $(indexOfEle[pageTemplate].updateIntro).text().trim().slice(4);
- if (updateIntro === '') {
- updateIntro = '暂无更新内容';
- }
-
- let description = '';
- if (appStatus) {
- description = `安装状态:${appStatus}
- 软件大小:${appSize}
- 更新说明:${updateIntro}
- 应用截图:
${appImg}`;
- }
-
- ctx.state.data = {
- title: appName,
- link: `https://www.pgyer.com/${app}`,
- description: appIntro,
- item: [
- {
- link,
- title: `${appName}-${version}`,
- description,
- },
- ],
- };
-};
diff --git a/lib/routes/shuax/project.js b/lib/routes/shuax/project.js
deleted file mode 100644
index f38fb33aa..000000000
--- a/lib/routes/shuax/project.js
+++ /dev/null
@@ -1,37 +0,0 @@
-const got = require('@/utils/got');
-const cheerio = require('cheerio');
-
-module.exports = async (ctx) => {
- const name = ctx.params.name || 'mouseinc';
-
- const rootUrl = 'https://shuax.com';
- const currentUrl = `${rootUrl}/project/${name}`;
- const response = await got({
- method: 'get',
- url: currentUrl,
- });
-
- const $ = cheerio.load(response.data);
-
- $('.love-box').remove();
-
- const title = $('title').text();
-
- ctx.state.data = {
- title: `${title.split(' ')[0]} - 耍下`,
- link: currentUrl,
- item: [
- {
- link: currentUrl,
- title: title.replace(' – 耍下', ''),
- description: $('#page-content').html(),
- pubDate: new Date(
- response.data
- .match(/\d{4}年\d+月\d+日/)[0]
- .replace(/年|月/g, '-')
- .replace('日', '')
- ).toUTCString(),
- },
- ],
- };
-};
diff --git a/lib/routes/tencent/bugly/changelog.js b/lib/routes/tencent/bugly/changelog.js
deleted file mode 100644
index 36d8f18b3..000000000
--- a/lib/routes/tencent/bugly/changelog.js
+++ /dev/null
@@ -1,49 +0,0 @@
-const got = require('@/utils/got');
-
-module.exports = async (ctx) => {
- const platform = ctx.params.platform;
- const APIUrl = `https://bugly.qq.com/v2/changeLog?pid=${platform}&type=1`;
-
- let webUrl = '';
- if (platform === '1') {
- webUrl = 'https://bugly.qq.com/docs/release-notes/release-android-bugly/';
- } else if (platform === '2') {
- webUrl = 'https://bugly.qq.com/docs/release-notes/release-ios-bugly/';
- }
-
- let title = '';
- if (platform === '1') {
- title = '腾讯 Bugly Android SDK 更新日志';
- } else if (platform === '2') {
- title = '腾讯 Bugly iOS SDK 更新日志';
- }
-
- const res = await got({
- method: 'get',
- url: APIUrl,
- headers: {
- Referer: webUrl,
- },
- });
-
- const resultItem = res.data.ret.versionList.map((changelog) => {
- const item = {};
- item.title = changelog.version + ' ' + changelog.createTime;
-
- let itemDesc = '';
- changelog.description.desc.forEach((desc) => {
- itemDesc += desc;
- itemDesc += '\n';
- });
- item.description = itemDesc;
- item.guid = changelog.version + changelog.createTime;
- item.link = webUrl;
- return item;
- });
-
- ctx.state.data = {
- title,
- link: webUrl,
- item: resultItem,
- };
-};
diff --git a/lib/routes/xposed/module.js b/lib/routes/xposed/module.js
deleted file mode 100644
index 61ea228a8..000000000
--- a/lib/routes/xposed/module.js
+++ /dev/null
@@ -1,36 +0,0 @@
-const got = require('@/utils/got');
-const cheerio = require('cheerio');
-
-module.exports = async (ctx) => {
- const link = `https://repo.xposed.info/module/${ctx.params.mod}`;
- const response = await got({
- method: 'get',
- url: link,
- });
-
- const data = response.data;
-
- const $ = cheerio.load(data);
- const title = $('#page-title').text();
- const list = $('div.field-collection-view');
-
- ctx.state.data = {
- title: `${title}(${ctx.params.mod}) 更新`,
- link,
- item:
- list &&
- list
- .map((_, item) => {
- item = $(item);
- const version = item.find('div.field-name-field-version-number div.even').text();
- return {
- title: `Version ${version}`,
- description: item.find('div.field-name-field-changes').html(),
- link,
- pubDate: item.find('span.date-display-single').html().replace('- ', ''),
- guid: ctx.params.mod + version,
- };
- })
- .get(),
- };
-};
diff --git a/lib/v2/appstore/gofans.js b/lib/v2/appstore/gofans.js
deleted file mode 100644
index bec61bb1d..000000000
--- a/lib/v2/appstore/gofans.js
+++ /dev/null
@@ -1,34 +0,0 @@
-const got = require('@/utils/got');
-const { parseDate } = require('@/utils/parse-date');
-
-module.exports = async (ctx) => {
- const prefix = 'https://gofans.cn/app/';
-
- const response = await got({
- method: 'get',
- url: 'https://api.gofans.cn/v1/m/app_records?page=1&limit=20',
- headers: {
- Referer: 'https://m.gofans.cn',
- Origin: 'https://m.gofans.cn',
- },
- });
- ctx.state.data = {
- title: '最新限免 / 促销应用',
- link: 'https://gofans.cn/',
- description: 'GoFans:最新限免 / 促销应用',
- item: response.data.data.map((item) => ({
- title: `「${item.price === '0.00' ? '免费' : '降价'}」-「${item.kind === '1' ? 'macOS' : 'iOS'}」${item.name}`,
- description: `
-
-
- 原价:¥${item.original_price} -> 现价:¥${item.price}
-
- 平台:${item.kind === 1 ? 'macOS' : 'iOS'}
-
- ${item.description}
- `,
- pubDate: parseDate(item.updated_at * 1000),
- link: new URL(item.uuid, prefix),
- })),
- };
-};
diff --git a/lib/v2/appstore/maintainer.js b/lib/v2/appstore/maintainer.js
index 909a4b3d6..dd0552136 100644
--- a/lib/v2/appstore/maintainer.js
+++ b/lib/v2/appstore/maintainer.js
@@ -2,5 +2,4 @@ module.exports = {
'/price/:country/:type/:id': ['HenryQW'],
'/iap/:country/:id': ['HenryQW'],
'/xianmian': ['Andiedie'],
- '/gofans': ['HenryQW'],
};
diff --git a/lib/v2/appstore/radar.js b/lib/v2/appstore/radar.js
index 19c5ad174..00bf1d66c 100644
--- a/lib/v2/appstore/radar.js
+++ b/lib/v2/appstore/radar.js
@@ -21,15 +21,4 @@ module.exports = {
},
],
},
- 'gofans.cn': {
- _name: 'GoFans',
- '.': [
- {
- title: '最新限免',
- docs: 'https://docs.rsshub.app/routes/program-update#app-store-mac-app-store',
- source: ['/'],
- target: '/appstore/gofans',
- },
- ],
- },
};
diff --git a/lib/v2/appstore/router.js b/lib/v2/appstore/router.js
index b8076dd66..70b661696 100644
--- a/lib/v2/appstore/router.js
+++ b/lib/v2/appstore/router.js
@@ -1,5 +1,4 @@
module.exports = function (router) {
- router.get('/gofans', require('./gofans'));
router.get('/xianmian', require('./xianmian'));
router.get('/iap/:country/:id', require('./in-app-purchase'));
router.get('/price/:country/:type/:id', require('./price'));
diff --git a/lib/v2/clash/maintainer.js b/lib/v2/clash/maintainer.js
deleted file mode 100644
index c08553e0b..000000000
--- a/lib/v2/clash/maintainer.js
+++ /dev/null
@@ -1,3 +0,0 @@
-module.exports = {
- '/premium': ['ttttmr'],
-};
diff --git a/lib/v2/clash/premium.js b/lib/v2/clash/premium.js
deleted file mode 100644
index 64e133a5b..000000000
--- a/lib/v2/clash/premium.js
+++ /dev/null
@@ -1,23 +0,0 @@
-const got = require('@/utils/got');
-const { parseDate } = require('@/utils/parse-date');
-const md = require('markdown-it')();
-
-module.exports = async (ctx) => {
- const response = await got('https://api.github.com/repos/Dreamacro/clash/releases/tags/premium');
- const data = response.data;
-
- ctx.state.data = {
- title: 'Clash Premium Releases',
- link: 'https://github.com/Dreamacro/clash/releases/tag/premium',
- description: 'Clash Premium Releases',
- item: [
- {
- title: data.name,
- author: data.author.login,
- description: md.render(data.body),
- pubDate: parseDate(data.assets[0].updated_at),
- link: `https://github.com/Dreamacro/clash/releases/tag/premium#${encodeURIComponent(data.name)}`,
- },
- ],
- };
-};
diff --git a/lib/v2/clash/radar.js b/lib/v2/clash/radar.js
deleted file mode 100644
index 980006677..000000000
--- a/lib/v2/clash/radar.js
+++ /dev/null
@@ -1,13 +0,0 @@
-module.exports = {
- 'github.com': {
- _name: 'Clash',
- '.': [
- {
- title: 'Premium Releases',
- docs: 'https://docs.rsshub.app/routes/programming#cncf',
- source: ['/Dreamacro/clash/releases/tag/premium'],
- target: '/clash/premium',
- },
- ],
- },
-};
diff --git a/lib/v2/clash/router.js b/lib/v2/clash/router.js
deleted file mode 100644
index f7b9f36b8..000000000
--- a/lib/v2/clash/router.js
+++ /dev/null
@@ -1,3 +0,0 @@
-module.exports = (router) => {
- router.get('/premium', require('./premium'));
-};
diff --git a/lib/v2/rsshub/maintainer.js b/lib/v2/rsshub/maintainer.js
index 5ab179176..158998b45 100644
--- a/lib/v2/rsshub/maintainer.js
+++ b/lib/v2/rsshub/maintainer.js
@@ -1,6 +1,5 @@
module.exports = {
'/routes/:lang?': ['DIYgod'],
- '/rsshub/sponsors': ['DIYgod'],
'/transform/html/:url/:routeParams': ['ttttmr'],
'/transform/json/:url/:routeParams': ['ttttmr'],
'/transform/sitemap/:url/:routeParams?': ['flrngel'],
diff --git a/lib/v2/rsshub/radar.js b/lib/v2/rsshub/radar.js
index e8a59145b..8327f7fec 100644
--- a/lib/v2/rsshub/radar.js
+++ b/lib/v2/rsshub/radar.js
@@ -8,12 +8,6 @@ module.exports = {
source: ['/*'],
target: '/rsshub/routes',
},
- {
- title: '有新赞助商啦',
- docs: 'https://docs.rsshub.app/routes/program-update#rsshub',
- source: ['/*'],
- target: '/rsshub/sponsors',
- },
],
},
};
diff --git a/lib/v2/rsshub/router.js b/lib/v2/rsshub/router.js
index 2f90c082f..7e580dcc5 100644
--- a/lib/v2/rsshub/router.js
+++ b/lib/v2/rsshub/router.js
@@ -1,6 +1,5 @@
module.exports = (router) => {
router.get('/routes/:lang?', require('./routes'));
- router.get('/sponsors', require('./sponsors'));
router.get('/transform/html/:url/:routeParams', require('./transform/html'));
router.get('/transform/json/:url/:routeParams', require('./transform/json'));
router.get('/transform/sitemap/:url/:routeParams?', require('./transform/sitemap'));
diff --git a/lib/v2/rsshub/sponsors.js b/lib/v2/rsshub/sponsors.js
deleted file mode 100644
index c42197af4..000000000
--- a/lib/v2/rsshub/sponsors.js
+++ /dev/null
@@ -1,47 +0,0 @@
-const got = require('@/utils/got');
-const cheerio = require('cheerio');
-
-module.exports = async (ctx) => {
- const response = await got({
- method: 'get',
- url: 'https://docs.rsshub.app/',
- });
-
- const data = response.data;
-
- const $ = cheerio.load(data);
- const special = $('#ming-xie-special-sponsors').next('p').find('a');
- const normal = $('#ming-xie-sponsors').next('p').find('a');
-
- ctx.state.data = {
- title: 'RSSHub 有新赞助商啦',
- link: 'https://docs.rsshub.app/',
- item: special
- .map((index, item) => {
- item = $(item);
- const title = item.find('img').attr('alt');
- const link = item.attr('href') || 'https://docs.rsshub.app/';
- return {
- title,
- description: `${title}
`,
- link,
- };
- })
- .get()
- .concat(
- normal
- .map((index, item) => {
- item = $(item);
- item.find('span').remove();
- const title = item.text();
- const link = item.attr('href') || 'https://docs.rsshub.app/';
- return {
- title,
- description: `${title}`,
- link,
- };
- })
- .get()
- ),
- };
-};
diff --git a/lib/v2/vmware/flings.js b/lib/v2/vmware/flings.js
deleted file mode 100644
index 1bf398673..000000000
--- a/lib/v2/vmware/flings.js
+++ /dev/null
@@ -1,59 +0,0 @@
-const got = require('@/utils/got');
-const cheerio = require('cheerio');
-const { parseDate } = require('@/utils/parse-date');
-
-module.exports = async (ctx) => {
- const rootUrl = 'https://flings.vmware.com';
- const currentUrl = `${rootUrl}/flings`;
-
- const response = await got({
- method: 'get',
- url: currentUrl,
- });
-
- const $ = cheerio.load(response.data);
-
- let items = $('.clickable')
- .toArray()
- .map((item) => {
- item = $(item);
-
- const title = item.find('.fling-title');
- const version = item.find('.fling-version').text();
-
- return {
- title: `${title.text()} (${version})`,
- link: `${rootUrl}${title.attr('href')}#${version}`,
- pubDate: parseDate(item.find('.date').text(), 'MMM DD, YYYY'),
- category: item
- .find('.fling-tags a')
- .toArray()
- .map((a) => $(a).text()),
- };
- });
-
- items = await Promise.all(
- items.map((item) =>
- ctx.cache.tryGet(item.link, async () => {
- const detailResponse = await got({
- method: 'get',
- url: item.link,
- });
-
- const content = cheerio.load(detailResponse.data);
-
- content('#contributors, #similar-flings').remove();
-
- item.description = content('article').html();
-
- return item;
- })
- )
- );
-
- ctx.state.data = {
- title: $('title').text(),
- link: currentUrl,
- item: items,
- };
-};
diff --git a/lib/v2/vmware/maintainer.js b/lib/v2/vmware/maintainer.js
deleted file mode 100644
index e59c6b90e..000000000
--- a/lib/v2/vmware/maintainer.js
+++ /dev/null
@@ -1,3 +0,0 @@
-module.exports = {
- '/flings': ['nczitzk'],
-};
diff --git a/lib/v2/vmware/radar.js b/lib/v2/vmware/radar.js
deleted file mode 100644
index 21954d002..000000000
--- a/lib/v2/vmware/radar.js
+++ /dev/null
@@ -1,13 +0,0 @@
-module.exports = {
- 'vmware.com': {
- _name: 'VMware',
- flings: [
- {
- title: 'Flings',
- docs: 'https://docs.rsshub.app/routes/program-update#vmware-flings',
- source: ['/flings', '/'],
- target: '/vmware/flings',
- },
- ],
- },
-};
diff --git a/lib/v2/vmware/router.js b/lib/v2/vmware/router.js
deleted file mode 100644
index ede29bc6e..000000000
--- a/lib/v2/vmware/router.js
+++ /dev/null
@@ -1,3 +0,0 @@
-module.exports = function (router) {
- router.get('/flings', require('./flings'));
-};
diff --git a/website/docs/routes/program-update.mdx b/website/docs/routes/program-update.mdx
index 4d778c7cf..03f96da3c 100644
--- a/website/docs/routes/program-update.mdx
+++ b/website/docs/routes/program-update.mdx
@@ -20,12 +20,6 @@
-## Anki {#anki}
-
-### Changes {#anki-changes}
-
-
-
## AnyTXT {#anytxt}
### Release Notes {#anytxt-release-notes}
@@ -74,16 +68,6 @@
-### 最新限免(GoFans) {#app-store-mac-app-store-zui-xin-xian-mian-gofans}
-
-
-
-## aptonic {#aptonic}
-
-### New Dropzone Actions {#aptonic-new-dropzone-actions}
-
-
-
## ASUS {#asus}
### BIOS {#asus-bios}
@@ -154,12 +138,6 @@
-## Bugly SDK {#bugly-sdk}
-
-### 更新日志 {#bugly-sdk-geng-xin-ri-zhi}
-
-
-
## Cent Browser {#cent-browser}
### 更新日志 {#cent-browser-geng-xin-ri-zhi}
@@ -196,13 +174,7 @@
Need to configure `CIVITAI_COOKIE` to obtain image information of NSFW models.
:::
-
-
-## Clash {#clash}
-
-### Premium Releases {#clash-premium-releases}
-
-
+
## CPUID {#cpuid}
@@ -220,14 +192,6 @@ Need to configure `CIVITAI_COOKIE` to obtain image information of NSFW models.
-## CurseForge {#curseforge}
-
-### File Update {#curseforge-file-update}
-
-
- For example: `https://www.curseforge.com/sc2/assets/taylor-mouses-stuff/files` to `/curseforge/sc2/assets/taylor-mouses-stuff/files`
-
-
## Ditto clipboard manager {#ditto-clipboard-manager}
### Changes {#ditto-clipboard-manager-changes}
@@ -276,12 +240,6 @@ Need to configure `CIVITAI_COOKIE` to obtain image information of NSFW models.
-## fir.im 应用 {#fir-im-ying-yong}
-
-### 更新 {#fir-im-ying-yong-geng-xin}
-
-
-
## Firefox {#firefox}
### New Release {#firefox-new-release}
@@ -335,12 +293,6 @@ Need to configure `CIVITAI_COOKIE` to obtain image information of NSFW models.
| updated | Updated date |
| name | Name |
-## Hugo {#hugo}
-
-### Release News {#hugo-release-news}
-
-
-
## iFi audio {#ifi-audio}
### Download Hub {#ifi-audio-download-hub}
@@ -378,24 +330,12 @@ Logseq 开发团队已经放弃了 [旧网站](https://logseq.com/blog)。
请使用 `https://github.com/logseq/logseq/releases.atom` 代替。
:::
-## MacKed {#macked}
-
-### APP Update {#macked-app-update}
-
-
-
## MacUpdate {#macupdate}
### Update {#macupdate-update}
-## MacWk {#macwk}
-
-### 应用更新 {#macwk-ying-yong-geng-xin}
-
-
-
## ManicTime {#manictime}
### Relases {#manictime-relases}
@@ -472,12 +412,6 @@ Logseq 开发团队已经放弃了 [旧网站](https://logseq.com/blog)。
| O\&O DeskInfo | oodeskinfo |
-## Obsidian {#obsidian}
-
-### Announcements {#obsidian-announcements}
-
-
-
## OneNote Gem Add-Ins {#onenote-gem-add-ins}
### Release History {#onenote-gem-add-ins-release-history}
@@ -568,26 +502,12 @@ Logseq 开发团队已经放弃了 [旧网站](https://logseq.com/blog)。
-### New sponsors {#rsshub-new-sponsors}
-
-
-
## Sesame {#sesame}
### Release Notes {#sesame-release-notes}
-## Shuax {#shuax}
-
-### Project {#shuax-project}
-
-
- | MouseInc | Chrome | Edge |
- | -------- | ------ | ---- |
- | mouseinc | chrome | edge |
-
-
## simpread {#simpread}
### 消息通知 {#simpread-xiao-xi-tong-zhi}
@@ -681,12 +601,6 @@ Logseq 开发团队已经放弃了 [旧网站](https://logseq.com/blog)。
-## VMware {#vmware}
-
-### Flings {#vmware-flings}
-
-
-
## Western Digital {#western-digital}
### Download {#western-digital-download}
@@ -729,12 +643,6 @@ Logseq 开发团队已经放弃了 [旧网站](https://logseq.com/blog)。
-## Xposed Module Repository {#xposed-module-repository}
-
-### Module Update {#xposed-module-repository-module-update}
-
-
-
## XYplorer {#xyplorer}
### What's New {#xyplorer-what-s-new}
@@ -747,12 +655,6 @@ Logseq 开发团队已经放弃了 [旧网站](https://logseq.com/blog)。
-## 蒲公英应用分发 {#pu-gong-ying-ying-yong-fen-fa}
-
-### app 更新 {#pu-gong-ying-ying-yong-fen-fa-app-geng-xin}
-
-
-
## 腾讯云移动直播 SDK {#teng-xun-yun-yi-dong-zhi-bo-sdk}
### 更新日志 {#teng-xun-yun-yi-dong-zhi-bo-sdk-geng-xin-ri-zhi}