mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-02 01:58:11 +08:00
23 lines
982 B
JavaScript
23 lines
982 B
JavaScript
module.exports = {
|
|
'atcoder.jp': {
|
|
_name: 'AtCoder',
|
|
'.': [
|
|
{
|
|
title: 'Posts',
|
|
docs: 'https://docs.rsshub.app/routes/programming#atcoder-posts',
|
|
source: ['/posts', '/'],
|
|
target: (params, url) => `/atcoder/post/${new URL(url).searchParams.get('lang') ?? 'en'}/${new URL(url).searchParams.get('keyword') ?? ''}`,
|
|
},
|
|
{
|
|
title: 'Contests',
|
|
docs: 'https://docs.rsshub.app/routes/programming#atcoder-contests',
|
|
source: ['/contests/archive', '/contests'],
|
|
target: (params, url) =>
|
|
`/atcoder/content/${new URL(url).searchParams.get('lang') ?? 'en'}/${new URL(url).searchParams.get('ratedType') ?? '0'}/${new URL(url).searchParams.get('category') ?? '0'}/${
|
|
new URL(url).searchParams.get('keyword') ?? ''
|
|
}`,
|
|
},
|
|
],
|
|
},
|
|
};
|