docs: add back route metadata for unknown routes (#22865)
* fix: add back route metadata * fix: update route handlers to use ctx.req.param for path retrieval * fix: add back route metadata for tsx * fix: remove unnecessary reposition * fix: remove * path * docs: fix route name * fix: radar url * fix: more maintainers * fix: typo * fix: last batch of empty maintainers * feat!: remove biodiscover * fix: correct eslint directive in data258 route
This commit is contained in:
@@ -2,13 +2,13 @@ import { load } from 'cheerio';
|
||||
import { renderToString } from 'hono/jsx/dom/server';
|
||||
|
||||
import type { Route } from '@/types';
|
||||
import { getSubPath } from '@/utils/common-utils';
|
||||
import got from '@/utils/got';
|
||||
import { parseDate } from '@/utils/parse-date';
|
||||
|
||||
export const route: Route = {
|
||||
path: '/:type/:keyword{.+}?',
|
||||
categories: ['multimedia'],
|
||||
example: '/141jav/popular/30',
|
||||
name: '通用',
|
||||
maintainers: ['cgkings', 'nczitzk'],
|
||||
parameters: { type: '类型,可查看下表的类型说明', keyword: '关键词,可查看下表的关键词说明' },
|
||||
@@ -65,11 +65,6 @@ async function handler(ctx) {
|
||||
|
||||
const $ = load(response.data);
|
||||
|
||||
if (getSubPath(ctx) === '/') {
|
||||
ctx.set('redirect', `/141jav${$('.overview').first().attr('href')}`);
|
||||
return;
|
||||
}
|
||||
|
||||
const items = $('.columns')
|
||||
.toArray()
|
||||
.map((item) => {
|
||||
|
||||
@@ -2,13 +2,13 @@ import { load } from 'cheerio';
|
||||
import { renderToString } from 'hono/jsx/dom/server';
|
||||
|
||||
import type { Route } from '@/types';
|
||||
import { getSubPath } from '@/utils/common-utils';
|
||||
import got from '@/utils/got';
|
||||
import { parseDate } from '@/utils/parse-date';
|
||||
|
||||
export const route: Route = {
|
||||
path: '/:type/:keyword{.+}?',
|
||||
categories: ['multimedia'],
|
||||
example: '/141ppv/popular/30',
|
||||
name: '通用',
|
||||
maintainers: ['cgkings', 'nczitzk'],
|
||||
parameters: { type: '类型,可查看下表的类型说明', keyword: '关键词,可查看下表的关键词说明' },
|
||||
@@ -65,11 +65,6 @@ async function handler(ctx) {
|
||||
|
||||
const $ = load(response.data);
|
||||
|
||||
if (getSubPath(ctx) === '/') {
|
||||
ctx.set('redirect', `/141ppv${$('.overview').first().attr('href')}`);
|
||||
return;
|
||||
}
|
||||
|
||||
const items = $('.columns')
|
||||
.toArray()
|
||||
.map((item) => {
|
||||
|
||||
@@ -23,6 +23,10 @@ const renderDescription = ({ description, pics }) => {
|
||||
export const route: Route = {
|
||||
path: '/music/user/events/:id',
|
||||
categories: ['multimedia'],
|
||||
example: '/163/music/user/events/585804522',
|
||||
parameters: {
|
||||
id: '用户 uid, 可在用户主页 URL 中找到',
|
||||
},
|
||||
radar: [
|
||||
{
|
||||
source: ['music.163.com/user/event'],
|
||||
|
||||
@@ -24,7 +24,7 @@ export const route: Route = {
|
||||
},
|
||||
],
|
||||
name: '录取结果',
|
||||
maintainers: ['EthanWng97'],
|
||||
maintainers: ['IvanWng97'],
|
||||
handler,
|
||||
url: 'offer.1point3acres.com/',
|
||||
description: `::: tip 三个 id 获取方式
|
||||
|
||||
@@ -8,7 +8,7 @@ export const route: Route = {
|
||||
parameters: { type: '帖子分类, 见下表,默认为 hot,即热门帖子', order: '排序方式,见下表,默认为空,即最新回复' },
|
||||
name: '帖子',
|
||||
categories: ['bbs'],
|
||||
maintainers: ['EthanWng97', 'DIYgod', 'nczitzk'],
|
||||
maintainers: ['IvanWng97', 'DIYgod', 'nczitzk'],
|
||||
handler,
|
||||
url: 'instant.1point3acres.com/',
|
||||
description: `分类
|
||||
|
||||
@@ -11,8 +11,22 @@ import timezone from '@/utils/timezone';
|
||||
|
||||
export const route: Route = {
|
||||
path: '/:fid/:sort?',
|
||||
name: 'Unknown',
|
||||
categories: ['bbs'],
|
||||
example: '/2cycd/43/dateline',
|
||||
parameters: { fid: '板块', sort: '排序' },
|
||||
name: '板块',
|
||||
maintainers: ['shelken'],
|
||||
description: `板块(更多板块请自行 [查看](http://www.2cycd.com))
|
||||
|
||||
| 音乐下载(默认) | 动漫下载 | 游戏下载 |
|
||||
| ---------------- | -------- | -------- |
|
||||
| 43 | 53 | 42 |
|
||||
|
||||
排序
|
||||
|
||||
| 发布时间排序(默认) | 回复/查看 | 查看 |
|
||||
| -------------------- | ---------- | ----- |
|
||||
| dateline | replies | views |`,
|
||||
handler,
|
||||
};
|
||||
|
||||
|
||||
@@ -8,6 +8,8 @@ import { parseArticle } from './utils';
|
||||
|
||||
export const route: Route = {
|
||||
path: '/games/:name/:type?',
|
||||
example: '/3dmgame/games/detroitbecomehuman/news',
|
||||
parameters: { name: '游戏名字,可以在专题页的 url 中找到', type: '资讯类型,见下表,默认为 `news`' },
|
||||
radar: [
|
||||
{
|
||||
source: ['3dmgame.com/games/:name/:type'],
|
||||
@@ -17,6 +19,9 @@ export const route: Route = {
|
||||
categories: ['game'],
|
||||
maintainers: ['sinchang', 'jacky2001114', 'HenryQW', 'lyqluis'],
|
||||
handler,
|
||||
description: `| 新闻 | 攻略 | 资源 |
|
||||
| ---- | ---- | -------- |
|
||||
| news | gl | resource |`,
|
||||
};
|
||||
|
||||
async function handler(ctx) {
|
||||
|
||||
@@ -5,25 +5,28 @@ import got from '@/utils/got';
|
||||
import { getCategories, parseItem, parseList } from './utils';
|
||||
|
||||
export const route: Route = {
|
||||
path: ['/', '/category/:category'],
|
||||
path: '/category/:category',
|
||||
categories: ['game'],
|
||||
example: '/4gamers/category/352',
|
||||
parameters: { category: '分类 ID,可从分类 URL 中找到' },
|
||||
radar: [
|
||||
{
|
||||
source: ['www.4gamers.com.tw/news', 'www.4gamers.com.tw/'],
|
||||
target: '',
|
||||
source: ['www.4gamers.com.tw/news/category/:category/:categoryName'],
|
||||
target: '/category/:category',
|
||||
},
|
||||
],
|
||||
name: 'Unknown',
|
||||
name: '分类',
|
||||
maintainers: ['TonyRL'],
|
||||
handler,
|
||||
url: 'www.4gamers.com.tw/news',
|
||||
};
|
||||
|
||||
async function handler(ctx) {
|
||||
export async function handler(ctx) {
|
||||
const category = ctx.req.param('category');
|
||||
const limit = ctx.req.query('limit') ? Number.parseInt(ctx.req.query('limit')) : 25;
|
||||
const isLatest = !category;
|
||||
|
||||
const { data: response } = await got(`https://www.4gamers.com.tw/site/api/news/${isLatest ? 'latest' : `by-category/${category}`}`, {
|
||||
const { data: response } = await got(`https://www.4gamers.com.tw/site/api/news/${isLatest ? 'latest' : `of-category/${category}`}`, {
|
||||
searchParams: {
|
||||
nextStart: 0,
|
||||
pageSize: limit,
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
import type { Route } from '@/types';
|
||||
|
||||
import { handler } from './category';
|
||||
|
||||
export const route: Route = {
|
||||
path: '/',
|
||||
categories: ['game'],
|
||||
example: '/4gamers',
|
||||
radar: [
|
||||
{
|
||||
source: ['www.4gamers.com.tw/news', 'www.4gamers.com.tw/'],
|
||||
target: '/',
|
||||
},
|
||||
],
|
||||
name: '最新消息',
|
||||
maintainers: ['TonyRL'],
|
||||
handler,
|
||||
url: 'www.4gamers.com.tw/news',
|
||||
};
|
||||
@@ -8,6 +8,8 @@ import timezone from '@/utils/timezone';
|
||||
|
||||
export const route: Route = {
|
||||
path: '/',
|
||||
categories: ['study'],
|
||||
example: '/50forum',
|
||||
radar: [
|
||||
{
|
||||
source: ['www.50forum.org.cn/portal/list/index.html?id=6'],
|
||||
@@ -18,7 +20,7 @@ export const route: Route = {
|
||||
target: '',
|
||||
},
|
||||
],
|
||||
name: 'Unknown',
|
||||
name: '专家文章',
|
||||
maintainers: ['sddiky'],
|
||||
handler,
|
||||
url: 'https://www.50forum.org.cn/portal/list/index.html?id=6',
|
||||
|
||||
@@ -8,6 +8,8 @@ import timezone from '@/utils/timezone';
|
||||
|
||||
export const route: Route = {
|
||||
path: '/news/:site?/:id?/:keyword?',
|
||||
categories: ['new-media'],
|
||||
example: '/6park/news',
|
||||
radar: [
|
||||
{
|
||||
source: ['club.6parkbbs.com/:id/index.php', 'club.6parkbbs.com/'],
|
||||
@@ -17,11 +19,16 @@ export const route: Route = {
|
||||
name: '新闻栏目',
|
||||
maintainers: ['nczitzk', 'cscnk52'],
|
||||
parameters: {
|
||||
site: '分站,可选newspark、local,默认为 newspark',
|
||||
id: '栏目 id,可选,默认为空',
|
||||
keyword: '关键词,可选,默认为空',
|
||||
site: '分站,见下表,默认为 newspark',
|
||||
id: '栏目 id',
|
||||
keyword: '关键字',
|
||||
},
|
||||
description: `::: tip 提示
|
||||
description: `分站
|
||||
|
||||
| newspark | local |
|
||||
| -------- | ----- |
|
||||
|
||||
::: tip 提示
|
||||
若订阅 [时政](https://www.6parknews.com/newspark/index.php?type=1),其网址为 <https://www.6parknews.com/newspark/index.php?type=1>,其中 \`newspark\` 为分站,\`1\` 为栏目 id。
|
||||
若订阅 [美国](https://local.6parknews.com/index.php?type_id=1),其网址为 <https://local.6parknews.com/index.php?type_id=1>,其中 \`local\` 为分站,\`1\` 为栏目 id。
|
||||
:::`,
|
||||
|
||||
@@ -7,13 +7,26 @@ import got from '@/utils/got';
|
||||
import { parseDate } from '@/utils/parse-date';
|
||||
|
||||
export const route: Route = {
|
||||
path: '*',
|
||||
name: 'Unknown',
|
||||
maintainers: [],
|
||||
path: '/:category?',
|
||||
categories: ['new-media'],
|
||||
example: '/8world/realtime',
|
||||
parameters: { category: '分类 id,见下表,默认为即时 REALTIME' },
|
||||
description: `| 分类 | id |
|
||||
| ---------------------- | -------------- |
|
||||
| 即时 REALTIME | realtime |
|
||||
| 新加坡 SINGAPORE | singapore |
|
||||
| 东南亚 SOUTH-EAST ASIA | southeast-asia |
|
||||
| 中港台 GREATER CHINA | greater-china |
|
||||
| 国际 WORLD | world |
|
||||
| 财经 FINANCE | finance |
|
||||
| 体育 SPORTS | sports |
|
||||
| 社团 COMMUNITY | community |`,
|
||||
name: '分类',
|
||||
maintainers: ['nczitzk'],
|
||||
handler,
|
||||
};
|
||||
|
||||
async function handler(ctx) {
|
||||
export async function handler(ctx) {
|
||||
const path = getSubPath(ctx) === '/' ? '/realtime' : getSubPath(ctx);
|
||||
|
||||
const rootUrl = 'https://www.8world.com';
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
import type { Route } from '@/types';
|
||||
|
||||
import { handler } from './index';
|
||||
|
||||
export const route: Route = {
|
||||
path: '/topic/:id',
|
||||
categories: ['new-media'],
|
||||
example: '/8world/topic/xianggang-3',
|
||||
parameters: { id: '标签 id,可在对应标签页中找到' },
|
||||
name: '标签',
|
||||
maintainers: ['nczitzk'],
|
||||
handler,
|
||||
};
|
||||
@@ -7,9 +7,20 @@ import utils from './utils';
|
||||
|
||||
export const route: Route = {
|
||||
path: '/:subsite/:tag?',
|
||||
name: 'Unknown',
|
||||
maintainers: [],
|
||||
categories: ['new-media'],
|
||||
example: '/9to5/mac/aapl',
|
||||
parameters: {
|
||||
subsite: 'Subsite name',
|
||||
tag: 'Tag name inside the url of the tag page',
|
||||
},
|
||||
name: 'Sub-site',
|
||||
maintainers: ['HenryQW'],
|
||||
handler,
|
||||
description: `Supported sub-sites:
|
||||
|
||||
| 9To5Mac | 9To5Google | 9To5Toys |
|
||||
| ------- | ---------- | -------- |
|
||||
| Mac | Google | Toys |`,
|
||||
};
|
||||
|
||||
async function handler(ctx) {
|
||||
|
||||
@@ -24,7 +24,7 @@ export const route: Route = {
|
||||
},
|
||||
],
|
||||
name: '话题',
|
||||
maintainers: [],
|
||||
maintainers: ['nczitzk'],
|
||||
handler,
|
||||
url: 'aamacau.com/',
|
||||
description: `| 即時報道 | 每週專題 | 藝文爛鬼樓 | 論盡紙本 | 新聞事件 | 特別企劃 |
|
||||
|
||||
@@ -31,7 +31,7 @@ export const route: Route = {
|
||||
},
|
||||
],
|
||||
name: '类别',
|
||||
maintainers: [],
|
||||
maintainers: ['Fatpandac'],
|
||||
handler,
|
||||
description: `参数可以从链接中拿到,如:
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ export const route: Route = {
|
||||
},
|
||||
],
|
||||
name: '首页最新新闻',
|
||||
maintainers: [],
|
||||
maintainers: ['Fatpandac'],
|
||||
handler,
|
||||
url: 'www.abmedia.io/',
|
||||
};
|
||||
|
||||
@@ -7,6 +7,8 @@ import { parseDate } from '@/utils/parse-date';
|
||||
|
||||
export const route: Route = {
|
||||
path: '/',
|
||||
categories: ['multimedia'],
|
||||
example: '/abskoop',
|
||||
radar: [
|
||||
{
|
||||
source: ['ahhhhfs.com/'],
|
||||
|
||||
@@ -4,6 +4,8 @@ import { parseDate } from '@/utils/parse-date';
|
||||
|
||||
export const route: Route = {
|
||||
path: '/nsfw',
|
||||
categories: ['multimedia'],
|
||||
example: '/abskoop/nsfw',
|
||||
radar: [
|
||||
{
|
||||
source: ['ahhhhfs.com/'],
|
||||
|
||||
@@ -10,14 +10,23 @@ import playwright from '@/utils/playwright';
|
||||
|
||||
export const route: Route = {
|
||||
path: '/journal/:id',
|
||||
categories: ['journal'],
|
||||
example: '/acs/journal/jacsat',
|
||||
parameters: { id: 'Journal id, can be found in URL' },
|
||||
features: {
|
||||
supportScihub: true,
|
||||
},
|
||||
radar: [
|
||||
{
|
||||
source: ['pubs.acs.org/journal/:id', 'pubs.acs.org/'],
|
||||
},
|
||||
],
|
||||
name: 'Unknown',
|
||||
name: 'Journal',
|
||||
maintainers: ['nczitzk'],
|
||||
handler,
|
||||
description: `::: tip
|
||||
See [Browse Content](https://pubs.acs.org)
|
||||
:::`,
|
||||
};
|
||||
|
||||
async function handler(ctx) {
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
import type { Route } from '@/types';
|
||||
|
||||
import { handler } from './index';
|
||||
|
||||
export const route: Route = {
|
||||
path: '/cover',
|
||||
categories: ['finance'],
|
||||
example: '/aicaijing/cover',
|
||||
radar: [
|
||||
{
|
||||
source: ['www.aicaijing.com/'],
|
||||
target: '/cover',
|
||||
},
|
||||
],
|
||||
name: '封面文章',
|
||||
maintainers: ['nczitzk'],
|
||||
handler,
|
||||
};
|
||||
@@ -2,18 +2,27 @@ import { raw } from 'hono/html';
|
||||
import { renderToString } from 'hono/jsx/dom/server';
|
||||
|
||||
import type { Route } from '@/types';
|
||||
import { getSubPath } from '@/utils/common-utils';
|
||||
import got from '@/utils/got';
|
||||
import { parseDate } from '@/utils/parse-date';
|
||||
|
||||
export const route: Route = {
|
||||
path: '/:category?/:id?',
|
||||
name: 'Unknown',
|
||||
maintainers: [],
|
||||
path: '/latest',
|
||||
categories: ['finance'],
|
||||
example: '/aicaijing/latest',
|
||||
radar: [
|
||||
{
|
||||
source: ['www.aicaijing.com/'],
|
||||
target: '/latest',
|
||||
},
|
||||
],
|
||||
name: '最新文章',
|
||||
maintainers: ['nczitzk'],
|
||||
handler,
|
||||
};
|
||||
|
||||
async function handler(ctx) {
|
||||
const category = ctx.req.param('category') ?? 'latest';
|
||||
export async function handler(ctx) {
|
||||
const category = getSubPath(ctx).split('/', 2)[1];
|
||||
const id = ctx.req.param('id') ?? 14;
|
||||
|
||||
const titles = {
|
||||
|
||||
@@ -0,0 +1,38 @@
|
||||
import type { Route } from '@/types';
|
||||
|
||||
import { handler } from './index';
|
||||
|
||||
export const route: Route = {
|
||||
path: '/information/:id?',
|
||||
categories: ['finance'],
|
||||
example: '/aicaijing/information/14',
|
||||
parameters: {
|
||||
id: '栏目 id,可在对应栏目页 URL 中找到,默认为 14,即热点最新',
|
||||
},
|
||||
description: `| 栏目 id | 栏目 |
|
||||
| ------- | ----------- |
|
||||
| 14 | 热点 - 最新 |
|
||||
| 5 | 热点 - 科技 |
|
||||
| 9 | 热点 - 消费 |
|
||||
| 7 | 热点 - 出行 |
|
||||
| 13 | 热点 - 文娱 |
|
||||
| 10 | 热点 - 教育 |
|
||||
| 25 | 热点 - 地产 |
|
||||
| 11 | 热点 - 更多 |
|
||||
| 28 | 深度 - 出行 |
|
||||
| 29 | 深度 - 科技 |
|
||||
| 31 | 深度 - 消费 |
|
||||
| 33 | 深度 - 教育 |
|
||||
| 34 | 深度 - 更多 |
|
||||
| 8 | 深度 - 地产 |
|
||||
| 6 | 深度 - 文娱 |`,
|
||||
radar: [
|
||||
{
|
||||
source: ['www.aicaijing.com/information/:id', 'www.aicaijing.com/'],
|
||||
target: '/information/:id?',
|
||||
},
|
||||
],
|
||||
name: '热点 & 深度',
|
||||
maintainers: ['nczitzk'],
|
||||
handler,
|
||||
};
|
||||
@@ -0,0 +1,18 @@
|
||||
import type { Route } from '@/types';
|
||||
|
||||
import { handler } from './index';
|
||||
|
||||
export const route: Route = {
|
||||
path: '/recommend',
|
||||
categories: ['finance'],
|
||||
example: '/aicaijing/recommend',
|
||||
radar: [
|
||||
{
|
||||
source: ['www.aicaijing.com/'],
|
||||
target: '/recommend',
|
||||
},
|
||||
],
|
||||
name: '推荐资讯',
|
||||
maintainers: ['nczitzk'],
|
||||
handler,
|
||||
};
|
||||
@@ -19,7 +19,7 @@ export const route: Route = {
|
||||
supportScihub: false,
|
||||
},
|
||||
name: '频道、专栏、用户',
|
||||
maintainers: [],
|
||||
maintainers: ['bigfei'],
|
||||
handler,
|
||||
description: `| type | 说明 |
|
||||
| ------- | ---- |
|
||||
|
||||
@@ -7,8 +7,11 @@ import { parseDate } from '@/utils/parse-date';
|
||||
import { ossUrl, ProcessFeed, rootUrl } from './utils';
|
||||
|
||||
export const route: Route = {
|
||||
path: ['/ranking/:id?/:period?', '/toplist/:id?/:period?'],
|
||||
name: 'Unknown',
|
||||
path: '/toplist/:id?/:period?',
|
||||
categories: ['reading'],
|
||||
example: '/aisixiang/toplist/1/7',
|
||||
parameters: { id: '类型', period: '范围, 仅适用于点击排行榜, 可选一天(1),一周(7),一月(30),所有(-1),默认为一天' },
|
||||
name: '排行',
|
||||
maintainers: ['HenryQW', 'nczitzk'],
|
||||
handler,
|
||||
description: `| 文章点击排行 | 最近更新文章 | 文章推荐排行 |
|
||||
|
||||
@@ -35,14 +35,45 @@ const renderDescription = (image, description) =>
|
||||
);
|
||||
|
||||
export const route: Route = {
|
||||
path: '*',
|
||||
name: 'Unknown',
|
||||
path: '/:language?/:category{.+}?',
|
||||
categories: ['traditional-media'],
|
||||
example: '/aljazeera/english/news',
|
||||
parameters: {
|
||||
language: 'Language, see below, arabic by default, as Arabic',
|
||||
category: 'Category, can be found in URL, homepage by default',
|
||||
},
|
||||
description: `Language
|
||||
|
||||
| Arabic | Chinese | English |
|
||||
| ------ | ------- | ------- |
|
||||
| arabic | chinese | english |
|
||||
|
||||
::: tip
|
||||
If you subscribe to [Al Jazeera English - Economy](https://www.aljazeera.com/economy), whose language is \`english\` and whose path is \`economy\`, you can get the route as [\`/aljazeera/english/economy\`](https://rsshub.app/aljazeera/english/economy)
|
||||
|
||||
If you subscribe to [Al Jazeera Chinese - Political](https://chinese.aljazeera.net/news/political) with language \`chinese\` and path \`news/political\`, you can get the route as [\`/aljazeera/chinese/news/political\`](https://rsshub.app/aljazeera/chinese/news/political)
|
||||
:::`,
|
||||
radar: [
|
||||
{
|
||||
source: ['www.aljazeera.com/:category', 'www.aljazeera.com/'],
|
||||
target: '/english/:category',
|
||||
},
|
||||
{
|
||||
source: ['www.aljazeera.net/:category', 'www.aljazeera.net/'],
|
||||
target: '/arabic/:category',
|
||||
},
|
||||
{
|
||||
source: ['chinese.aljazeera.net/:category', 'chinese.aljazeera.net/'],
|
||||
target: '/chinese/:category',
|
||||
},
|
||||
],
|
||||
name: 'News',
|
||||
maintainers: ['nczitzk'],
|
||||
handler,
|
||||
};
|
||||
|
||||
async function handler(ctx) {
|
||||
const params = getSubPath(ctx) === '/' ? ['arabic'] : getSubPath(ctx).replace(/^\//, '').split('/');
|
||||
export async function handler(ctx) {
|
||||
const params = getSubPath(ctx).split('/').filter(Boolean);
|
||||
|
||||
if (!Object.hasOwn(languages, params[0])) {
|
||||
params.unshift('arabic');
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
import type { Route } from '@/types';
|
||||
|
||||
import { handler } from './index';
|
||||
|
||||
export const route: Route = {
|
||||
path: '/:language?/rss',
|
||||
categories: ['traditional-media'],
|
||||
example: '/aljazeera/english/rss',
|
||||
parameters: {
|
||||
language: 'Language, see below, arabic by default, as Arabic',
|
||||
},
|
||||
description: `Language
|
||||
|
||||
| Arabic | Chinese | English |
|
||||
| ------ | ------- | ------- |
|
||||
| arabic | chinese | english |
|
||||
|
||||
::: tip
|
||||
There is no RSS source for Al Jazeera Chinese, returning homepage content by default
|
||||
:::`,
|
||||
radar: [
|
||||
{
|
||||
source: ['www.aljazeera.com/xml/rss/all.xml', 'www.aljazeera.com/'],
|
||||
target: '/english/rss',
|
||||
},
|
||||
{
|
||||
source: ['www.aljazeera.net/rss', 'www.aljazeera.net/'],
|
||||
target: '/arabic/rss',
|
||||
},
|
||||
],
|
||||
name: 'Official RSS',
|
||||
maintainers: ['nczitzk'],
|
||||
handler,
|
||||
};
|
||||
@@ -0,0 +1,39 @@
|
||||
import type { Route } from '@/types';
|
||||
|
||||
import { handler } from './index';
|
||||
|
||||
export const route: Route = {
|
||||
path: '/:language?/tag/:id',
|
||||
categories: ['traditional-media'],
|
||||
example: '/aljazeera/english/tag/science-and-technology',
|
||||
parameters: {
|
||||
language: 'Language, see below, arabic by default, as Arabic',
|
||||
id: 'Tag id, can be found in URL',
|
||||
},
|
||||
description: `Language
|
||||
|
||||
| Arabic | Chinese | English |
|
||||
| ------ | ------- | ------- |
|
||||
| arabic | chinese | english |
|
||||
|
||||
::: tip
|
||||
If you subscribe to [Al Jazeera English - Science and Technology](https://www.aljazeera.com/tag/science-and-technology), whose language is \`english\` and whose path is \`science-and-technology\`, you can get the route as [\`/aljazeera/english/tag/science-and-technology\`](https://rsshub.app/aljazeera/english/tag/science-and-technology)
|
||||
:::`,
|
||||
radar: [
|
||||
{
|
||||
source: ['www.aljazeera.com/tag/:id', 'www.aljazeera.com/'],
|
||||
target: '/english/tag/:id',
|
||||
},
|
||||
{
|
||||
source: ['www.aljazeera.net/tag/:id', 'www.aljazeera.net/'],
|
||||
target: '/arabic/tag/:id',
|
||||
},
|
||||
{
|
||||
source: ['chinese.aljazeera.net/tag/:id', 'chinese.aljazeera.net/'],
|
||||
target: '/chinese/tag/:id',
|
||||
},
|
||||
],
|
||||
name: 'Tag',
|
||||
maintainers: ['nczitzk'],
|
||||
handler,
|
||||
};
|
||||
@@ -4,7 +4,15 @@ import { parseDate } from '@/utils/parse-date';
|
||||
|
||||
export const route: Route = {
|
||||
path: '/awsblogs/:locale?',
|
||||
name: 'Unknown',
|
||||
categories: ['blog'],
|
||||
example: '/amazon/awsblogs',
|
||||
parameters: {
|
||||
locale: 'Blog posts in a specified language, only the following options are supported. Default `zh_CN`',
|
||||
},
|
||||
description: `| zh\\_CN | en\\_US | fr\\_FR | de\\_DE | ja\\_JP | ko\\_KR | pt\\_BR | es\\_ES | ru\\_RU | id\\_ID | tr\\_TR |
|
||||
| ------- | ------- | ------ | ------ | -------- | ------ | ---------- | ------- | ------- | ---------- | ------- |
|
||||
| Chinese | English | French | German | Japanese | Korean | Portuguese | Spanish | Russian | Indonesian | Turkish |`,
|
||||
name: 'AWS Blogs',
|
||||
maintainers: ['HankChow'],
|
||||
handler,
|
||||
};
|
||||
|
||||
@@ -19,7 +19,7 @@ export const route: Route = {
|
||||
supportScihub: false,
|
||||
},
|
||||
name: 'Kindle Software Updates',
|
||||
maintainers: ['EthanWng97'],
|
||||
maintainers: ['IvanWng97'],
|
||||
handler,
|
||||
};
|
||||
|
||||
|
||||
@@ -7,8 +7,10 @@ import { parseDate } from '@/utils/parse-date';
|
||||
|
||||
export const route: Route = {
|
||||
path: '/cn/news',
|
||||
name: 'Unknown',
|
||||
maintainers: [],
|
||||
categories: ['other'],
|
||||
example: '/aqara/cn/news',
|
||||
name: '新闻',
|
||||
maintainers: ['nczitzk'],
|
||||
handler,
|
||||
};
|
||||
|
||||
|
||||
@@ -2,14 +2,22 @@ import { load } from 'cheerio';
|
||||
import { renderToString } from 'hono/jsx/dom/server';
|
||||
|
||||
import type { Route } from '@/types';
|
||||
import { getSubPath } from '@/utils/common-utils';
|
||||
import got from '@/utils/got';
|
||||
import { parseDate } from '@/utils/parse-date';
|
||||
|
||||
export const route: Route = {
|
||||
path: '*',
|
||||
name: 'Unknown',
|
||||
maintainers: [],
|
||||
path: '/:path{.+}?',
|
||||
categories: ['other'],
|
||||
example: '/aqara/en/category/press-release',
|
||||
parameters: { path: '路径,默认为首页' },
|
||||
description: `路径处填写对应页面 URL 中 \`https://aqara.com/\` 后的字段,形如 \`:region/category/:id\` 或 \`:region/tag/:id\`。
|
||||
|
||||
| 参数 | 说明 |
|
||||
| ------ | -------------------------------------------------------- |
|
||||
| region | 地区 id,可在对应分类页 URL 中找到,默认为 en,即 Global |
|
||||
| id | 分类 id 或标签 id,可在对应分类页或标签页 URL 中找到 |`,
|
||||
name: '分类、标签',
|
||||
maintainers: ['nczitzk'],
|
||||
handler,
|
||||
};
|
||||
|
||||
@@ -24,7 +32,7 @@ async function handler(ctx) {
|
||||
let currentUrl = rootUrl;
|
||||
let apiUrl = new URL(`${apiSlug}/posts?_embed=true&per_page=${limit}`, rootUrl).href;
|
||||
|
||||
const filterMatches = getSubPath(ctx).match(/^\/([^/]*)\/([^/]*)\/(.*)$/);
|
||||
const filterMatches = (ctx.req.param('path') ?? '').match(/^([^/]*)\/([^/]*)\/(.*)$/);
|
||||
|
||||
if (filterMatches) {
|
||||
const filterRegion = filterMatches[1];
|
||||
|
||||
@@ -2,8 +2,21 @@ import type { Route } from '@/types';
|
||||
|
||||
export const route: Route = {
|
||||
path: '/:region/:type?',
|
||||
name: 'Unknown',
|
||||
maintainers: [],
|
||||
categories: ['other'],
|
||||
example: '/aqara/en/news',
|
||||
parameters: {
|
||||
region: '地区 id,可在对应新闻页 URL 中找到,默认为 en,即 Global',
|
||||
type: '类型,见下表,默认为 news,即新闻',
|
||||
},
|
||||
description: `| 中国 / 大陆 | 대한민국 | Europe | United States | Russia | Global |
|
||||
| ----------- | -------- | ------ | ------------- | ------ | ------ |
|
||||
| cn | kr | eu | us | ru | en |
|
||||
|
||||
| 新闻 | 博客 |
|
||||
| ---- | ---- |
|
||||
| news | blog |`,
|
||||
name: '新闻、博客',
|
||||
maintainers: ['nczitzk'],
|
||||
handler,
|
||||
};
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@ export const route: Route = {
|
||||
},
|
||||
],
|
||||
name: 'New Arrivals',
|
||||
maintainers: ['EthanWng97'],
|
||||
maintainers: ['IvanWng97'],
|
||||
handler,
|
||||
description: `Country
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@ export const route: Route = {
|
||||
},
|
||||
],
|
||||
name: 'Outlet',
|
||||
maintainers: ['EthanWng97'],
|
||||
maintainers: ['IvanWng97'],
|
||||
handler,
|
||||
description: `Country
|
||||
|
||||
|
||||
@@ -27,7 +27,7 @@ export const route: Route = {
|
||||
},
|
||||
],
|
||||
name: 'Regear New Arrivals',
|
||||
maintainers: ['EthanWng97'],
|
||||
maintainers: ['IvanWng97'],
|
||||
handler,
|
||||
url: 'regear.arcteryx.com/shop/new-arrivals',
|
||||
};
|
||||
|
||||
@@ -0,0 +1,35 @@
|
||||
import type { Route } from '@/types';
|
||||
|
||||
import { handler } from './index';
|
||||
|
||||
export const route: Route = {
|
||||
path: '/category/:id',
|
||||
categories: ['picture'],
|
||||
example: '/asiantolick/category/90',
|
||||
parameters: {
|
||||
id: 'Category id, can be found in URL',
|
||||
},
|
||||
features: {
|
||||
nsfw: true,
|
||||
},
|
||||
radar: [
|
||||
{
|
||||
source: ['asiantolick.com/category-:id'],
|
||||
target: '/category/:id',
|
||||
},
|
||||
],
|
||||
name: 'Category',
|
||||
maintainers: ['nczitzk'],
|
||||
handler,
|
||||
url: 'asiantolick.com/',
|
||||
description: `| Category | id |
|
||||
| ---------- | ---- |
|
||||
| Lolita | 90 |
|
||||
| Hot Sister | 91 |
|
||||
| Cosplay | 1030 |
|
||||
| Sexy | 93 |
|
||||
| Others | 94 |
|
||||
| Thailand | 99 |
|
||||
| Magazine | 100 |
|
||||
| Hard Sexy | 103 |`,
|
||||
};
|
||||
@@ -2,21 +2,24 @@ import { load } from 'cheerio';
|
||||
|
||||
import type { Route } from '@/types';
|
||||
import cache from '@/utils/cache';
|
||||
import { getSubPath } from '@/utils/common-utils';
|
||||
import got from '@/utils/got';
|
||||
import { parseDate } from '@/utils/parse-date';
|
||||
|
||||
import { renderDescription } from './templates/description';
|
||||
|
||||
export const route: Route = {
|
||||
path: '/:category{.+}?',
|
||||
path: '/',
|
||||
categories: ['picture'],
|
||||
example: '/asiantolick',
|
||||
radar: [
|
||||
{
|
||||
source: ['asiantolick.com/'],
|
||||
target: '',
|
||||
target: '/',
|
||||
},
|
||||
],
|
||||
name: 'Unknown',
|
||||
maintainers: [],
|
||||
name: 'Top rated',
|
||||
maintainers: ['nczitzk'],
|
||||
handler,
|
||||
url: 'asiantolick.com/',
|
||||
features: {
|
||||
@@ -24,23 +27,21 @@ export const route: Route = {
|
||||
},
|
||||
};
|
||||
|
||||
async function handler(ctx) {
|
||||
const category = ctx.req.param('category');
|
||||
export async function handler(ctx) {
|
||||
const category = getSubPath(ctx).slice(1);
|
||||
const limit = ctx.req.query('limit') ? Number(ctx.req.query('limit')) : 24;
|
||||
|
||||
const rootUrl = 'https://asiantolick.com';
|
||||
const apiUrl = new URL('ajax/buscar_posts.php', rootUrl).href;
|
||||
const currentUrl = new URL(category?.replace(/^(tag|category)?\/(\d+)/, '$1-$2') ?? '', rootUrl).href;
|
||||
const currentUrl = new URL(category.replace(/^(tag|category)?\/(\d+)/, '$1-$2'), rootUrl).href;
|
||||
|
||||
const searchParams = {};
|
||||
const matches = category?.match(/^(tag|category|search|page)?[/-]?(\w+)/) ?? undefined;
|
||||
const matches = category.match(/^(tag|category|search|page)?[/-]?(\w+)/);
|
||||
|
||||
if (matches) {
|
||||
const key = matches[1] === 'category' ? 'cat' : matches[1];
|
||||
const value = matches[2];
|
||||
searchParams[key] = value;
|
||||
} else if (category) {
|
||||
searchParams.page = 'news';
|
||||
}
|
||||
|
||||
const { data: response } = await got(apiUrl, {
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
import type { Route } from '@/types';
|
||||
|
||||
import { handler } from './index';
|
||||
|
||||
export const route: Route = {
|
||||
path: '/page/:id',
|
||||
categories: ['picture'],
|
||||
example: '/asiantolick/page/news',
|
||||
parameters: {
|
||||
id: 'Page id',
|
||||
},
|
||||
features: {
|
||||
nsfw: true,
|
||||
},
|
||||
radar: [
|
||||
{
|
||||
source: ['asiantolick.com/page/:id'],
|
||||
target: '/page/:id',
|
||||
},
|
||||
],
|
||||
name: 'Page',
|
||||
maintainers: ['nczitzk'],
|
||||
handler,
|
||||
url: 'asiantolick.com/',
|
||||
};
|
||||
@@ -0,0 +1,25 @@
|
||||
import type { Route } from '@/types';
|
||||
|
||||
import { handler } from './index';
|
||||
|
||||
export const route: Route = {
|
||||
path: '/search/:keyword',
|
||||
categories: ['picture'],
|
||||
example: '/asiantolick/search/lolita',
|
||||
parameters: {
|
||||
keyword: 'Keyword',
|
||||
},
|
||||
features: {
|
||||
nsfw: true,
|
||||
},
|
||||
radar: [
|
||||
{
|
||||
source: ['asiantolick.com/search/:keyword'],
|
||||
target: '/search/:keyword',
|
||||
},
|
||||
],
|
||||
name: 'Search',
|
||||
maintainers: ['nczitzk'],
|
||||
handler,
|
||||
url: 'asiantolick.com/',
|
||||
};
|
||||
@@ -0,0 +1,64 @@
|
||||
import type { Route } from '@/types';
|
||||
|
||||
import { handler } from './index';
|
||||
|
||||
export const route: Route = {
|
||||
path: '/tag/:id',
|
||||
categories: ['picture'],
|
||||
example: '/asiantolick/tag/1045',
|
||||
parameters: {
|
||||
id: 'Tag id, can be found in URL',
|
||||
},
|
||||
features: {
|
||||
nsfw: true,
|
||||
},
|
||||
radar: [
|
||||
{
|
||||
source: ['asiantolick.com/tag-:id'],
|
||||
target: '/tag/:id',
|
||||
},
|
||||
],
|
||||
name: 'Tag',
|
||||
maintainers: ['nczitzk'],
|
||||
handler,
|
||||
url: 'asiantolick.com/',
|
||||
description: `| Aidol | Anal | Babe | Big Boobs | Big Pussy |
|
||||
| ----- | ---- | ---- | --------- | --------- |
|
||||
| 2310 | 2233 | 1385 | 1106 | 1722 |
|
||||
|
||||
| Bikini | Blonde | blowjob | Close Up | Creamy Pussy |
|
||||
| ------ | ------ | ------- | -------- | ------------ |
|
||||
| 1206 | 2244 | 2167 | 2267 | 1117 |
|
||||
|
||||
| cum | Cute Girl | Dildo | Ebony | Feet |
|
||||
| ---- | --------- | ----- | ----- | ---- |
|
||||
| 2163 | 1090 | 1082 | 2245 | 1323 |
|
||||
|
||||
| fetish | fingers | Fox Tail | Glasses | Hairy Pussy |
|
||||
| ------ | ------- | -------- | ------- | ----------- |
|
||||
| 2219 | 2197 | 1540 | 1268 | 1099 |
|
||||
|
||||
| Interracial | Lesbian | licked | Loli | Maid |
|
||||
| ----------- | ------- | ------ | ---- | ---- |
|
||||
| 2284 | 1080 | 2208 | 1045 | 1072 |
|
||||
|
||||
| Masturbate | Milf | non-nude | Nude | Nurse |
|
||||
| ---------- | ---- | -------- | ---- | ----- |
|
||||
| 1081 | 1705 | 2307 | 1393 | 1552 |
|
||||
|
||||
| Office | oiled | Outdoor | Pink Pussy | Pink Tits |
|
||||
| ------ | ----- | ------- | ---------- | --------- |
|
||||
| 1724 | 2176 | 2250 | 1161 | 1498 |
|
||||
|
||||
| Public | School Girl | Short Hair | skirt | Small Girl |
|
||||
| ------ | ----------- | ---------- | ----- | ---------- |
|
||||
| 1277 | 1046 | 1160 | 2159 | 1103 |
|
||||
|
||||
| Socks | sucking | Tattoo | Teen | Tiny Tits |
|
||||
| ----- | ------- | ------ | ---- | --------- |
|
||||
| 2256 | 2199 | 1593 | 1036 | 2251 |
|
||||
|
||||
| Underwear | Uniform | wet | Young |
|
||||
| --------- | ------- | ---- | ----- |
|
||||
| 1324 | 1084 | 2179 | 1098 |`,
|
||||
};
|
||||
+11
-5
@@ -1,21 +1,27 @@
|
||||
import { load } from 'cheerio';
|
||||
|
||||
import type { Route } from '@/types';
|
||||
import { getSubPath } from '@/utils/common-utils';
|
||||
import got from '@/utils/got';
|
||||
import { parseDate } from '@/utils/parse-date';
|
||||
import timezone from '@/utils/timezone';
|
||||
|
||||
export const route: Route = {
|
||||
path: '*',
|
||||
name: 'Unknown',
|
||||
maintainers: [],
|
||||
path: '/:path{.+}?',
|
||||
categories: ['new-media'],
|
||||
example: '/bad',
|
||||
parameters: { path: '路径,默认为首页热门' },
|
||||
description: `若订阅 [每日热点 - 最新](https://bad.news/tag/每日热点/sort-new),网址为 \`https://bad.news/tag/每日热点/sort-new\`。截取 \`https://bad.news\` 到末尾的部分 \`/tag/每日热点/sort-new\` 作为参数,此时路由为 [\`/bad/tag/每日热点/sort-new\`](https://rsshub.app/bad/tag/每日热点/sort-new)。
|
||||
|
||||
若订阅子分类 [大陆资讯 - 热门](https://bad.news/tag/大陆资讯/sort-hot),网址为 \`https://bad.news/tag/大陆资讯/sort-hot\`。截取 \`https://bad.news\` 到末尾的部分 \`/tag/大陆资讯/sort-hot\` 作为参数,路由为 [\`/bad/tag/大陆资讯/sort-hot\`](https://rsshub.app/bad/tag/大陆资讯/sort-hot)。`,
|
||||
name: '通用',
|
||||
maintainers: ['nczitzk'],
|
||||
handler,
|
||||
};
|
||||
|
||||
async function handler(ctx) {
|
||||
const rootUrl = 'https://bad.news';
|
||||
const currentUrl = `${rootUrl}${getSubPath(ctx) === '/' ? '' : getSubPath(ctx)}`;
|
||||
const path = ctx.req.param('path');
|
||||
const currentUrl = path ? `${rootUrl}/${path}` : rootUrl;
|
||||
|
||||
const response = await got({
|
||||
method: 'get',
|
||||
|
||||
@@ -2,24 +2,36 @@ import { load } from 'cheerio';
|
||||
|
||||
import type { Route } from '@/types';
|
||||
import cache from '@/utils/cache';
|
||||
import { getSubPath } from '@/utils/common-utils';
|
||||
import got from '@/utils/got';
|
||||
import { parseDate } from '@/utils/parse-date';
|
||||
import timezone from '@/utils/timezone';
|
||||
|
||||
export const route: Route = {
|
||||
path: '*',
|
||||
name: 'Unknown',
|
||||
maintainers: [],
|
||||
path: '/:path{.+}?',
|
||||
categories: ['new-media'],
|
||||
example: '/bast/col/col31266',
|
||||
parameters: { path: '路径,默认为通知公告' },
|
||||
features: {
|
||||
antiCrawler: true,
|
||||
},
|
||||
name: '通用',
|
||||
maintainers: ['nczitzk'],
|
||||
description: `路径处填写对应页面 URL 中 \`https://www.bast.net.cn/\` 后的字段。下面是两个例子。
|
||||
|
||||
若订阅 [通知公告](https://www.bast.net.cn/col/col31266) 则将对应页面 URL <https://www.bast.net.cn/col/col31266> 中 \`https://www.bast.net.cn/\` 后的字段 \`col/col31266\` 作为路径填入。此时路由为 [\`/bast/col/col31266\`](https://rsshub.app/bast/col/col31266)
|
||||
|
||||
若订阅 [学术动态](https://www.bast.net.cn/col/col31530) 则将对应页面 URL <https://www.bast.net.cn/col/col31530> 中 \`https://www.bast.net.cn/\` 后的字段 \`col/col31530\` 作为路径填入。此时路由为 [\`/bast/col/col31530\`](https://rsshub.app/bast/col/col31530)
|
||||
|
||||
如果路由符合 \`/col/colXXXXX\` 的格式,可以由 [\`/bast/col/col31266\`](https://rsshub.app/bast/col/col31266) 精简为 [\`/bast/31266\`](https://rsshub.app/bast/31266)`,
|
||||
handler,
|
||||
};
|
||||
|
||||
async function handler(ctx) {
|
||||
const colPath = getSubPath(ctx).replace(/^\//, '') || '32942';
|
||||
const colPath = ctx.req.param('path') ?? '32942';
|
||||
const limit = ctx.req.query('limit') ? Number.parseInt(ctx.req.query('limit')) : 50;
|
||||
|
||||
const rootUrl = 'https://www.bast.net.cn';
|
||||
const currentUrl = `${rootUrl}/${Number.isNaN(colPath) ? colPath : `col/col${colPath}`}/`;
|
||||
const currentUrl = `${rootUrl}/${Number.isNaN(Number(colPath)) ? colPath : `col/col${colPath}`}/`;
|
||||
|
||||
const response = await got({
|
||||
method: 'get',
|
||||
|
||||
@@ -20,7 +20,7 @@ export const route: Route = {
|
||||
},
|
||||
],
|
||||
name: 'New Releases',
|
||||
maintainers: ['EthanWng97'],
|
||||
maintainers: ['IvanWng97'],
|
||||
handler,
|
||||
url: 'bellroy.com/collection/new-releases',
|
||||
};
|
||||
|
||||
@@ -8,7 +8,7 @@ import utils from './utils';
|
||||
export const route: Route = {
|
||||
path: '/user/video-all/:uid/:embed?',
|
||||
name: '用户所有视频',
|
||||
maintainers: [],
|
||||
maintainers: ['CcccFz'],
|
||||
handler,
|
||||
example: '/bilibili/user/video-all/2267573',
|
||||
parameters: {
|
||||
|
||||
@@ -1,60 +0,0 @@
|
||||
import { load } from 'cheerio';
|
||||
|
||||
import type { Route } from '@/types';
|
||||
import cache from '@/utils/cache';
|
||||
import got from '@/utils/got';
|
||||
import { parseDate } from '@/utils/parse-date';
|
||||
|
||||
export const route: Route = {
|
||||
path: '/:channel?',
|
||||
radar: [
|
||||
{
|
||||
source: ['www.biodiscover.com/:channel'],
|
||||
target: '/:channel',
|
||||
},
|
||||
],
|
||||
name: 'Unknown',
|
||||
maintainers: ['aidistan'],
|
||||
handler,
|
||||
};
|
||||
|
||||
async function handler(ctx) {
|
||||
const channel = ctx.req.param('channel');
|
||||
const listUrl = 'http://www.biodiscover.com/' + channel;
|
||||
const response = await got({ url: listUrl });
|
||||
const $ = load(response.data);
|
||||
|
||||
const items = $('.new_list .newList_box')
|
||||
.toArray()
|
||||
.map((item) => ({
|
||||
pubDate: parseDate($(item).find('.news_flow_tag .times').text().trim()),
|
||||
link: 'http://www.biodiscover.com' + $(item).find('h2 a').attr('href'),
|
||||
}));
|
||||
|
||||
return {
|
||||
title: '生物探索 - ' + $('.header li.sel a').text(),
|
||||
link: listUrl,
|
||||
description: $('meta[name=description]').attr('content'),
|
||||
item: await Promise.all(
|
||||
items.map((item) =>
|
||||
cache.tryGet(item.link, async () => {
|
||||
const detailResponse = await got({ url: item.link });
|
||||
const $ = load(detailResponse.data);
|
||||
|
||||
// remove sharing info if exists
|
||||
const lastNode = $('.main_info').children().last();
|
||||
if (lastNode.css('display') === 'none') {
|
||||
lastNode.remove();
|
||||
}
|
||||
|
||||
return {
|
||||
title: $('h1').text().trim(),
|
||||
description: $('.main_info').html(),
|
||||
pubDate: item.pubDate,
|
||||
link: item.link,
|
||||
};
|
||||
})
|
||||
)
|
||||
),
|
||||
};
|
||||
}
|
||||
@@ -1,7 +0,0 @@
|
||||
import type { Namespace } from '@/types';
|
||||
|
||||
export const namespace: Namespace = {
|
||||
name: 'biodiscover.com 生物探索',
|
||||
url: 'www.biodiscover.com',
|
||||
lang: 'zh-CN',
|
||||
};
|
||||
@@ -5,7 +5,6 @@ import { config } from '@/config';
|
||||
import ConfigNotFoundError from '@/errors/types/config-not-found';
|
||||
import type { Route } from '@/types';
|
||||
import cache from '@/utils/cache';
|
||||
import { getSubPath } from '@/utils/common-utils';
|
||||
import got from '@/utils/got';
|
||||
import { parseDate } from '@/utils/parse-date';
|
||||
import timezone from '@/utils/timezone';
|
||||
@@ -29,15 +28,41 @@ const allowHost = new Set([
|
||||
]);
|
||||
|
||||
export const route: Route = {
|
||||
path: '*',
|
||||
name: 'Unknown',
|
||||
maintainers: [],
|
||||
path: '/:url{.+}',
|
||||
categories: ['reading'],
|
||||
example: '/biquge/http://www.biqu5200.net/0_7/',
|
||||
parameters: { url: '小说 Url,即对应小说详情页的 Url,可在地址栏中找到' },
|
||||
features: {
|
||||
antiCrawler: true,
|
||||
},
|
||||
name: '小说',
|
||||
maintainers: ['nczitzk'],
|
||||
description: `::: tip
|
||||
|
||||
#### 使用方法
|
||||
|
||||
如订阅 [《大主宰》](http://www.biqu5200.net/0_7/),此时在 [biqu5200.net](http://www.biqu5200.net) 中查询得到对应小说详情页 URL 为 \`http://www.biqu5200.net/0_7/\`。此时,路由为 [\`/biquge/http://www.biqu5200.net/0_7/\`](https://rsshub.app/biquge/http://www.biqu5200.net/0_7/)
|
||||
|
||||
又如同样订阅 [《大主宰》](https://www.shuquge.com/txt/70/index.html),此时在 [shuquge.com](https://www.shuquge.com) 中查询得到对应小说详情页 URL 为 \`https://www.shuquge.com/txt/70/index.html\`。此时,把末尾的 \`index.html\` 去掉,路由为 [\`/biquge/https://www.shuquge.com/txt/70/\`](https://rsshub.app/biquge/https://www.shuquge.com/txt/70/)
|
||||
|
||||
#### 关于章节数
|
||||
|
||||
路由默认返回最新 **1** 个章节,如有需要一次性获取多个章节,可在路由后指定 \`limit\` 参数。如上面的例子:订阅 [《大主宰》](http://www.biqu5200.net/0_7/) 并获取最新的 **10** 个章节。此时,路由为 [\`/biquge/http://www.biqu5200.net/0_7/?limit=10\`](https://rsshub.app/biquge/http://www.biqu5200.net/0_7/?limit=10)
|
||||
|
||||
需要注意的是,单次获取的所有章节更新时间统一设定为最新章节的更新时间。也就是说,获取最新的 **10** 个章节时,除了最新 **1** 个章节的更新时间是准确的(和网站一致的),其他 **9** 个章节的更新时间是不准确的。
|
||||
|
||||
另外,若设置获取章节数目过多,可能会触发网站反爬,导致路由不可用。
|
||||
:::
|
||||
|
||||
::: warning
|
||||
上方列举的网址可能部分不可用,这取决于该网站的维护者是否持续运营网站。请选择可以正常访问的网址,获取更新的前提是该网站可以正常访问。
|
||||
:::`,
|
||||
handler,
|
||||
};
|
||||
|
||||
async function handler(ctx) {
|
||||
const rootUrl = getSubPath(ctx).split('/').slice(1, 4).join('/');
|
||||
const currentUrl = getSubPath(ctx).slice(1);
|
||||
const currentUrl = ctx.req.param('url');
|
||||
const rootUrl = currentUrl.split('/').slice(0, 3).join('/');
|
||||
if (!config.feature.allow_user_supply_unsafe_domain && !allowHost.has(new URL(rootUrl).hostname)) {
|
||||
throw new ConfigNotFoundError(`This RSS is disabled unless 'ALLOW_USER_SUPPLY_UNSAFE_DOMAIN' is set to 'true'.`);
|
||||
}
|
||||
|
||||
@@ -7,9 +7,15 @@ import { parseDate } from '@/utils/parse-date';
|
||||
|
||||
export const route: Route = {
|
||||
path: '/fdy/:path{.+}?',
|
||||
name: 'Unknown',
|
||||
maintainers: [],
|
||||
categories: ['university'],
|
||||
example: '/bnu/fdy/tzgg/dwjs',
|
||||
parameters: { path: '路径,默认为 `tzgg`' },
|
||||
name: '党委学生工作部辅导员发展中心',
|
||||
maintainers: ['TonyRL'],
|
||||
handler,
|
||||
description: `路径处填写对应页面 URL 中 \`https://fdy.bnu.edu.cn/\` 和 \`/index.htm\` 之间的字段。下面是一个例子。
|
||||
|
||||
若订阅 [通知公告 > 队伍建设](https://fdy.bnu.edu.cn/tzgg/dwjs/index.htm) 则将对应页面 URL <https://fdy.bnu.edu.cn/tzgg/dwjs/index.htm> 中 \`https://fdy.bnu.edu.cn/\` 和 \`/index.htm\` 之间的字段 \`tzgg/dwjs\` 作为路径填入。此时路由为 [\`/bnu/fdy/tzgg/dwjs\`](https://rsshub.app/bnu/fdy/tzgg/dwjs)`,
|
||||
};
|
||||
|
||||
async function handler(ctx) {
|
||||
|
||||
@@ -7,15 +7,21 @@ import { parseDate } from '@/utils/parse-date';
|
||||
|
||||
export const route: Route = {
|
||||
path: '/lib/:category?',
|
||||
categories: ['university'],
|
||||
example: '/bnu/lib/zydt',
|
||||
parameters: { category: '分类,见下表,默认为 `zydt`' },
|
||||
radar: [
|
||||
{
|
||||
source: ['www.lib.bnu.edu.cn/:category/index.htm'],
|
||||
target: '/lib/:category',
|
||||
},
|
||||
],
|
||||
name: 'Unknown',
|
||||
name: '图书馆通知',
|
||||
maintainers: ['TonyRL'],
|
||||
handler,
|
||||
description: `| 资源动态 | 新闻动态 | 系列讲座 |
|
||||
| -------- | -------- | -------- |
|
||||
| zydt | xwdt | xljz1 |`,
|
||||
};
|
||||
|
||||
async function handler(ctx) {
|
||||
|
||||
@@ -15,7 +15,7 @@ export const route: Route = {
|
||||
supportScihub: false,
|
||||
},
|
||||
name: 'Exhibitions',
|
||||
maintainers: [],
|
||||
maintainers: ['chazeon'],
|
||||
handler,
|
||||
};
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import { load } from 'cheerio';
|
||||
|
||||
import type { Data, DataItem, Route } from '@/types';
|
||||
import { getSubPath } from '@/utils/common-utils';
|
||||
import ofetch from '@/utils/ofetch';
|
||||
|
||||
const FEED_TITLE = 'Immobilien - BWSG' as const;
|
||||
@@ -13,7 +12,8 @@ const BASE_URL = `${SITE_URL}/immobilien/immobilie-suchen/`;
|
||||
export const route: Route = {
|
||||
name: 'Angebote',
|
||||
example: '/bwsg/_vermarktungsart=miete&_objektart=wohnung&_zimmer=2,3&_wohnflaeche=45,70&_plz=1210,1220',
|
||||
path: '*',
|
||||
path: '/:path{.+}?',
|
||||
parameters: { path: 'Query parameters of the search, without the leading `?`, see the description below' },
|
||||
maintainers: ['sk22'],
|
||||
categories: ['other'],
|
||||
description: `Copy the query parameters for your <https://www.bwsg.at/immobilien/immobilie-suchen>
|
||||
@@ -28,7 +28,7 @@ RSS feed might not get all items.
|
||||
:::`,
|
||||
|
||||
async handler(ctx) {
|
||||
let params = getSubPath(ctx).slice(1);
|
||||
let params = ctx.req.param('path') ?? '';
|
||||
if (params.startsWith('&')) {
|
||||
params = params.slice(1);
|
||||
}
|
||||
|
||||
@@ -8,14 +8,17 @@ const currentURL = 'https://bytes.dev/archives';
|
||||
|
||||
export const route: Route = {
|
||||
path: '/',
|
||||
categories: ['programming'],
|
||||
example: '/bytes',
|
||||
radar: [
|
||||
{
|
||||
source: ['bytes.dev/archives', 'bytes.dev/'],
|
||||
target: '',
|
||||
},
|
||||
],
|
||||
name: 'Unknown',
|
||||
name: 'Your weekly dose of JS',
|
||||
maintainers: ['meixger'],
|
||||
description: 'Staying informed on the JavaScript ecosystem has never been so entertaining. Delivered every Monday and Thursday, for free.',
|
||||
handler,
|
||||
url: 'bytes.dev/archives',
|
||||
};
|
||||
|
||||
+111
-1
@@ -7,7 +7,117 @@ import { parseDate } from '@/utils/parse-date';
|
||||
|
||||
export const route: Route = {
|
||||
path: '/:category?',
|
||||
name: 'Unknown',
|
||||
categories: ['other'],
|
||||
example: '/caam/1',
|
||||
parameters: { category: '分类,见下表,默认为首页' },
|
||||
description: `| [首页](http://www.caam.org.cn/chn/1/cate_1/list_1.html) | [行业要闻](http://www.caam.org.cn/chn/1/cate_2/list_1.html) | [协会活动](http://www.caam.org.cn/chn/1/cate_3/list_1.html) | [会员专区](http://www.caam.org.cn/chn/1/cate_4/list_1.html) | [协会概况](http://www.caam.org.cn/chn/1/cate_5/list_1.html) | [协会概况 - 会员单位](http://www.caam.org.cn/chn/1/cate_6/list_1.html) |
|
||||
| ------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ---------------------------------------------------------------------- |
|
||||
| 1 | 2 | 3 | 4 | 5 | 6 |
|
||||
|
||||
| [协会概况 - 协会简介](http://www.caam.org.cn/chn/1/cate_7/list_1.html) | [协会概况 - 协会章程](http://www.caam.org.cn/chn/1/cate_8/list_1.html) | [协会概况 - 组织机构](http://www.caam.org.cn/chn/1/cate_9/list_1.html) | [协会概况 - 主要职责](http://www.caam.org.cn/chn/1/cate_10/list_1.html) | [协会概况 - 协会荣誉](http://www.caam.org.cn/chn/1/cate_11/list_1.html) | [协会概况 - 分支机构](http://www.caam.org.cn/chn/1/cate_12/list_1.html) |
|
||||
| ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- |
|
||||
| 7 | 8 | 9 | 10 | 11 | 12 |
|
||||
|
||||
| [协会概况 - 分支机构 - 机构介绍](http://www.caam.org.cn/chn/1/cate_13/list_1.html) | [协会概况 - 分支机构 - 管理办法](http://www.caam.org.cn/chn/1/cate_14/list_1.html) | [协会概况 - 分支机构 - 业务范围](http://www.caam.org.cn/chn/1/cate_15/list_1.html) | [协会工作](http://www.caam.org.cn/chn/1/cate_16/list_1.html) | [协会工作 - 协会动态](http://www.caam.org.cn/chn/1/cate_17/list_1.html) | [协会工作 - 分支机构动态](http://www.caam.org.cn/chn/1/cate_18/list_1.html) |
|
||||
| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ------------------------------------------------------------ | ----------------------------------------------------------------------- | --------------------------------------------------------------------------- |
|
||||
| 13 | 14 | 15 | 16 | 17 | 18 |
|
||||
|
||||
| [协会工作 - 重点工作](http://www.caam.org.cn/chn/1/cate_19/list_1.html) | [协会工作 - 法规标准](http://www.caam.org.cn/chn/1/cate_20/list_1.html) | [协会工作 - 信用服务](http://www.caam.org.cn/chn/1/cate_21/list_1.html) | [协会工作 - 会员服务](http://www.caam.org.cn/chn/1/cate_22/list_1.html) | [协会工作 - 政策研究](http://www.caam.org.cn/chn/1/cate_23/list_1.html) | [协会工作 - 协调合作](http://www.caam.org.cn/chn/1/cate_24/list_1.html) |
|
||||
| ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- |
|
||||
| 19 | 20 | 21 | 22 | 23 | 24 |
|
||||
|
||||
| [协会工作 - 展会信息](http://www.caam.org.cn/chn/1/cate_25/list_1.html) | [协会工作 - 国际合作](http://www.caam.org.cn/chn/1/cate_26/list_1.html) | [协会工作 - 会员动态](http://www.caam.org.cn/chn/1/cate_27/list_1.html) | [协会工作 - 行业培训](http://www.caam.org.cn/chn/1/cate_28/list_1.html) | [统计数据](http://www.caam.org.cn/chn/1/cate_29/list_1.html) | [统计数据 - 产销](http://www.caam.org.cn/chn/1/cate_30/list_1.html) |
|
||||
| ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ------------------------------------------------------------ | ------------------------------------------------------------------- |
|
||||
| 25 | 26 | 27 | 28 | 29 | 30 |
|
||||
|
||||
| [统计数据 - 产销 - 汽车](http://www.caam.org.cn/chn/1/cate_31/list_1.html) | [统计数据 - 产销 - 摩托车](http://www.caam.org.cn/chn/1/cate_32/list_1.html) | [统计数据 - 产销 - 零部件](http://www.caam.org.cn/chn/1/cate_33/list_1.html) | [统计数据 - 进出口](http://www.caam.org.cn/chn/1/cate_34/list_1.html) | [统计数据 - 进出口 - 汽车](http://www.caam.org.cn/chn/1/cate_35/list_1.html) | [统计数据 - 进出口 - 摩托车](http://www.caam.org.cn/chn/1/cate_36/list_1.html) |
|
||||
| -------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | --------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ------------------------------------------------------------------------------ |
|
||||
| 31 | 32 | 33 | 34 | 35 | 36 |
|
||||
|
||||
| [统计数据 - 进出口 - 零部件](http://www.caam.org.cn/chn/1/cate_37/list_1.html) | [统计数据 - 数据分析](http://www.caam.org.cn/chn/1/cate_38/list_1.html) | [统计数据 - 数据分析 - 国内数据](http://www.caam.org.cn/chn/1/cate_39/list_1.html) | [统计数据 - 数据分析 - 国外数据](http://www.caam.org.cn/chn/1/cate_40/list_1.html) | [统计数据 - 亚洲](http://www.caam.org.cn/chn/1/cate_41/list_1.html) | [统计数据 - 亚洲 - 日本](http://www.caam.org.cn/chn/1/cate_42/list_1.html) |
|
||||
| ------------------------------------------------------------------------------ | ----------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ------------------------------------------------------------------- | -------------------------------------------------------------------------- |
|
||||
| 37 | 38 | 39 | 40 | 41 | 42 |
|
||||
|
||||
| [统计数据 - 亚洲 - 泰国](http://www.caam.org.cn/chn/1/cate_43/list_1.html) | [统计数据 - 亚洲 - 印度](http://www.caam.org.cn/chn/1/cate_44/list_1.html) | [统计数据 - 亚洲 - 印尼](http://www.caam.org.cn/chn/1/cate_45/list_1.html) | [统计数据 - 亚洲 - 韩国](http://www.caam.org.cn/chn/1/cate_46/list_1.html) | [统计数据 - 亚洲 - 巴基斯坦](http://www.caam.org.cn/chn/1/cate_47/list_1.html) | [统计数据 - 亚洲 - 其他](http://www.caam.org.cn/chn/1/cate_48/list_1.html) |
|
||||
| -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | ------------------------------------------------------------------------------ | -------------------------------------------------------------------------- |
|
||||
| 43 | 44 | 45 | 46 | 47 | 48 |
|
||||
|
||||
| [统计数据 - 欧洲](http://www.caam.org.cn/chn/1/cate_49/list_1.html) | [统计数据 - 欧洲 - 总汇](http://www.caam.org.cn/chn/1/cate_50/list_1.html) | [统计数据 - 欧洲 - 德国](http://www.caam.org.cn/chn/1/cate_51/list_1.html) | [统计数据 - 欧洲 - 英国](http://www.caam.org.cn/chn/1/cate_52/list_1.html) | [统计数据 - 欧洲 - 法国](http://www.caam.org.cn/chn/1/cate_53/list_1.html) | [统计数据 - 欧洲 - 意大利](http://www.caam.org.cn/chn/1/cate_54/list_1.html) |
|
||||
| ------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | ---------------------------------------------------------------------------- |
|
||||
| 49 | 50 | 51 | 52 | 53 | 54 |
|
||||
|
||||
| [统计数据 - 欧洲 - 西班牙](http://www.caam.org.cn/chn/1/cate_55/list_1.html) | [统计数据 - 大洋洲](http://www.caam.org.cn/chn/1/cate_56/list_1.html) | [统计数据 - 大洋洲 - 澳大利亚](http://www.caam.org.cn/chn/1/cate_57/list_1.html) | [统计数据 - 大洋洲 - 新西兰](http://www.caam.org.cn/chn/1/cate_58/list_1.html) | [统计数据 - 北美洲](http://www.caam.org.cn/chn/1/cate_59/list_1.html) | [统计数据 - 北美洲 - 总汇](http://www.caam.org.cn/chn/1/cate_60/list_1.html) |
|
||||
| ---------------------------------------------------------------------------- | --------------------------------------------------------------------- | -------------------------------------------------------------------------------- | ------------------------------------------------------------------------------ | --------------------------------------------------------------------- | ---------------------------------------------------------------------------- |
|
||||
| 55 | 56 | 57 | 58 | 59 | 60 |
|
||||
|
||||
| [统计数据 - 北美洲 - 美国](http://www.caam.org.cn/chn/1/cate_61/list_1.html) | [统计数据 - 南美洲](http://www.caam.org.cn/chn/1/cate_62/list_1.html) | [统计数据 - 南美洲 - 阿根廷](http://www.caam.org.cn/chn/1/cate_63/list_1.html) | [统计数据 - 南美洲 - 巴西](http://www.caam.org.cn/chn/1/cate_64/list_1.html) | [统计数据 - 南美洲 - 其他](http://www.caam.org.cn/chn/1/cate_65/list_1.html) | [统计数据 - 非洲](http://www.caam.org.cn/chn/1/cate_66/list_1.html) |
|
||||
| ---------------------------------------------------------------------------- | --------------------------------------------------------------------- | ------------------------------------------------------------------------------ | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ------------------------------------------------------------------- |
|
||||
| 61 | 62 | 63 | 64 | 65 | 66 |
|
||||
|
||||
| [文件公告](http://www.caam.org.cn/chn/1/cate_67/list_1.html) | [文件公告 - 协会文件](http://www.caam.org.cn/chn/1/cate_68/list_1.html) | [文件公告 - 公示公告](http://www.caam.org.cn/chn/1/cate_69/list_1.html) | [文件公告 - 会议通知](http://www.caam.org.cn/chn/1/cate_70/list_1.html) | [文件公告 - 分支机构文件](http://www.caam.org.cn/chn/1/cate_71/list_1.html) | [专题子站](http://www.caam.org.cn/chn/1/cate_72/list_1.html) |
|
||||
| ------------------------------------------------------------ | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | --------------------------------------------------------------------------- | ------------------------------------------------------------ |
|
||||
| 67 | 68 | 69 | 70 | 71 | 72 |
|
||||
|
||||
| [专题子站 - 网站专题](http://www.caam.org.cn/chn/1/cate_73/list_1.html) | [专题子站 - 分支机构网站](http://www.caam.org.cn/chn/1/cate_74/list_1.html) | [专题子站 - 子网站](http://www.caam.org.cn/chn/1/cate_75/list_1.html) | [信息资料](http://www.caam.org.cn/chn/1/cate_76/list_1.html) | [信息资料 - 信息资料](http://www.caam.org.cn/chn/1/cate_77/list_1.html) | [信息资料 - 当前最热](http://www.caam.org.cn/chn/1/cate_78/list_1.html) |
|
||||
| ----------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------- | ------------------------------------------------------------ | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- |
|
||||
| 73 | 74 | 75 | 76 | 77 | 78 |
|
||||
|
||||
| [行业动态](http://www.caam.org.cn/chn/1/cate_79/list_1.html) | [行业动态 - 政府资讯](http://www.caam.org.cn/chn/1/cate_80/list_1.html) | [行业动态 - 企业新闻](http://www.caam.org.cn/chn/1/cate_81/list_1.html) | [行业动态 - 行业动态](http://www.caam.org.cn/chn/1/cate_82/list_1.html) | [行业动态 - 车市动态](http://www.caam.org.cn/chn/1/cate_83/list_1.html) | [行业动态 - 国内召回](http://www.caam.org.cn/chn/1/cate_84/list_1.html) |
|
||||
| ------------------------------------------------------------ | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- |
|
||||
| 79 | 80 | 81 | 82 | 83 | 84 |
|
||||
|
||||
| [行业动态 - 国外召回](http://www.caam.org.cn/chn/1/cate_85/list_1.html) | [行业动态 - 汽车新技术](http://www.caam.org.cn/chn/1/cate_86/list_1.html) | [行业动态 - 市场环境](http://www.caam.org.cn/chn/1/cate_87/list_1.html) | [行业动态 - 国际动态](http://www.caam.org.cn/chn/1/cate_88/list_1.html) | [行业动态 - 国际动态 - 新闻](http://www.caam.org.cn/chn/1/cate_89/list_1.html) | [行业动态 - 国际动态 - 企业](http://www.caam.org.cn/chn/1/cate_90/list_1.html) |
|
||||
| ----------------------------------------------------------------------- | ------------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ |
|
||||
| 85 | 86 | 87 | 88 | 89 | 90 |
|
||||
|
||||
| [行业动态 - 产品资讯](http://www.caam.org.cn/chn/1/cate_91/list_1.html) | [行业动态 - 相关行业](http://www.caam.org.cn/chn/1/cate_92/list_1.html) | [行业政策](http://www.caam.org.cn/chn/1/cate_93/list_1.html) | [行业政策 - 最新政策](http://www.caam.org.cn/chn/1/cate_95/list_1.html) | [行业政策 - 政策解读](http://www.caam.org.cn/chn/1/cate_96/list_1.html) | [行业政策 - 国家政策](http://www.caam.org.cn/chn/1/cate_97/list_1.html) |
|
||||
| ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ------------------------------------------------------------ | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- |
|
||||
| 91 | 92 | 93 | 95 | 96 | 97 |
|
||||
|
||||
| [行业政策 - 国家政策 - 产业政策](http://www.caam.org.cn/chn/1/cate_98/list_1.html) | [行业政策 - 国家政策 - 新能源汽车](http://www.caam.org.cn/chn/1/cate_99/list_1.html) | [行业政策 - 国家政策 - 节能环保](http://www.caam.org.cn/chn/1/cate_100/list_1.html) | [行业政策 - 国家政策 - 税收](http://www.caam.org.cn/chn/1/cate_101/list_1.html) | [行业政策 - 国家政策 - 进出口](http://www.caam.org.cn/chn/1/cate_102/list_1.html) | [行业政策 - 国家政策 - 其他](http://www.caam.org.cn/chn/1/cate_103/list_1.html) |
|
||||
| ---------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- |
|
||||
| 98 | 99 | 100 | 101 | 102 | 103 |
|
||||
|
||||
| [行业政策 - 地方政策](http://www.caam.org.cn/chn/1/cate_104/list_1.html) | [行业政策 - 相关政策](http://www.caam.org.cn/chn/1/cate_105/list_1.html) | [行业政策 - 国外政策](http://www.caam.org.cn/chn/1/cate_106/list_1.html) | [行业政策 - 政策报道](http://www.caam.org.cn/chn/1/cate_107/list_1.html) | [标准法规](http://www.caam.org.cn/chn/1/cate_108/list_1.html) | [标准法规 - 标准政策](http://www.caam.org.cn/chn/1/cate_109/list_1.html) |
|
||||
| ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------- | ------------------------------------------------------------------------ |
|
||||
| 104 | 105 | 106 | 107 | 108 | 109 |
|
||||
|
||||
| [标准法规 - 国家标准](http://www.caam.org.cn/chn/1/cate_110/list_1.html) | [标准法规 - 行业标准](http://www.caam.org.cn/chn/1/cate_111/list_1.html) | [标准法规 - 标准动态](http://www.caam.org.cn/chn/1/cate_112/list_1.html) | [标准法规 - 国际标准](http://www.caam.org.cn/chn/1/cate_113/list_1.html) | [标准法规 - 标准资料](http://www.caam.org.cn/chn/1/cate_114/list_1.html) | [基础资料](http://www.caam.org.cn/chn/1/cate_115/list_1.html) |
|
||||
| ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------- |
|
||||
| 110 | 111 | 112 | 113 | 114 | 115 |
|
||||
|
||||
| [信息资料 - 公众资料](http://www.caam.org.cn/chn/1/cate_116/list_1.html) | [信息资料 - 成品油](http://www.caam.org.cn/chn/1/cate_117/list_1.html) | [信息资料 - 成品油 - 国内市场](http://www.caam.org.cn/chn/1/cate_118/list_1.html) | [信息资料 - 成品油 - 国际市场](http://www.caam.org.cn/chn/1/cate_119/list_1.html) | [信息资料 - 保有量](http://www.caam.org.cn/chn/1/cate_120/list_1.html) | [信息资料 - 公路交通](http://www.caam.org.cn/chn/1/cate_121/list_1.html) |
|
||||
| ------------------------------------------------------------------------ | ---------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | ---------------------------------------------------------------------- | ------------------------------------------------------------------------ |
|
||||
| 116 | 117 | 118 | 119 | 120 | 121 |
|
||||
|
||||
| [信息资料 - 公路交通 - 公路客运量](http://www.caam.org.cn/chn/1/cate_122/list_1.html) | [信息资料 - 公路交通 - 旅客周转量](http://www.caam.org.cn/chn/1/cate_123/list_1.html) | [信息资料 - 公路交通 - 公路货运量](http://www.caam.org.cn/chn/1/cate_124/list_1.html) | [信息资料 - 经济环境](http://www.caam.org.cn/chn/1/cate_125/list_1.html) | [公告查询](http://www.caam.org.cn/chn/1/cate_126/list_1.html) | [公告查询 - 公告批文](http://www.caam.org.cn/chn/1/cate_127/list_1.html) |
|
||||
| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------ | ------------------------------------------------------------- | ------------------------------------------------------------------------ |
|
||||
| 122 | 123 | 124 | 125 | 126 | 127 |
|
||||
|
||||
| [公告查询 - 公示公告](http://www.caam.org.cn/chn/1/cate_128/list_1.html) | [公告查询 - 节能与新能源](http://www.caam.org.cn/chn/1/cate_129/list_1.html) | [公告查询 - 公告动态](http://www.caam.org.cn/chn/1/cate_130/list_1.html) | [人物访谈](http://www.caam.org.cn/chn/1/cate_131/list_1.html) | [人物访谈 - 访谈列表](http://www.caam.org.cn/chn/1/cate_132/list_1.html) | [视频新闻](http://www.caam.org.cn/chn/1/cate_133/list_1.html) |
|
||||
| ------------------------------------------------------------------------ | ---------------------------------------------------------------------------- | ------------------------------------------------------------------------ | ------------------------------------------------------------- | ------------------------------------------------------------------------ | ------------------------------------------------------------- |
|
||||
| 128 | 129 | 130 | 131 | 132 | 133 |
|
||||
|
||||
| [视频新闻 - 热门视频](http://www.caam.org.cn/chn/1/cate_134/list_1.html) | [视频新闻 - 推荐视频](http://www.caam.org.cn/chn/1/cate_135/list_1.html) | [视频新闻 - 视频列表](http://www.caam.org.cn/chn/1/cate_136/list_1.html) | [统计数据 - 欧洲 - 俄罗斯](http://www.caam.org.cn/chn/1/cate_137/list_1.html) | [统计数据 - 欧洲 - 爱尔兰](http://www.caam.org.cn/chn/1/cate_138/list_1.html) | [统计数据 - 欧洲 - 丹麦](http://www.caam.org.cn/chn/1/cate_139/list_1.html) |
|
||||
| ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | --------------------------------------------------------------------------- |
|
||||
| 134 | 135 | 136 | 137 | 138 | 139 |
|
||||
|
||||
| [统计数据 - 欧洲 - 其他](http://www.caam.org.cn/chn/1/cate_140/list_1.html) | [统计数据 - 大洋洲 - 其他](http://www.caam.org.cn/chn/1/cate_141/list_1.html) | [统计数据 - 北美洲 - 加拿大](http://www.caam.org.cn/chn/1/cate_142/list_1.html) | [统计数据 - 北美洲 - 其他](http://www.caam.org.cn/chn/1/cate_144/list_1.html) | [统计数据 - 北美洲 - 墨西哥](http://www.caam.org.cn/chn/1/cate_143/list_1.html) | [统计数据 - 非洲 - 南非](http://www.caam.org.cn/chn/1/cate_145/list_1.html) |
|
||||
| --------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | --------------------------------------------------------------------------- |
|
||||
| 140 | 141 | 142 | 144 | 143 | 145 |
|
||||
|
||||
| [统计数据 - 非洲 - 其他](http://www.caam.org.cn/chn/1/cate_146/list_1.html) | [协会概况 - 分支机构 - 机构名单](http://www.caam.org.cn/chn/1/cate_147/list_1.html) | [首页 - 轮播](http://www.caam.org.cn/chn/1/cate_148/list_1.html) | [标准法规 - 标准政策 - 轮播](http://www.caam.org.cn/chn/1/cate_149/list_1.html) | [信息资料 - 信息资料 - 轮播](http://www.caam.org.cn/chn/1/cate_150/list_1.html) | [行业动态 - 行业资讯 - 轮播](http://www.caam.org.cn/chn/1/cate_151/list_1.html) |
|
||||
| --------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ---------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- |
|
||||
| 146 | 147 | 148 | 149 | 150 | 151 |
|
||||
|
||||
| [行业政策 - 行业政策 - 轮播](http://www.caam.org.cn/chn/1/cate_152/list_1.html) | [协会工作 - 协会工作 - 轮播图](http://www.caam.org.cn/chn/1/cate_153/list_1.html) | [统计数据 - 数据统计 - 轮播图](http://www.caam.org.cn/chn/1/cate_154/list_1.html) | [Home](http://www.caam.org.cn/chn/1/cate_155/list_1.html) | [Home - Focus News](http://www.caam.org.cn/chn/1/cate_156/list_1.html) | [Home - Overview](http://www.caam.org.cn/chn/1/cate_157/list_1.html) |
|
||||
| ------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------- | ---------------------------------------------------------------------- | -------------------------------------------------------------------- |
|
||||
| 152 | 153 | 154 | 155 | 156 | 157 |
|
||||
|
||||
| [Home - News](http://www.caam.org.cn/chn/1/cate_158/list_1.html) | [Home - Member sign](http://www.caam.org.cn/chn/1/cate_161/list_1.html) | [车桥分会](http://www.caam.org.cn/chn/1/cate_162/list_1.html) | [上市公司委员会](http://www.caam.org.cn/chn/1/cate_183/list_1.html) | [上市公司委员会 - 单位动态](http://www.caam.org.cn/chn/1/cate_184/list_1.html) | [上市公司委员会 - 临时公告](http://www.caam.org.cn/chn/1/cate_185/list_1.html) |
|
||||
| ---------------------------------------------------------------- | ----------------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ |
|
||||
| 158 | 161 | 162 | 183 | 184 | 185 |`,
|
||||
name: '分类',
|
||||
maintainers: ['nczitzk'],
|
||||
handler,
|
||||
};
|
||||
|
||||
@@ -23,7 +23,7 @@ export const route: Route = {
|
||||
supportScihub: false,
|
||||
},
|
||||
name: '用户博客',
|
||||
maintainers: [],
|
||||
maintainers: ['Maecenas'],
|
||||
handler,
|
||||
description: '通过提取文章全文,以提供比官方源更佳的阅读体验.',
|
||||
};
|
||||
|
||||
@@ -8,9 +8,19 @@ const baseUrl = 'https://genetics.cas.cn';
|
||||
|
||||
export const route: Route = {
|
||||
path: '/genetics/:path{.+}',
|
||||
name: 'Unknown',
|
||||
maintainers: [],
|
||||
categories: ['university'],
|
||||
example: '/cas/genetics/jixs/yg',
|
||||
parameters: { path: '路径,可在 URL 找到' },
|
||||
name: '遗传与发育生物学研究所',
|
||||
maintainers: ['panyq357'],
|
||||
handler,
|
||||
description: `| 路径 | 栏目 |
|
||||
| :--------------------- | :--------- |
|
||||
| jixs/yg | 学术预告 |
|
||||
| dtxw/kyjz | 科研进展 |
|
||||
| edu/zsxx/ssszs\\_187556 | 硕士生招生 |
|
||||
| edu/zsxx/bsszs\\_187557 | 博士生招生 |
|
||||
| dqyd/djgz/dwyw | 党委要闻 |`,
|
||||
};
|
||||
|
||||
async function handler(ctx) {
|
||||
|
||||
@@ -9,9 +9,15 @@ const baseUrl = 'https://is.cas.cn';
|
||||
|
||||
export const route: Route = {
|
||||
path: '/is/:path{.+}',
|
||||
name: 'Unknown',
|
||||
maintainers: [],
|
||||
categories: ['university'],
|
||||
example: '/cas/is/xwdt2016/tzgg2016',
|
||||
parameters: { path: '路径,可在 URL 找到' },
|
||||
name: '软件研究所',
|
||||
maintainers: ['Misaka13514'],
|
||||
handler,
|
||||
description: `| 通知公告 | 科技动态 | 科普动态 |
|
||||
| ----------------- | ----------------- | ----------------- |
|
||||
| xwdt2016/tzgg2016 | xwdt2016/kjdt2016 | kxcb2016/kpdt2016 |`,
|
||||
};
|
||||
|
||||
async function handler(ctx) {
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import { load } from 'cheerio';
|
||||
|
||||
import type { Route } from '@/types';
|
||||
import { getSubPath } from '@/utils/common-utils';
|
||||
import got from '@/utils/got';
|
||||
import { parseDate } from '@/utils/parse-date';
|
||||
|
||||
@@ -9,9 +8,17 @@ import { renderFigure } from './templates/figure';
|
||||
import { apiSlug, GetFilterId, rootUrl } from './utils';
|
||||
|
||||
export const route: Route = {
|
||||
path: '*',
|
||||
name: 'Unknown',
|
||||
maintainers: [],
|
||||
path: '/:path{.+}?',
|
||||
categories: ['new-media'],
|
||||
example: '/cbaigui',
|
||||
parameters: { path: '路径,默认为首页' },
|
||||
name: '通用',
|
||||
maintainers: ['nczitzk'],
|
||||
description: `若订阅 [标签:妖](https://www.cbaigui.com/post-tag/妖),网址为 \`https://www.cbaigui.com/post-tag/妖\`。截取 \`https://www.cbaigui.com\` 到末尾的部分 \`/post-tag/妖\` 作为参数,此时路由为 [\`/cbaigui/post-tag/妖\`](https://rsshub.app/cbaigui/post-tag/妖)。
|
||||
|
||||
若订阅 [分类:埃及](https://www.cbaigui.com/post-category/世界/非洲/埃及),网址为 \`https://www.cbaigui.com/post-category/世界/非洲/埃及\`。截取 \`https://www.cbaigui.com\` 到末尾的部分 \`/post-category/世界/非洲/埃及\` 作为参数,此时路由为 [\`/cbaigui/post-category/世界/非洲/埃及\`](https://rsshub.app/cbaigui/post-category/世界/非洲/埃及)。
|
||||
|
||||
若订阅 [词条:白泽图](https://www.cbaigui.com/post-category/词条/白泽图),网址为 \`https://www.cbaigui.com/post-category/词条/白泽图\`。截取 \`https://www.cbaigui.com\` 到末尾的部分 \`/post-category/词条/白泽图\` 作为参数,此时路由为 [\`/cbaigui/post-category/词条/白泽图\`](https://rsshub.app/cbaigui/post-category/词条/白泽图)。`,
|
||||
handler,
|
||||
};
|
||||
|
||||
@@ -20,13 +27,14 @@ async function handler(ctx) {
|
||||
|
||||
let filterName;
|
||||
|
||||
const currentUrl = new URL(getSubPath(ctx).replace(/^\/cbaigui/, ''), rootUrl).href;
|
||||
const path = ctx.req.param('path') ?? '';
|
||||
const currentUrl = new URL(`/${path}`, rootUrl).href;
|
||||
let apiUrl = new URL(`${apiSlug}/posts?_embed=true&per_page=${limit}`, rootUrl).href;
|
||||
|
||||
const filterMatches = getSubPath(ctx).match(/^\/post-(tag|category)\/(.*)$/);
|
||||
const filterMatches = path.match(/^post-(tag|category)\/(.*)$/);
|
||||
|
||||
if (filterMatches) {
|
||||
filterName = decodeURI(filterMatches[2].split('/').pop());
|
||||
filterName = filterMatches[2].split('/').pop();
|
||||
const filterType = filterMatches[1] === 'tag' ? 'tags' : 'categories';
|
||||
const filterId = await GetFilterId(filterType, filterName);
|
||||
|
||||
|
||||
@@ -5,13 +5,15 @@ import { parseDate } from '@/utils/parse-date';
|
||||
|
||||
export const route: Route = {
|
||||
path: '/',
|
||||
categories: ['finance'],
|
||||
example: '/cbnweek',
|
||||
radar: [
|
||||
{
|
||||
source: ['cbnweek.com/'],
|
||||
target: '',
|
||||
},
|
||||
],
|
||||
name: 'Unknown',
|
||||
name: '首页',
|
||||
maintainers: ['nczitzk'],
|
||||
handler,
|
||||
url: 'cbnweek.com/',
|
||||
|
||||
@@ -11,7 +11,6 @@ export const route: Route = {
|
||||
path: '/quotation/all',
|
||||
categories: ['other'],
|
||||
example: '/cebbank/quotation/all',
|
||||
parameters: {},
|
||||
features: {
|
||||
requireConfig: false,
|
||||
requirePuppeteer: false,
|
||||
@@ -25,7 +24,7 @@ export const route: Route = {
|
||||
source: ['cebbank.com/site/ygzx/whpj/index.html', 'cebbank.com/eportal/ui', 'cebbank.com/'],
|
||||
},
|
||||
],
|
||||
name: 'Unknown',
|
||||
name: '外汇牌价 - 总览',
|
||||
maintainers: ['linbuxiao'],
|
||||
handler,
|
||||
url: 'cebbank.com/site/ygzx/whpj/index.html',
|
||||
|
||||
@@ -8,9 +8,62 @@ import timezone from '@/utils/timezone';
|
||||
|
||||
export const route: Route = {
|
||||
path: '/:id{.+}?',
|
||||
name: 'Unknown',
|
||||
maintainers: [],
|
||||
categories: ['finance'],
|
||||
example: '/cfmmc/main/noticeannouncement/cfmmcnotice',
|
||||
parameters: { id: '栏目 id,见下表,默认为中国期货监控公告' },
|
||||
radar: [
|
||||
{
|
||||
source: ['cfmmc.com/:id'],
|
||||
target: (params) => `/cfmmc${params.id ? `/${params.id.replace(/\/index\.shtml/, '')}` : ''}`,
|
||||
},
|
||||
],
|
||||
name: '栏目',
|
||||
maintainers: ['nczitzk'],
|
||||
handler,
|
||||
description: `#### 党的建设
|
||||
|
||||
| 栏目 | id |
|
||||
| -------- | -------------------------------------- |
|
||||
| 党建动态 | main/partybuilding/partybuildingtrends |
|
||||
| 基层风采 | main/partybuilding/basestyle |
|
||||
| 学习园地 | main/partybuilding/learninggarden |
|
||||
|
||||
#### 通知公告
|
||||
|
||||
| 栏目 | id |
|
||||
| ---------------- | ----------------------------------- |
|
||||
| 中国期货监控公告 | main/noticeannouncement/cfmmcnotice |
|
||||
| 证监会公告 | main/noticeannouncement/csrcnotice |
|
||||
| 上期所公告 | main/noticeannouncement/shfenotice |
|
||||
| 郑商所公告 | main/noticeannouncement/czcenotice |
|
||||
| 大商所公告 | main/noticeannouncement/dcenotice |
|
||||
| 中金所公告 | main/noticeannouncement/cffexnotice |
|
||||
| 广期所公告 | main/noticeannouncement/gfexnotice |
|
||||
|
||||
#### 焦点新闻
|
||||
|
||||
| 栏目 | id |
|
||||
| -------- | -------------------------------- |
|
||||
| 财经要闻 | main/focusnews/financialnews |
|
||||
| 专题聚焦 | main/focusnews/thematicfocus |
|
||||
| 金融动态 | main/focusnews/financialdynamics |
|
||||
|
||||
#### 保障基金
|
||||
|
||||
| 栏目 | id |
|
||||
| -------- | ------------------------------------- |
|
||||
| 基金概况 | main/securityfund/fundoverview |
|
||||
| 政策法规 | main/securityfund/policiesregulations |
|
||||
| 公告信息 | main/securityfund/noticeinformation |
|
||||
|
||||
#### 政策法规
|
||||
|
||||
| 栏目 | id |
|
||||
| -------------------- | --------------------------------------------- |
|
||||
| 国家法律法规 | main/policiesregulations/lawsregulations |
|
||||
| 部门规章及规范性文件 | main/policiesregulations/regulationsnormative |
|
||||
| 行业法规政策 | main/policiesregulations/industrypolicies |
|
||||
| 中国期货监控相关规则 | main/policiesregulations/cfmmcrules |`,
|
||||
};
|
||||
|
||||
async function handler(ctx) {
|
||||
|
||||
@@ -11,13 +11,15 @@ const rootUrl = 'https://www.chaincatcher.com';
|
||||
|
||||
export const route: Route = {
|
||||
path: '/',
|
||||
categories: ['new-media'],
|
||||
example: '/chaincatcher',
|
||||
radar: [
|
||||
{
|
||||
source: ['chaincatcher.com/'],
|
||||
target: '',
|
||||
},
|
||||
],
|
||||
name: 'Unknown',
|
||||
name: '首页',
|
||||
maintainers: ['TonyRL'],
|
||||
handler,
|
||||
url: 'chaincatcher.com/',
|
||||
|
||||
@@ -8,13 +8,15 @@ import utils from './utils';
|
||||
|
||||
export const route: Route = {
|
||||
path: '/',
|
||||
categories: ['other'],
|
||||
example: '/chinafactcheck',
|
||||
radar: [
|
||||
{
|
||||
source: ['chinafactcheck.com/'],
|
||||
target: '',
|
||||
},
|
||||
],
|
||||
name: 'Unknown',
|
||||
name: '最新文章列表',
|
||||
maintainers: ['kdanfly'],
|
||||
handler,
|
||||
url: 'chinafactcheck.com/',
|
||||
|
||||
@@ -10,13 +10,15 @@ const rootUrl = 'https://www.chinanews.com.cn';
|
||||
|
||||
export const route: Route = {
|
||||
path: '/',
|
||||
categories: ['traditional-media'],
|
||||
example: '/chinanews',
|
||||
radar: [
|
||||
{
|
||||
source: ['chinanews.com.cn/'],
|
||||
target: '',
|
||||
},
|
||||
],
|
||||
name: 'Unknown',
|
||||
name: '最新',
|
||||
maintainers: ['yuxinliu-alex'],
|
||||
handler,
|
||||
url: 'chinanews.com.cn/',
|
||||
|
||||
@@ -8,8 +8,137 @@ import timezone from '@/utils/timezone';
|
||||
|
||||
export const route: Route = {
|
||||
path: '/:id{.+}?',
|
||||
name: 'Unknown',
|
||||
maintainers: [],
|
||||
categories: ['new-media'],
|
||||
example: '/chinawriter',
|
||||
parameters: { id: '栏目 id,见下表,默认为首页' },
|
||||
description: `| 服务 | 文学奖项 |
|
||||
| ------ | -------- |
|
||||
| 403937 | 403973 |
|
||||
|
||||
| 新闻 | 访谈 | 艺术 |
|
||||
| ------ | ------ | ------ |
|
||||
| 403990 | 403997 | 404002 |
|
||||
|
||||
| 理论评论 | 文史 | 科幻 | 书汇 | 新作品 |
|
||||
| -------- | ------ | ------ | ------ | ------ |
|
||||
| 404029 | 404057 | 404078 | 404058 | 404015 |
|
||||
|
||||
| 世界文坛 | 民族文艺 | 网络文学 | 儿童文学 |
|
||||
| -------- | -------- | -------- | -------- |
|
||||
| 404085 | 404086 | 404022 | 404059 |
|
||||
|
||||
<details>
|
||||
<summary>更多栏目</summary>
|
||||
|
||||
#### 会员
|
||||
|
||||
| 新发展会员名单 | 讣告 |
|
||||
| -------------- | ------------- |
|
||||
| 403978/403979 | 403978/403981 |
|
||||
|
||||
#### 文学奖项
|
||||
|
||||
| 其他文学奖项 |
|
||||
| ------------- |
|
||||
| 403973/419349 |
|
||||
|
||||
#### 新闻
|
||||
|
||||
| 时政新闻 | 中国作协 | 主席 | 党组书记 | 各地文讯 |
|
||||
| ------------- | ------------- | ------------- | ------------- | ------------- |
|
||||
| 403990/403991 | 403990/403993 | 403990/441519 | 403990/441520 | 403990/403994 |
|
||||
|
||||
#### 艺术
|
||||
|
||||
| 新闻 | 影视 | 舞台 | 人物 | 展览 | 书画 |
|
||||
| ------------- | ------------- | ------------- | ------------- | ------------- | ------------- |
|
||||
| 404002/404003 | 404002/419388 | 404002/419389 | 404002/404005 | 404002/419390 | 404002/419391 |
|
||||
|
||||
#### 理论评论
|
||||
|
||||
| 重要理论文章 | 理论热点 | 文学评论 | 创作谈 | 争鸣 | 综述 | 《中国当代文学研究》 |
|
||||
| ------------- | ------------- | ------------- | ------------- | ------------- | ------------- | -------------------- |
|
||||
| 404029/419350 | 404029/419351 | 404029/404030 | 404029/404032 | 404029/404033 | 404029/404034 | 404087/404988/425775 |
|
||||
|
||||
#### 文史
|
||||
|
||||
| 文坛轶事 | 文史漫谈 | 重温经典 | 版本研究 | 名人手迹 | 茅盾文学奖获奖作家研究 |
|
||||
| ------------- | ------------- | ------------- | ------------- | ------------- | ---------------------- |
|
||||
| 404057/404063 | 404057/442005 | 404057/419384 | 404057/419387 | 404057/419382 | 404087/404988/429369 |
|
||||
|
||||
#### 科幻
|
||||
|
||||
| 动态 | 评论 | 作家印象 | 作品 | 科声幻影 |
|
||||
| ------------- | ------------- | ------------- | ------------- | ------------- |
|
||||
| 404078/404079 | 404078/404080 | 404078/404081 | 404078/404083 | 404078/404084 |
|
||||
|
||||
#### 书汇
|
||||
|
||||
| 书摘 | 图书排行 |
|
||||
| ------------- | ------------- |
|
||||
| 404058/404067 | 404058/404069 |
|
||||
|
||||
#### 新作品
|
||||
|
||||
| 小说 | 诗歌 | 散文 | 纪实 | 其他 |
|
||||
| ------------- | ------------- | ------------- | ------------- | ------------- |
|
||||
| 404015/404017 | 404015/404020 | 404015/404018 | 404015/404019 | 404015/419926 |
|
||||
|
||||
| 平台推荐 | 本周之星 | 2018 年 5 月 18 日前原创作品 |
|
||||
| ------------- | ------------- | ---------------------------- |
|
||||
| 404015/419789 | 404015/431511 | 404009 |
|
||||
|
||||
| 《人民文学》 | 《诗刊》 | 《民族文学》 | 《收获》 | 《十月》 |
|
||||
| -------------------- | -------------------- | -------------------- | -------------------- | -------------------- |
|
||||
| 404015/416204/418925 | 404015/416204/418926 | 404015/416204/418928 | 404015/416204/418958 | 404015/416204/418956 |
|
||||
|
||||
| 《小说选刊》 | 《北京文学》 | 《上海文学》 | 《天津文学》 | 《草原》 |
|
||||
| -------------------- | -------------------- | -------------------- | -------------------- | -------------------- |
|
||||
| 404015/416204/418929 | 404015/416204/418954 | 404015/416204/418962 | 404015/416204/419004 | 404015/416204/418989 |
|
||||
|
||||
| 《黄河》 | 《江南》 | 《钟山》 | 《广州文艺》 | 《湖南文学》 |
|
||||
| -------------------- | -------------------- | -------------------- | -------------------- | -------------------- |
|
||||
| 404015/416204/426204 | 404015/416204/418957 | 404015/416204/418984 | 404015/416204/419881 | 404015/416204/419156 |
|
||||
|
||||
| 《山西文学》 | 《花城》 | 《青年作家》 | 《雨花》 | 《红豆》 |
|
||||
| -------------------- | -------------------- | -------------------- | -------------------- | -------------------- |
|
||||
| 404015/416204/419827 | 404015/416204/418960 | 404015/416204/418967 | 404015/416204/419885 | 404015/416204/418993 |
|
||||
|
||||
| 《长江文艺》 | 《中国作家》 | 《青年文学》 | 《美文》 | 《芙蓉》 |
|
||||
| -------------------- | -------------------- | -------------------- | -------------------- | -------------------- |
|
||||
| 404015/416204/418961 | 404015/416204/418927 | 404015/416204/418979 | 404015/416204/418985 | 404015/416204/418986 |
|
||||
|
||||
| 《长城》 | 《福建文学》 | 《啄木鸟》 | 《芳草》 | 《小说月报》 |
|
||||
| -------------------- | -------------------- | -------------------- | -------------------- | -------------------- |
|
||||
| 404015/416204/418987 | 404015/416204/419003 | 404015/416204/435225 | 404015/416204/424311 | 404015/416204/418963 |
|
||||
|
||||
#### 世界文坛
|
||||
|
||||
| 视点 | 译介 | 作家印象 | 文学评论 | 影像艺术 | 作品推介 |
|
||||
| ------------- | ------------- | ------------- | ------------- | ------------- | ------------- |
|
||||
| 404085/404090 | 404085/431803 | 404085/404091 | 404085/404092 | 404085/404093 | 404085/404095 |
|
||||
|
||||
#### 民族文艺
|
||||
|
||||
| 动态 | 品评 | 作家印象 | 作品 | 影像 |
|
||||
| ------------- | ------------- | ------------- | ------------- | ------------- |
|
||||
| 404086/404098 | 404086/404101 | 404086/404099 | 404086/404100 | 404086/404102 |
|
||||
|
||||
#### 网络文学
|
||||
|
||||
| 动态 | 观察 | 访谈 | 中国网络小说排行榜 |
|
||||
| ------------- | ------------- | ------------- | ------------------ |
|
||||
| 404022/404023 | 404022/404027 | 404022/404024 | 404022/404028 |
|
||||
|
||||
#### 儿童文学
|
||||
|
||||
| 视点 | 文学评论 | 作家印象 | 作品推介 | 动漫艺术 |
|
||||
| ------------- | ------------- | ------------- | ------------- | ------------- |
|
||||
| 404059/404071 | 404059/404072 | 404059/404073 | 404059/404075 | 404059/404076 |
|
||||
|
||||
</details>`,
|
||||
name: '栏目',
|
||||
maintainers: ['nczitzk'],
|
||||
handler,
|
||||
};
|
||||
|
||||
|
||||
@@ -10,9 +10,15 @@ const rootURL = 'https://www.cmde.org.cn';
|
||||
|
||||
export const route: Route = {
|
||||
path: '/:cate{.+}?',
|
||||
name: 'Unknown',
|
||||
maintainers: [],
|
||||
categories: ['government'],
|
||||
example: '/cmde/xwdt/zxyw',
|
||||
parameters: { cate: '路径,默认为最新要闻' },
|
||||
name: '通用',
|
||||
maintainers: ['run-ze'],
|
||||
handler,
|
||||
description: `路径处填写对应页面 URL 中 \`https://www.cmde.org.cn/\` 与 \`/index.html\` 之间的字段,下面是一个例子。
|
||||
|
||||
若订阅 [最新要闻](https://www.cmde.org.cn/xwdt/zxyw/index.html) 则将对应页面 URL <https://www.cmde.org.cn/xwdt/zxyw/index.html> 中 \`https://www.cmde.org.cn/\` 和 \`/index.html\` 之间的字段 \`xwdt/zxyw\` 作为路径填入。此时路由为 [\`/cmde/xwdt/zxyw\`](https://rsshub.app/cmde/xwdt/zxyw)`,
|
||||
};
|
||||
|
||||
async function handler(ctx) {
|
||||
|
||||
@@ -9,13 +9,15 @@ const rootURL = 'https://www.cncf.io';
|
||||
|
||||
export const route: Route = {
|
||||
path: '/reports',
|
||||
categories: ['programming'],
|
||||
example: '/cncf/reports',
|
||||
radar: [
|
||||
{
|
||||
source: ['cncf.io/reports'],
|
||||
},
|
||||
],
|
||||
name: 'Unknown',
|
||||
maintainers: [],
|
||||
name: 'Reports',
|
||||
maintainers: ['Fatpandac'],
|
||||
handler,
|
||||
url: 'cncf.io/reports',
|
||||
};
|
||||
|
||||
+35
-3
@@ -5,17 +5,49 @@ import { parseDate } from '@/utils/parse-date';
|
||||
import timezone from '@/utils/timezone';
|
||||
|
||||
export const route: Route = {
|
||||
path: '/yjxx/*',
|
||||
path: '/yjxx/:level?/:province?/:city?',
|
||||
categories: ['forecast'],
|
||||
example: '/cneb/yjxx',
|
||||
parameters: { level: '灾害级别,见下表,默认为全部', province: '省份,默认为空,即全国', city: '城市,默认为空,即全省' },
|
||||
features: {
|
||||
requireConfig: false,
|
||||
requirePuppeteer: false,
|
||||
antiCrawler: false,
|
||||
supportBT: false,
|
||||
supportPodcast: false,
|
||||
supportScihub: false,
|
||||
},
|
||||
radar: [
|
||||
{
|
||||
source: ['cneb.gov.cn/yjxx', 'cneb.gov.cn/'],
|
||||
target: '/yjxx',
|
||||
},
|
||||
],
|
||||
name: 'Unknown',
|
||||
maintainers: [],
|
||||
name: '预警信息',
|
||||
maintainers: ['muzea', 'nczitzk'],
|
||||
handler,
|
||||
url: 'cneb.gov.cn/yjxx',
|
||||
description: `灾害级别
|
||||
|
||||
| 全部 | 红色 | 橙色 | 黄色 | 蓝色 |
|
||||
| ---- | ---- | ---- | ---- | ---- |
|
||||
| | 红色 | 橙色 | 黄色 | 蓝色 |
|
||||
|
||||
::: tip
|
||||
若订阅全国的全部预警信息,此时路由为 [\`/cneb/yjxx\`](https://rsshub.app/cneb/yjxx)。
|
||||
|
||||
若订阅全国的 **红色** 预警信息,此时路由为 [\`/cneb/yjxx/红色\`](https://rsshub.app/cneb/yjxx/红色)。
|
||||
|
||||
若订阅 **北京市** 的全部预警信息,此时路由为 [\`/cneb/yjxx/北京市\`](https://rsshub.app/cneb/yjxx/北京市)。
|
||||
|
||||
若订阅 **北京市** 的 **蓝色** 预警信息,此时路由为 [\`/cneb/yjxx/北京市/蓝色\`](https://rsshub.app/cneb/yjxx/北京市/蓝色)。
|
||||
|
||||
若订阅 **广东省** 的 **橙色** 预警信息,此时路由为 [\`/cneb/yjxx/广东省/橙色\`](https://rsshub.app/cneb/yjxx/广东省/橙色)。
|
||||
|
||||
若订阅 **广东省广州市** 的全部预警信息,此时路由为 [\`/cneb/yjxx/广东省/广州市\`](https://rsshub.app/cneb/yjxx/广东省/广州市)。
|
||||
|
||||
若订阅 **广东省广州市** 的 **黄色** 预警信息,此时路由为 [\`/cneb/yjxx/广东省/广州市/黄色\`](https://rsshub.app/cneb/yjxx/广东省/广州市/黄色)。
|
||||
:::`,
|
||||
};
|
||||
|
||||
async function handler(ctx) {
|
||||
|
||||
@@ -2,9 +2,9 @@ import { load } from 'cheerio';
|
||||
import { raw } from 'hono/html';
|
||||
import { renderToString } from 'hono/jsx/dom/server';
|
||||
|
||||
import InvalidParameterError from '@/errors/types/invalid-parameter';
|
||||
import type { Route } from '@/types';
|
||||
import cache from '@/utils/cache';
|
||||
import { getSubPath } from '@/utils/common-utils';
|
||||
import got from '@/utils/got';
|
||||
import { parseDate } from '@/utils/parse-date';
|
||||
|
||||
@@ -14,18 +14,46 @@ const categories = {
|
||||
};
|
||||
|
||||
export const route: Route = {
|
||||
path: '/:category?/:id?',
|
||||
name: 'Unknown',
|
||||
maintainers: [],
|
||||
path: '/jxrb/:id?',
|
||||
categories: ['traditional-media'],
|
||||
example: '/cnjxol/jxrb',
|
||||
parameters: { id: '编号,见下表,默认为全部' },
|
||||
radar: [
|
||||
{
|
||||
source: ['cnjxol.com/'],
|
||||
target: '/jxrb/:id',
|
||||
},
|
||||
],
|
||||
description: `| 版 | 编号 |
|
||||
| -------------------- | ---- |
|
||||
| 全部 | |
|
||||
| 第 01 版:要闻 | 01 |
|
||||
| 第 02 版:要闻 | 02 |
|
||||
| 第 03 版:要闻 | 03 |
|
||||
| 第 04 版:嘉一度 | 04 |
|
||||
| 第 05 版:聚焦 | 05 |
|
||||
| 第 06 版:党报热线 | 06 |
|
||||
| 第 07 版:天下 | 07 |
|
||||
| 第 08 版:聚焦 | 08 |
|
||||
| 第 09 版:南湖新闻 | 09 |
|
||||
| 第 10 版:综合 | 10 |
|
||||
| 第 11 版:梅花洲 | 11 |
|
||||
| 第 12 版:南湖纵横 | 12 |
|
||||
| 第 13 版:秀洲新闻 | 13 |
|
||||
| 第 14 版:综合 | 14 |
|
||||
| 第 15 版:秀・观察 | 15 |
|
||||
| 第 16 版:走进高新区 | 16 |`,
|
||||
features: {
|
||||
antiCrawler: true,
|
||||
},
|
||||
name: '嘉兴日报',
|
||||
maintainers: ['nczitzk'],
|
||||
handler,
|
||||
};
|
||||
|
||||
async function handler(ctx) {
|
||||
const category = ctx.req.param('category') ?? 'jxrb';
|
||||
export async function handler(ctx) {
|
||||
const category = getSubPath(ctx).split('/', 2)[1];
|
||||
const id = ctx.req.param('id');
|
||||
if (!Object.keys(categories).includes(category)) {
|
||||
throw new InvalidParameterError('Invalid category');
|
||||
}
|
||||
|
||||
const rootUrl = `https://${category}.cnjxol.com`;
|
||||
const currentUrl = `${rootUrl}/${category}Paper/pc/layout`;
|
||||
|
||||
@@ -0,0 +1,37 @@
|
||||
import type { Route } from '@/types';
|
||||
|
||||
import { handler } from './index';
|
||||
|
||||
export const route: Route = {
|
||||
path: '/nhwb/:id?',
|
||||
categories: ['traditional-media'],
|
||||
example: '/cnjxol/nhwb',
|
||||
parameters: { id: '编号,见下表,默认为全部' },
|
||||
radar: [
|
||||
{
|
||||
source: ['cnjxol.com/'],
|
||||
target: '/nhwb/:id',
|
||||
},
|
||||
],
|
||||
description: `| 版 | 编号 |
|
||||
| ------------------------------------ | ---- |
|
||||
| 全部 | |
|
||||
| 第 01 版:要闻 | 01 |
|
||||
| 第 02 版:品质嘉兴・红船旁的美丽城镇 | 02 |
|
||||
| 第 03 版:嘉兴新闻 | 03 |
|
||||
| 第 04 版:嘉兴新闻 | 04 |
|
||||
| 第 05 版:今日聚焦 | 05 |
|
||||
| 第 06 版:嘉兴新闻 | 06 |
|
||||
| 第 07 版:热线新闻 | 07 |
|
||||
| 第 08 版:财经新闻 | 08 |
|
||||
| 第 09 版:热线新闻 | 09 |
|
||||
| 第 10 版:公益广告 | 10 |
|
||||
| 第 11 版:消费周刊 | 11 |
|
||||
| 第 12 版:悦读坊 | 12 |`,
|
||||
features: {
|
||||
antiCrawler: true,
|
||||
},
|
||||
name: '南湖晚报',
|
||||
maintainers: ['nczitzk'],
|
||||
handler,
|
||||
};
|
||||
@@ -23,7 +23,7 @@ export const route: Route = {
|
||||
},
|
||||
],
|
||||
name: 'Recent actions',
|
||||
maintainers: [],
|
||||
maintainers: ['ftiasch'],
|
||||
handler,
|
||||
url: 'codeforces.com/recent-actions',
|
||||
};
|
||||
|
||||
@@ -25,7 +25,7 @@ export const route: Route = {
|
||||
},
|
||||
],
|
||||
name: 'News',
|
||||
maintainers: [],
|
||||
maintainers: ['TonyRL'],
|
||||
handler,
|
||||
url: 'cpuid.com/news.html',
|
||||
};
|
||||
|
||||
+164
-1
@@ -16,8 +16,170 @@ const decodeBufferByCharset = (buffer) => {
|
||||
|
||||
export const route: Route = {
|
||||
path: '/:category{.+}?',
|
||||
categories: ['finance'],
|
||||
example: '/cs',
|
||||
name: '栏目',
|
||||
parameters: { category: '分类,见下表,默认为首页' },
|
||||
parameters: { category: '分类,见下表,默认为要闻' },
|
||||
features: {
|
||||
requireConfig: false,
|
||||
requirePuppeteer: false,
|
||||
antiCrawler: false,
|
||||
supportBT: false,
|
||||
supportPodcast: false,
|
||||
supportScihub: false,
|
||||
},
|
||||
radar: [
|
||||
{
|
||||
title: '要闻',
|
||||
source: ['cs.com.cn/xwzx/'],
|
||||
target: '/xwzx',
|
||||
},
|
||||
{
|
||||
title: '公司',
|
||||
source: ['cs.com.cn/ssgs/'],
|
||||
target: '/ssgs',
|
||||
},
|
||||
{
|
||||
title: '市场',
|
||||
source: ['cs.com.cn/gppd/'],
|
||||
target: '/gppd',
|
||||
},
|
||||
{
|
||||
title: '基金',
|
||||
source: ['cs.com.cn/tzjj/'],
|
||||
target: '/tzjj',
|
||||
},
|
||||
{
|
||||
title: '科创',
|
||||
source: ['cs.com.cn/5g/'],
|
||||
target: '/5g',
|
||||
},
|
||||
{
|
||||
title: '产经',
|
||||
source: ['cs.com.cn/cj2020/'],
|
||||
target: '/cj2020',
|
||||
},
|
||||
{
|
||||
title: '期货',
|
||||
source: ['cs.com.cn/zzqh2020/'],
|
||||
target: '/zzqh2020',
|
||||
},
|
||||
{
|
||||
title: '海外',
|
||||
source: ['cs.com.cn/hw2020/'],
|
||||
target: '/hw2020',
|
||||
},
|
||||
{
|
||||
title: '财经要闻',
|
||||
source: ['cs.com.cn/xwzx/hg/'],
|
||||
target: '/xwzx/hg',
|
||||
},
|
||||
{
|
||||
title: '观点评论',
|
||||
source: ['cs.com.cn/xwzx/jr/'],
|
||||
target: '/xwzx/jr',
|
||||
},
|
||||
{
|
||||
title: '民生消费',
|
||||
source: ['cs.com.cn/xwzx/msxf/'],
|
||||
target: '/xwzx/msxf',
|
||||
},
|
||||
{
|
||||
title: '公司要闻',
|
||||
source: ['cs.com.cn/ssgs/gsxw/'],
|
||||
target: '/ssgs/gsxw',
|
||||
},
|
||||
{
|
||||
title: '公司深度',
|
||||
source: ['cs.com.cn/ssgs/gssd/'],
|
||||
target: '/ssgs/gssd',
|
||||
},
|
||||
{
|
||||
title: '公司巡礼',
|
||||
source: ['cs.com.cn/ssgs/gsxl/'],
|
||||
target: '/ssgs/gsxl',
|
||||
},
|
||||
{
|
||||
title: 'A股市场',
|
||||
source: ['cs.com.cn/gppd/gsyj/'],
|
||||
target: '/gppd/gsyj',
|
||||
},
|
||||
{
|
||||
title: '港股资讯',
|
||||
source: ['cs.com.cn/gppd/ggzx/'],
|
||||
target: '/gppd/ggzx',
|
||||
},
|
||||
{
|
||||
title: '债市研究',
|
||||
source: ['cs.com.cn/gppd/zqxw/'],
|
||||
target: '/gppd/zqxw',
|
||||
},
|
||||
{
|
||||
title: '海外报道',
|
||||
source: ['cs.com.cn/gppd/hwbd/'],
|
||||
target: '/gppd/hwbd',
|
||||
},
|
||||
{
|
||||
title: '期货报道',
|
||||
source: ['cs.com.cn/gppd/qhbd/'],
|
||||
target: '/gppd/qhbd',
|
||||
},
|
||||
{
|
||||
title: '基金动态',
|
||||
source: ['cs.com.cn/tzjj/jjdt/'],
|
||||
target: '/tzjj/jjdt',
|
||||
},
|
||||
{
|
||||
title: '基金视点',
|
||||
source: ['cs.com.cn/tzjj/jjks/'],
|
||||
target: '/tzjj/jjks',
|
||||
},
|
||||
{
|
||||
title: '基金持仓',
|
||||
source: ['cs.com.cn/tzjj/jjcs/'],
|
||||
target: '/tzjj/jjcs',
|
||||
},
|
||||
{
|
||||
title: '私募基金',
|
||||
source: ['cs.com.cn/tzjj/smjj/'],
|
||||
target: '/tzjj/smjj',
|
||||
},
|
||||
{
|
||||
title: '基民学苑',
|
||||
source: ['cs.com.cn/tzjj/tjdh/'],
|
||||
target: '/tzjj/tjdh',
|
||||
},
|
||||
{
|
||||
title: '券商',
|
||||
source: ['cs.com.cn/qs/'],
|
||||
target: '/qs',
|
||||
},
|
||||
{
|
||||
title: '银行',
|
||||
source: ['cs.com.cn/yh/'],
|
||||
target: '/yh',
|
||||
},
|
||||
{
|
||||
title: '保险',
|
||||
source: ['cs.com.cn/bx/'],
|
||||
target: '/bx',
|
||||
},
|
||||
{
|
||||
title: '中证快讯 7x24',
|
||||
source: ['cs.com.cn/sylm/jsbd/'],
|
||||
target: '/sylm/jsbd',
|
||||
},
|
||||
{
|
||||
title: 'IPO鉴真',
|
||||
source: ['cs.com.cn/yc/ipojz/'],
|
||||
target: '/yc/ipojz',
|
||||
},
|
||||
{
|
||||
title: '公司能见度',
|
||||
source: ['cs.com.cn/yc/gsnjd/'],
|
||||
target: '/yc/gsnjd',
|
||||
},
|
||||
],
|
||||
maintainers: ['nczitzk'],
|
||||
description: `| 要闻 | 公司 | 市场 | 基金 |
|
||||
| ---- | ---- | ---- | ---- |
|
||||
@@ -68,6 +230,7 @@ export const route: Route = {
|
||||
|
||||
</details>`,
|
||||
handler,
|
||||
url: 'www.cs.com.cn',
|
||||
};
|
||||
|
||||
async function handler(ctx) {
|
||||
|
||||
@@ -1,15 +0,0 @@
|
||||
import type { Route } from '@/types';
|
||||
|
||||
export const route: Route = {
|
||||
path: ['/news/zzkx', '/zzkx'],
|
||||
name: 'Unknown',
|
||||
maintainers: [],
|
||||
handler,
|
||||
};
|
||||
|
||||
function handler(ctx) {
|
||||
// https://www.cs.com.cn/sylm/jsbd/
|
||||
|
||||
const redirectTo = '/cs/sylm/jsbd';
|
||||
ctx.set('redirect', redirectTo);
|
||||
}
|
||||
@@ -9,12 +9,15 @@ const fetchAPIByUser = async (user) => {
|
||||
|
||||
export const route: Route = {
|
||||
path: '/user/:id',
|
||||
categories: ['social-media'],
|
||||
example: '/curiouscat/user/username',
|
||||
parameters: { id: 'username that is in the URL' },
|
||||
radar: [
|
||||
{
|
||||
source: ['curiouscat.live/:id'],
|
||||
},
|
||||
],
|
||||
name: 'Unknown',
|
||||
name: 'User',
|
||||
maintainers: ['lucasew'],
|
||||
handler,
|
||||
};
|
||||
|
||||
@@ -21,7 +21,7 @@ export const route: Route = {
|
||||
},
|
||||
],
|
||||
name: '作者',
|
||||
maintainers: ['nczitzk'],
|
||||
maintainers: ['xyqfer', 'nczitzk'],
|
||||
handler,
|
||||
};
|
||||
|
||||
|
||||
@@ -3,14 +3,25 @@ import type { Route } from '@/types';
|
||||
import { apiRootUrl, getInfo, processItems, rootUrl } from './util';
|
||||
|
||||
export const route: Route = {
|
||||
path: ['/channel/:id?', '/:id?'],
|
||||
path: '/:id?',
|
||||
categories: ['new-media'],
|
||||
example: '/cyzone',
|
||||
parameters: { id: '频道 id,可在对应频道页 URL 中找到,默认为 news,即最新资讯' },
|
||||
features: {
|
||||
requireConfig: false,
|
||||
requirePuppeteer: false,
|
||||
antiCrawler: false,
|
||||
supportBT: false,
|
||||
supportPodcast: false,
|
||||
supportScihub: false,
|
||||
},
|
||||
radar: [
|
||||
{
|
||||
source: ['cyzone.cn/channel/:id', 'cyzone.cn/'],
|
||||
target: '/:id',
|
||||
},
|
||||
],
|
||||
name: 'Unknown',
|
||||
name: '资讯',
|
||||
maintainers: ['nczitzk'],
|
||||
handler,
|
||||
description: `| 最新 | 快鲤鱼 | 创投 | 科创板 | 汽车 |
|
||||
|
||||
@@ -21,7 +21,7 @@ export const route: Route = {
|
||||
},
|
||||
],
|
||||
name: '标签',
|
||||
maintainers: ['nczitzk'],
|
||||
maintainers: ['LogicJake', 'nczitzk'],
|
||||
handler,
|
||||
};
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@ export const route: Route = {
|
||||
},
|
||||
],
|
||||
name: '分类',
|
||||
maintainers: [],
|
||||
maintainers: ['gl0zzy'],
|
||||
handler,
|
||||
description: `| 微软应用 | 安卓应用 | 教程资源 | 其他资源 |
|
||||
| -------- | -------- | -------- | -------- |
|
||||
|
||||
@@ -26,13 +26,15 @@ const renderDescription = (embedded, desc) =>
|
||||
|
||||
export const route: Route = {
|
||||
path: '/',
|
||||
categories: ['new-media'],
|
||||
example: '/deadline',
|
||||
radar: [
|
||||
{
|
||||
source: ['deadline.com/'],
|
||||
target: '',
|
||||
},
|
||||
],
|
||||
name: 'Unknown',
|
||||
name: 'Latest Article',
|
||||
maintainers: ['TonyRL'],
|
||||
handler,
|
||||
url: 'deadline.com/',
|
||||
|
||||
@@ -2,23 +2,42 @@ import { load } from 'cheerio';
|
||||
|
||||
import type { Route } from '@/types';
|
||||
import cache from '@/utils/cache';
|
||||
import { getSubPath } from '@/utils/common-utils';
|
||||
import got from '@/utils/got';
|
||||
import { parseDate } from '@/utils/parse-date';
|
||||
import timezone from '@/utils/timezone';
|
||||
|
||||
export const route: Route = {
|
||||
path: '*',
|
||||
name: 'Unknown',
|
||||
maintainers: [],
|
||||
path: '/:category{.+}?',
|
||||
categories: ['study'],
|
||||
example: '/dgjyw/tz',
|
||||
parameters: { category: '分类,见下表,默认为通知' },
|
||||
radar: [
|
||||
{
|
||||
source: ['www.dgjyw.com/:category.htm'],
|
||||
target: '/:category',
|
||||
},
|
||||
],
|
||||
name: '分类',
|
||||
maintainers: ['nczitzk'],
|
||||
description: `| 通知 | 动态 | 公示 |
|
||||
| ---- | ---- | ---- |
|
||||
| tz | dt | gs |
|
||||
|
||||
::: tip
|
||||
分类字段处填写的是对应东莞教研网网址中介于 \`https://www.dgjyw.com/\` 和 \`.htm\` 中间的一段。
|
||||
|
||||
如 [通知](https://www.dgjyw.com/tz.htm) 的网址为 \`https://www.dgjyw.com/tz.htm\`,其中间字段为 \`tz\`,所以可得路由为 [\`/dgjyw/tz\`](https://rsshub.app/dgjyw/tz);
|
||||
|
||||
同理,[教育科研 - 科研文件](https://www.dgjyw.com/jyky/kywj.htm) 的网址为 \`https://www.dgjyw.com/jyky/kywj.htm\`,其中间字段为 \`jyky/kywj\`,所以可得路由为 [\`/dgjyw/jyky/kywj\`](https://rsshub.app/dgjyw/jyky/kywj)。
|
||||
:::`,
|
||||
handler,
|
||||
};
|
||||
|
||||
async function handler(ctx) {
|
||||
const params = getSubPath(ctx);
|
||||
const category = ctx.req.param('category') ?? 'tz';
|
||||
|
||||
const rootUrl = 'https://www.dgjyw.com';
|
||||
const currentUrl = `${rootUrl}${params === '/' ? '/tz' : params}.htm`;
|
||||
const currentUrl = `${rootUrl}/${category}.htm`;
|
||||
|
||||
const response = await got(currentUrl);
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ export const route: Route = {
|
||||
},
|
||||
],
|
||||
name: 'News',
|
||||
maintainers: ['EthanWng97'],
|
||||
maintainers: ['IvanWng97'],
|
||||
handler,
|
||||
};
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ export const route: Route = {
|
||||
supportScihub: false,
|
||||
},
|
||||
name: 'Notifications',
|
||||
maintainers: [],
|
||||
maintainers: ['dzx-dzx'],
|
||||
handler,
|
||||
description: `::: warning
|
||||
If you opt to enable \`fulltext\` feature, consider adding \`limit\` parameter to your query to avoid sending too many request.
|
||||
|
||||
@@ -79,9 +79,19 @@ async function loadContent(itemLink, charset, header) {
|
||||
|
||||
export const route: Route = {
|
||||
path: ['/:ver{[7x]}/:cid{[0-9]{2}}/:link{.+}', '/:ver{[7x]}/:link{.+}', '/:link{.+}'],
|
||||
name: 'Unknown',
|
||||
maintainers: ['pseudoyu'],
|
||||
categories: ['bbs'],
|
||||
example: '/discuz/x/https%3a%2f%2fwww.52pojie.cn%2fforum-16-1.html',
|
||||
parameters: {
|
||||
ver: 'discuz version,see below table',
|
||||
cid: 'Cookie id,require self hosted and set environment parameters, see Deploy - Configuration pages for detail',
|
||||
link: 'link of subforum, require url encoded',
|
||||
},
|
||||
name: '通用子版块',
|
||||
maintainers: ['junfengP', 'pseudoyu'],
|
||||
handler,
|
||||
description: `| Discuz X Series | Discuz 7.x Series |
|
||||
| --------------- | ----------------- |
|
||||
| x | 7 |`,
|
||||
};
|
||||
|
||||
async function handler(ctx) {
|
||||
|
||||
@@ -7,13 +7,15 @@ import { parseDate } from '@/utils/parse-date';
|
||||
|
||||
export const route: Route = {
|
||||
path: '/',
|
||||
categories: ['programming'],
|
||||
example: '/distill',
|
||||
radar: [
|
||||
{
|
||||
source: ['distill.pub/'],
|
||||
target: '',
|
||||
},
|
||||
],
|
||||
name: 'Unknown',
|
||||
name: 'Latest',
|
||||
maintainers: ['nczitzk'],
|
||||
handler,
|
||||
url: 'distill.pub/',
|
||||
|
||||
@@ -3,9 +3,21 @@ import type { Route } from '@/types';
|
||||
import { ProcessItems } from '../utils';
|
||||
|
||||
export const route: Route = {
|
||||
path: '*',
|
||||
name: 'Unknown',
|
||||
maintainers: [],
|
||||
path: '/:path{.+}?',
|
||||
categories: ['anime'],
|
||||
example: '/dlsite/home/new',
|
||||
parameters: {
|
||||
path: 'Path, `/home/new` by default, as Release Calendar',
|
||||
},
|
||||
description: `::: tip
|
||||
To subscribe to this route, you can first visit the site and specify filters, and then fill in the field after \`https://www.dlsite.com/\` in the URL of the corresponding page at the path of the route. Here are 2 examples.
|
||||
|
||||
If you subscribe to [Voice / ASMR works Release date - New to Old](https://www.dlsite.com/home/works/type/=/work_type_category/audio/order/release_d), at the URL of the corresponding page \`https://www.dlsite.com/home/works/type/=/work_type_category/audio/order/release_d\` and after \`https://www.dlsite.com/\` is \`home/works/type/=/work_type_category/audio/order/release_d\`, which can be seen as the path. In this case the route is [\`/dlsite/home/works/type/=/work_type_category/audio/order/release_d\`](https://rsshub.app/dlsite/home/works/type/=/work_type_category/audio/order/release_d)
|
||||
|
||||
If you subscribe to [Discounted works Latest Discounts - Newest to Oldest](https://www.dlsite.com/home/works/discount/=/order/cstart_d), at the URL of the corresponding page \`https://www.dlsite.com/home/works/discount/=/order/cstart_d\` and after \`https://www.dlsite.com/\` is \`home/works/discount/=/order/cstart_d\`, which can be seen as the path. In this case the route is [\`/dlsite/home/works/discount/=/order/cstart_d\`](https://rsshub.app/dlsite/home/works/discount/=/order/cstart_d)
|
||||
:::`,
|
||||
name: 'General',
|
||||
maintainers: ['nczitzk'],
|
||||
handler,
|
||||
features: {
|
||||
nsfw: true,
|
||||
|
||||
@@ -6,8 +6,11 @@ import got from '@/utils/got';
|
||||
const host = 'https://www.douban.com/explore/column/';
|
||||
export const route: Route = {
|
||||
path: '/explore/column/:id',
|
||||
name: 'Unknown',
|
||||
maintainers: [],
|
||||
categories: ['social-media'],
|
||||
example: '/douban/explore/column/2',
|
||||
parameters: { id: '分栏目id' },
|
||||
name: '浏览发现分栏目',
|
||||
maintainers: ['LogicJake'],
|
||||
handler,
|
||||
};
|
||||
|
||||
|
||||
+23
-2
@@ -12,9 +12,30 @@ import shortcuts from './shortcuts';
|
||||
|
||||
export const route: Route = {
|
||||
path: ['/*/*', '/:0?'],
|
||||
name: 'Unknown',
|
||||
maintainers: [],
|
||||
categories: ['university'],
|
||||
example: '/dut',
|
||||
name: '通用',
|
||||
maintainers: ['beautyyuyanli', 'nczitzk', 'ueiu'],
|
||||
handler,
|
||||
description: `订阅 **单级** 栏目如 [大连理工大学新闻网](https://news.dlut.edu.cn) 的 [头条关注](https://news.dlut.edu.cn/ttgz.htm) 分类栏目,分为 3 步:
|
||||
|
||||
1. 将 URL \`https://news.dlut.edu.cn/ttgz.htm\` 中 \`https://\` 与 \`.dlut.edu.cn/\` 中间的 \`news\` 作为 \`site\` 参数填入;
|
||||
2. 将 \`https://news.dlut.edu.cn/\` 与 \`.htm\` 间的 \`ttgz\` 作为 \`category\` 参数填入;
|
||||
3. 最终可获得 [\`/dut/news/ttgz\`](https://rsshub.app/dut/news/tzgg)。
|
||||
|
||||
订阅 **多级** 栏目如 [大连理工大学新闻网](https://news.dlut.edu.cn) 的 [人才培养](https://news.dlut.edu.cn/xwjj01/rcpy.htm) 分类栏目,同样分为 3 步:
|
||||
|
||||
1. 将 URL \`https://news.dlut.edu.cn/xwjj01/rcpy.htm\` 中 \`https://\` 与 \`.dlut.edu.cn/\` 中间的 \`news\` 作为 \`site\` 参数填入;
|
||||
2. 把 \`https://news.dlut.edu.cn/\` 与 \`.htm\` 间 \`xwjj01/rcpy\` 作为 \`category\` 参数填入;
|
||||
3. 最终可获得 [\`/dut/news/xwjj01/rcpy\`](https://rsshub.app/dut/news/xwjj01/rcpy)。
|
||||
|
||||
::: tip 小提示
|
||||
大连理工大学大部分站点支持上述通用规则进行订阅。下方的大连理工大学相关路由基本适用于该规则,在其对应的表格中没有提及的分类栏目,可以使用上方的方法自行扩展。
|
||||
:::
|
||||
|
||||
::: tip 小小提示
|
||||
你会发现 [大连理工大学新闻网](https://news.dlut.edu.cn) 的 [人才培养](https://news.dlut.edu.cn/xwjj01/rcpy.htm) 分类栏目在下方 **新闻网** 参数表格中 \`category\` 参数为 \`rcpy\`,并非上面例子中给出的 \`xwjj01/rcpy\`。这意味着开发者对路由 \`/dut/news/xwjj01/rcpy\` 指定了快捷方式 \`/dut/news/rcpy\`。两者的效果是一致的。
|
||||
:::`,
|
||||
};
|
||||
|
||||
async function handler(ctx) {
|
||||
|
||||
@@ -3,22 +3,55 @@ import { renderToString } from 'hono/jsx/dom/server';
|
||||
|
||||
import type { Route } from '@/types';
|
||||
import cache from '@/utils/cache';
|
||||
import { getSubPath } from '@/utils/common-utils';
|
||||
import got from '@/utils/got';
|
||||
import { parseDate } from '@/utils/parse-date';
|
||||
|
||||
export const route: Route = {
|
||||
path: '/:what?/:id?/:needTorrents?/:needImages?',
|
||||
name: 'Unknown',
|
||||
maintainers: [],
|
||||
path: '/category/:category?/:needTorrents?/:needImages?',
|
||||
categories: ['multimedia'],
|
||||
example: '/e-hentai/category/manga',
|
||||
parameters: {
|
||||
category: '分类,可在对应分类页中找到,默认为首页',
|
||||
needTorrents: '需要输出种子文件,填写 true/yes 表示需要,默认需要',
|
||||
needImages: '需要显示大图,填写 true/yes 表示需要,默认需要',
|
||||
},
|
||||
name: '分类',
|
||||
maintainers: ['nczitzk'],
|
||||
description: `::: tip
|
||||
参数 **需要输出种子文件** 设置为 \`true\` \`yes\` \`t\` \`y\` 等值后,RSS 会携带种子文件的路径,以供支持 RSS 的下载工具订阅下载。
|
||||
|
||||
同理,参数 **需要显示大图** 启用后,RSS 会携带每项内容中的大图,而不只提供缩略图。
|
||||
|
||||
当然,选择 **需要输出种子文件**、**需要显示大图** 后获取内容时间需要更久,同时若指定获取数量过多,可能会出现获取超时错误。此时,可以在路由末尾处加上 \`?limit=限制获取数目\` 来限制获取条目数量,或直接修改全局的超时参数 \`REQUEST_TIMEOUT\`(详见文档中的 [其他应用配置](https://docs.rsshub.app/install/#pei-zhi-qi-ta-ying-yong-pei-zhi))。
|
||||
|
||||
以下是一个例子:
|
||||
|
||||
选择浏览 [Manga 分类](https://e-hentai.org/manga),并指定 **不携带种子文件**,**只显示大图**,并只 **输出 5 个**。由于 [Manga 分类](https://e-hentai.org/manga) 的 URL \`https://e-hentai.org/manga\` 中对应分类字段为 \`manga\`,所以对应路由为 [\`/e-hentai/category/manga/no/yes?limit=5\`](https://rsshub.app/e-hentai/category/manga/no/yes?limit=5)
|
||||
:::
|
||||
|
||||
| Doujinshi | Manga | Artist CG | Game CG | Western |
|
||||
| --------- | ----- | --------- | ------- | ------- |
|
||||
| doujinshi | manga | artistcg | gamecg | western |
|
||||
|
||||
| Non-H | Image Set | Cosplay | Asian Porn | Misc | Popular |
|
||||
| ----- | --------- | ------- | ---------- | ---- | ------- |
|
||||
| non-h | imageset | cosplay | asianporn | misc | popular |`,
|
||||
features: {
|
||||
nsfw: true,
|
||||
},
|
||||
radar: [
|
||||
{
|
||||
source: ['e-hentai.org/:category', 'e-hentai.org/'],
|
||||
target: '/category/:category',
|
||||
},
|
||||
],
|
||||
handler,
|
||||
};
|
||||
|
||||
async function handler(ctx) {
|
||||
const id = ctx.req.param('id') ?? '';
|
||||
const what = ctx.req.param('what') ?? '';
|
||||
export async function handler(ctx) {
|
||||
const id = ctx.req.param('category') ?? ctx.req.param('tag') ?? ctx.req.param('keyword') ?? '';
|
||||
const what = getSubPath(ctx).split('/', 2)[1];
|
||||
const needTorrents = /t|y/i.test(ctx.req.param('needTorrents') ?? 'true');
|
||||
const needImages = /t|y/i.test(ctx.req.param('needImages') ?? 'true');
|
||||
|
||||
@@ -128,7 +161,7 @@ async function handler(ctx) {
|
||||
);
|
||||
|
||||
return {
|
||||
title: `${id || what || 'Front Page'} - E-Hentai Galleries`,
|
||||
title: `${id || what} - E-Hentai Galleries`,
|
||||
link: currentUrl,
|
||||
item: items,
|
||||
};
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
import type { Route } from '@/types';
|
||||
|
||||
import { handler } from './index';
|
||||
|
||||
export const route: Route = {
|
||||
path: '/search/:keyword?/:needTorrents?/:needImages?',
|
||||
categories: ['multimedia'],
|
||||
example: '/e-hentai/search/f_search=haha',
|
||||
parameters: {
|
||||
keyword: '关键字,可以在搜索结果页的 URL 中找到,默认为首页',
|
||||
needTorrents: '需要输出种子文件,填写 true/yes 表示需要,默认需要',
|
||||
needImages: '需要显示大图,填写 true/yes 表示需要,默认需要',
|
||||
},
|
||||
features: {
|
||||
nsfw: true,
|
||||
},
|
||||
radar: [
|
||||
{
|
||||
source: ['e-hentai.org/:keyword', 'e-hentai.org/'],
|
||||
target: '/search/:keyword',
|
||||
},
|
||||
],
|
||||
name: '搜索',
|
||||
maintainers: ['nczitzk'],
|
||||
description: `::: tip
|
||||
参数 **需要输出种子文件**、**需要显示大图** 的说明同上,以下是一个例子:
|
||||
|
||||
选择浏览 [f\\_search=cosplay 搜索结果](https://e-hentai.org/?f_search=cosplay),并指定 **携带种子文件**,且 **显示大图**。由于 [f\\_search=cosplay 搜索结果](https://e-hentai.org/?f_search=cosplay) 的 URL \`https://e-hentai.org/?f_search=cosplay\` 中对应关键字字段为 \`?\` 后的 \`f_search=cosplay\`,所以对应路由为 [\`/e-hentai/search/f_search=cosplay/y/y\`](https://rsshub.app/e-hentai/search/f_search=cosplay/y/y)
|
||||
:::`,
|
||||
handler,
|
||||
};
|
||||
@@ -0,0 +1,31 @@
|
||||
import type { Route } from '@/types';
|
||||
|
||||
import { handler } from './index';
|
||||
|
||||
export const route: Route = {
|
||||
path: '/tag/:tag?/:needTorrents?/:needImages?',
|
||||
categories: ['multimedia'],
|
||||
example: '/e-hentai/tag/language:chinese',
|
||||
parameters: {
|
||||
tag: '标签,可在对应标签页中找到,默认为首页',
|
||||
needTorrents: '需要输出种子文件,填写 true/yes 表示需要,默认需要',
|
||||
needImages: '需要显示大图,填写 true/yes 表示需要,默认需要',
|
||||
},
|
||||
features: {
|
||||
nsfw: true,
|
||||
},
|
||||
radar: [
|
||||
{
|
||||
source: ['e-hentai.org/tag/:tag', 'e-hentai.org/'],
|
||||
target: '/tag/:tag',
|
||||
},
|
||||
],
|
||||
name: '标签',
|
||||
maintainers: ['nczitzk'],
|
||||
description: `::: tip
|
||||
参数 **需要输出种子文件**、**需要显示大图** 的说明同上,以下是一个例子:
|
||||
|
||||
选择浏览 [language:chinese 标签](https://e-hentai.org/tag/language:chinese),并指定 **携带种子文件**,**不显示大图**。由于 [language:chinese 标签](https://e-hentai.org/tag/language:chinese) 的 URL \`https://e-hentai.org/tag/language:chinese\` 中对应标签字段为 \`language:chinese\`,所以对应路由为 [\`/e-hentai/tag/language:chinese/true/false\`](https://rsshub.app/e-hentai/tag/language:chinese/true/false)
|
||||
:::`,
|
||||
handler,
|
||||
};
|
||||
@@ -10,15 +10,21 @@ import { renderDescription } from './templates/description';
|
||||
const cookieJar = new CookieJar();
|
||||
|
||||
export const route: Route = {
|
||||
path: ['/:journal/vol/:issue', '/:journal/:issue'],
|
||||
path: '/:journal/:issue',
|
||||
categories: ['journal'],
|
||||
example: '/elsevier/signal-processing/192',
|
||||
parameters: {
|
||||
journal: 'Journal Name, the part of the URL after `/journal/`',
|
||||
issue: 'Release Number, the number in the URL after `/vol/` (If both Volume and Issue exist, must use the `Volume-Issue` form, e.g., `/elsevier/aace-clinical-case-reports/7-6`)',
|
||||
},
|
||||
radar: [
|
||||
{
|
||||
source: ['www.sciencedirect.com/journal/:journal/*'],
|
||||
target: '/:journal',
|
||||
source: ['www.sciencedirect.com/journal/:journal/vol/:issue'],
|
||||
target: '/:journal/:issue',
|
||||
},
|
||||
],
|
||||
name: 'Unknown',
|
||||
maintainers: [],
|
||||
name: 'Special Issue',
|
||||
maintainers: ['Derekmini', 'sunwolf-swb'],
|
||||
handler,
|
||||
};
|
||||
|
||||
|
||||
@@ -10,15 +10,20 @@ import { renderDescription } from './templates/description';
|
||||
const cookieJar = new CookieJar();
|
||||
|
||||
export const route: Route = {
|
||||
path: ['/:journal/latest', '/:journal'],
|
||||
path: '/:journal',
|
||||
categories: ['journal'],
|
||||
example: '/elsevier/signal-processing',
|
||||
parameters: {
|
||||
journal: 'Journal Name, the part of the URL after `/journal/`',
|
||||
},
|
||||
radar: [
|
||||
{
|
||||
source: ['www.sciencedirect.com/journal/:journal/*'],
|
||||
target: '/:journal',
|
||||
},
|
||||
],
|
||||
name: 'Unknown',
|
||||
maintainers: [],
|
||||
name: 'Journal',
|
||||
maintainers: ['Derekmini', 'sunwolf-swb'],
|
||||
handler,
|
||||
};
|
||||
|
||||
|
||||
@@ -9,7 +9,13 @@ import supportedList from './supported-list';
|
||||
|
||||
export const route: Route = {
|
||||
path: '/:country/:city?',
|
||||
name: 'Unknown',
|
||||
categories: ['government'],
|
||||
example: '/embassy/us/chicago',
|
||||
parameters: {
|
||||
country: '国家短代码, 见支持国家列表',
|
||||
city: '城市, 对应国家列表下的`领事馆城市列表`,不填则为大使馆',
|
||||
},
|
||||
name: '使领馆重要通知',
|
||||
maintainers: ['HenryQW'],
|
||||
handler,
|
||||
};
|
||||
|
||||
@@ -7,14 +7,17 @@ import { parseDate } from '@/utils/parse-date';
|
||||
|
||||
export const route: Route = {
|
||||
path: '/cdrh/:titleOnly?',
|
||||
categories: ['government'],
|
||||
example: '/fda/cdrh',
|
||||
parameters: { titleOnly: 'Title only, empty by default which includes the full text, any other value shows the title only' },
|
||||
radar: [
|
||||
{
|
||||
source: ['fda.gov/medical-devices/news-events-medical-devices/cdrhnew-news-and-updates', 'fda.gov/'],
|
||||
target: '/cdrh/:titleOnly',
|
||||
},
|
||||
],
|
||||
name: 'Unknown',
|
||||
maintainers: [],
|
||||
name: 'CDRHNew',
|
||||
maintainers: ['nczitzk'],
|
||||
handler,
|
||||
url: 'fda.gov/medical-devices/news-events-medical-devices/cdrhnew-news-and-updates',
|
||||
};
|
||||
|
||||
@@ -14,8 +14,14 @@ const platformSlugs = {
|
||||
|
||||
export const route: Route = {
|
||||
path: '/release/:platform?',
|
||||
name: 'Unknown',
|
||||
maintainers: [],
|
||||
categories: ['program-update'],
|
||||
example: '/firefox/release/desktop',
|
||||
parameters: { platform: 'the platform' },
|
||||
description: `| Desktop | Android | Beta | Nightly | iOS |
|
||||
| ------- | ------- | ---- | ------- | --- |
|
||||
| desktop | android | beta | nightly | ios |`,
|
||||
name: 'New Release',
|
||||
maintainers: ['fengkx'],
|
||||
handler,
|
||||
};
|
||||
|
||||
|
||||
@@ -8,13 +8,15 @@ import { parseDate } from '@/utils/parse-date';
|
||||
|
||||
export const route: Route = {
|
||||
path: '/',
|
||||
categories: ['program-update'],
|
||||
example: '/fishshell',
|
||||
radar: [
|
||||
{
|
||||
source: ['fishshell.com/'],
|
||||
target: '',
|
||||
},
|
||||
],
|
||||
name: 'Unknown',
|
||||
name: 'Release Notes',
|
||||
maintainers: ['x2cf'],
|
||||
handler,
|
||||
url: 'fishshell.com/',
|
||||
|
||||
@@ -19,7 +19,7 @@ export const route: Route = {
|
||||
supportScihub: false,
|
||||
},
|
||||
name: 'Channel',
|
||||
maintainers: [],
|
||||
maintainers: ['mikkkee'],
|
||||
handler,
|
||||
description: `| Trading | Infrastructure | Tech and Data | Regulation |
|
||||
| ------- | -------------- | ------------- | ---------- |
|
||||
|
||||
@@ -9,8 +9,14 @@ import { isValidHost } from '@/utils/valid-host';
|
||||
|
||||
export const route: Route = {
|
||||
path: '/:domain/:category?',
|
||||
name: 'Unknown',
|
||||
maintainers: [],
|
||||
categories: ['new-media'],
|
||||
example: '/gamme/news',
|
||||
parameters: {
|
||||
domain: '網站,`news` 為宅宅新聞,`sexynews` 為西斯新聞',
|
||||
category: '分類名,可在 URL 找到,預設為全部',
|
||||
},
|
||||
name: '分類',
|
||||
maintainers: ['TonyRL'],
|
||||
handler,
|
||||
};
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user