RSSHub/lib/routes/theinitium/author.ts

40 lines
1.1 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import type { Route } from '@/types';
import { processFeed } from './utils';
const handler = (ctx) => processFeed('author', ctx);
export const route: Route = {
path: '/author/:type/:language?',
name: '作者',
url: 'theinitium.com',
maintainers: ['AgFlore', 'pseudoyu'],
parameters: {
type: '作者 slug可从作者主页 URL 中获取,如 `https://theinitium.com/author/initium-newsroom/`',
language: '语言,简体`zh-hans`,繁体`zh-hant`,缺省为不限',
},
features: {
requireConfig: [
{
name: 'INITIUM_MEMBER_COOKIE',
optional: true,
description: '端传媒会员登录后的 Cookie用于获取付费文章全文。',
},
],
requirePuppeteer: false,
antiCrawler: false,
supportBT: false,
supportPodcast: false,
supportScihub: false,
},
radar: [
{
source: ['theinitium.com/author/:type'],
target: '/author/:type',
},
],
handler,
example: '/theinitium/author/initium-newsroom',
categories: ['new-media'],
};