mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-04 02:58:08 +08:00
chore: add popular category
This commit is contained in:
@@ -5,7 +5,7 @@ const HOME_PAGE = 'https://apnews.com';
|
||||
|
||||
export const route: Route = {
|
||||
path: '/rss/:rss?',
|
||||
categories: ['traditional-media'],
|
||||
categories: ['traditional-media', 'popular'],
|
||||
example: '/apnews/rss/business',
|
||||
parameters: { rss: 'Route name from the first segment of the corresponding site, or `index` for the front page(default).' },
|
||||
features: {
|
||||
|
||||
@@ -10,7 +10,7 @@ import { BilibiliWebDynamicResponse, Item2, Modules } from './api-interface';
|
||||
|
||||
export const route: Route = {
|
||||
path: '/user/dynamic/:uid/:routeParams?',
|
||||
categories: ['social-media'],
|
||||
categories: ['social-media', 'popular'],
|
||||
example: '/bilibili/user/dynamic/2267573',
|
||||
parameters: { uid: '用户 id, 可在 UP 主主页中找到', routeParams: '额外参数;请参阅以下说明和表格' },
|
||||
features: {
|
||||
|
||||
@@ -6,7 +6,7 @@ export const route: Route = {
|
||||
path: '/ranking/:rid?/:day?/:arc_type?/:disableEmbed?',
|
||||
name: '排行榜',
|
||||
maintainers: ['DIYgod'],
|
||||
categories: ['social-media'],
|
||||
categories: ['social-media', 'popular'],
|
||||
example: '/bilibili/ranking/0/3/1',
|
||||
parameters: {
|
||||
rid: '排行榜分区 id, 默认 0',
|
||||
|
||||
@@ -6,7 +6,7 @@ import logger from '@/utils/logger';
|
||||
|
||||
export const route: Route = {
|
||||
path: '/user/video/:uid/:disableEmbed?',
|
||||
categories: ['social-media'],
|
||||
categories: ['social-media', 'popular'],
|
||||
example: '/bilibili/user/video/2267573',
|
||||
parameters: { uid: '用户 id, 可在 UP 主主页中找到', disableEmbed: '默认为开启内嵌视频, 任意值为关闭' },
|
||||
features: {
|
||||
|
||||
@@ -4,7 +4,7 @@ import { hash } from './utils';
|
||||
|
||||
export const route: Route = {
|
||||
path: '/build/:owner/:image/:tag?',
|
||||
categories: ['program-update'],
|
||||
categories: ['program-update', 'popular'],
|
||||
example: '/dockerhub/build/wangqiru/ttrss',
|
||||
parameters: { owner: 'Image owner', image: 'Image name', tag: 'Image tag,default to latest' },
|
||||
features: {
|
||||
|
||||
@@ -5,7 +5,7 @@ import { load } from 'cheerio';
|
||||
|
||||
export const route: Route = {
|
||||
path: '/group/:groupid/:type?',
|
||||
categories: ['social-media'],
|
||||
categories: ['social-media', 'popular'],
|
||||
example: '/douban/group/648102',
|
||||
parameters: { groupid: '豆瓣小组的 id', type: '缺省 最新,essence 最热,elite 精华' },
|
||||
features: {
|
||||
|
||||
@@ -11,7 +11,7 @@ import { parseDate } from '@/utils/parse-date';
|
||||
|
||||
export const route: Route = {
|
||||
path: '/issue/:user/:repo/:state?/:labels?',
|
||||
categories: ['programming'],
|
||||
categories: ['programming', 'popular'],
|
||||
example: '/github/issue/vuejs/core/all/wontfix',
|
||||
parameters: { user: 'GitHub username', repo: 'GitHub repo name', state: 'the state of the issues. Can be either `open`, `closed`, or `all`. Default: `open`.', labels: 'a list of comma separated label names' },
|
||||
radar: [
|
||||
|
||||
@@ -58,7 +58,7 @@ async function loadContent(category, nameOrId, tryGet) {
|
||||
|
||||
export const route: Route = {
|
||||
path: '/:category/:key',
|
||||
categories: ['social-media'],
|
||||
categories: ['social-media', 'popular'],
|
||||
example: '/instagram/user/stefaniejoosten',
|
||||
parameters: { category: 'Feed category, see table above', key: 'Username / Hashtag name' },
|
||||
features: {
|
||||
|
||||
@@ -29,6 +29,7 @@ export const route: Route = {
|
||||
],
|
||||
name: 'Unknown',
|
||||
maintainers: [],
|
||||
categories: ['multimedia', 'popular'],
|
||||
handler,
|
||||
url: 'www.seejav.pw/',
|
||||
};
|
||||
|
||||
@@ -9,7 +9,7 @@ const urlRegex = /(https?:\/\/[^\s"'<>]+)/g;
|
||||
|
||||
export const route: Route = {
|
||||
path: '/topic/:id/:showUid?',
|
||||
categories: ['social-media'],
|
||||
categories: ['social-media', 'popular'],
|
||||
example: '/jike/topic/556688fae4b00c57d9dd46ee',
|
||||
parameters: { id: '圈子 id, 可在即刻 web 端圈子页或 APP 分享出来的圈子页 URL 中找到', showUid: '是否在内容中显示用户信息,设置为 1 则开启' },
|
||||
features: {
|
||||
|
||||
@@ -5,7 +5,7 @@ import { parseDate } from '@/utils/parse-date';
|
||||
|
||||
export const route: Route = {
|
||||
path: '/user/:id',
|
||||
categories: ['social-media'],
|
||||
categories: ['social-media', 'popular'],
|
||||
example: '/jike/user/3EE02BC9-C5B3-4209-8750-4ED1EE0F67BB',
|
||||
parameters: { id: '用户 id, 可在即刻分享出来的单条动态页点击用户头像进入个人主页,然后在个人主页的 URL 中找到,或者在单条动态页使用 RSSHub Radar 插件' },
|
||||
features: {
|
||||
|
||||
@@ -6,7 +6,7 @@ import { isValidHost } from '@/utils/valid-host';
|
||||
|
||||
export const route: Route = {
|
||||
path: '/user/:name?',
|
||||
categories: ['social-media'],
|
||||
categories: ['social-media', 'popular'],
|
||||
example: '/lofter/user/i',
|
||||
parameters: { name: 'Lofter user name, can be found in the URL' },
|
||||
features: {
|
||||
|
||||
@@ -60,7 +60,7 @@ const alias = {
|
||||
|
||||
export const route: Route = {
|
||||
path: '/ranking/:mode/:date?',
|
||||
categories: ['social-media'],
|
||||
categories: ['social-media', 'popular'],
|
||||
example: '/pixiv/ranking/week',
|
||||
parameters: { mode: 'rank type', date: 'format: `2018-4-25`' },
|
||||
features: {
|
||||
|
||||
@@ -10,7 +10,7 @@ import ConfigNotFoundError from '@/errors/types/config-not-found';
|
||||
|
||||
export const route: Route = {
|
||||
path: '/search/:keyword/:order?/:mode?',
|
||||
categories: ['social-media'],
|
||||
categories: ['social-media', 'popular'],
|
||||
example: '/pixiv/search/Nezuko/popular/2',
|
||||
parameters: { keyword: 'keyword', order: 'rank mode, empty or other for time order, popular for popular order', mode: 'filte R18 content' },
|
||||
features: {
|
||||
|
||||
@@ -9,7 +9,7 @@ import ConfigNotFoundError from '@/errors/types/config-not-found';
|
||||
|
||||
export const route: Route = {
|
||||
path: '/user/:id',
|
||||
categories: ['social-media'],
|
||||
categories: ['social-media', 'popular'],
|
||||
example: '/pixiv/user/15288095',
|
||||
parameters: { id: "user id, available in user's homepage URL" },
|
||||
features: {
|
||||
|
||||
@@ -4,7 +4,7 @@ import { load } from 'cheerio';
|
||||
|
||||
export const route: Route = {
|
||||
path: '/routes/:lang?',
|
||||
categories: ['program-update'],
|
||||
categories: ['program-update', 'popular'],
|
||||
example: '/rsshub/routes/en',
|
||||
parameters: { lang: 'Language, `zh` means Chinese docs, other values or null means English docs, `en` by default' },
|
||||
radar: [
|
||||
|
||||
@@ -11,7 +11,7 @@ const baseUrl = 'https://sehuatang.org/';
|
||||
|
||||
export const route: Route = {
|
||||
path: '/user/:uid',
|
||||
categories: ['multimedia'],
|
||||
categories: ['multimedia', 'popular'],
|
||||
example: '/sehuatang/user/411096',
|
||||
parameters: { uid: '用户 uid, 可在用户主页 URL 中找到' },
|
||||
features: {
|
||||
|
||||
@@ -57,7 +57,7 @@ const mediaTagDict = {
|
||||
|
||||
export const route: Route = {
|
||||
path: '/channel/:username/:routeParams?',
|
||||
categories: ['social-media'],
|
||||
categories: ['social-media', 'popular'],
|
||||
example: '/telegram/channel/awesomeDIYgod/searchQuery=twitter',
|
||||
parameters: { username: 'channel username', routeParams: 'extra parameters, see the table below' },
|
||||
features: {
|
||||
|
||||
@@ -4,7 +4,7 @@ import utils from './utils';
|
||||
|
||||
export const route: Route = {
|
||||
path: '/keyword/:keyword/:routeParams?',
|
||||
categories: ['social-media'],
|
||||
categories: ['social-media', 'popular'],
|
||||
example: '/twitter/keyword/RSSHub',
|
||||
parameters: { keyword: 'keyword', routeParams: 'extra parameters, see the table above' },
|
||||
features: {
|
||||
|
||||
@@ -4,7 +4,7 @@ import utils from './utils';
|
||||
|
||||
export const route: Route = {
|
||||
path: '/media/:id/:routeParams?',
|
||||
categories: ['social-media'],
|
||||
categories: ['social-media', 'popular'],
|
||||
example: '/twitter/media/DIYgod',
|
||||
parameters: { id: 'username; in particular, if starts with `+`, it will be recognized as a [unique ID](https://github.com/DIYgod/RSSHub/issues/12221), e.g. `+44196397`', routeParams: 'extra parameters, see the table above.' },
|
||||
features: {
|
||||
|
||||
@@ -4,7 +4,7 @@ import api from './api';
|
||||
|
||||
export const route: Route = {
|
||||
path: '/user/:id/:routeParams?',
|
||||
categories: ['social-media'],
|
||||
categories: ['social-media', 'popular'],
|
||||
example: '/twitter/user/DIYgod',
|
||||
parameters: {
|
||||
id: 'username; in particular, if starts with `+`, it will be recognized as a [unique ID](https://github.com/DIYgod/RSSHub/issues/12221), e.g. `+44196397`',
|
||||
|
||||
@@ -9,7 +9,7 @@ import { config } from '@/config';
|
||||
|
||||
export const route: Route = {
|
||||
path: '/keyword/:keyword/:routeParams?',
|
||||
categories: ['social-media'],
|
||||
categories: ['social-media', 'popular'],
|
||||
example: '/weibo/keyword/DIYgod',
|
||||
parameters: { keyword: '你想订阅的微博关键词', routeParams: '额外参数;请参阅上面的说明和表格' },
|
||||
features: {
|
||||
|
||||
@@ -10,7 +10,7 @@ import { fallback, queryToBoolean } from '@/utils/readable-social';
|
||||
|
||||
export const route: Route = {
|
||||
path: '/user/:uid/:routeParams?',
|
||||
categories: ['social-media'],
|
||||
categories: ['social-media', 'popular'],
|
||||
example: '/weibo/user/1195230310',
|
||||
parameters: { uid: '用户 id, 博主主页打开控制台执行 `$CONFIG.oid` 获取', routeParams: '额外参数;请参阅上面的说明和表格;特别地,当 `routeParams=1` 时开启微博视频显示' },
|
||||
features: {
|
||||
|
||||
@@ -5,7 +5,7 @@ import { parseDate } from '@/utils/parse-date';
|
||||
|
||||
export const route: Route = {
|
||||
path: '/podcast/:id',
|
||||
categories: ['multimedia'],
|
||||
categories: ['multimedia', 'popular'],
|
||||
example: '/xiaoyuzhou/podcast/6021f949a789fca4eff4492c',
|
||||
parameters: { id: '播客id,可以在小宇宙播客的 URL 中找到' },
|
||||
features: {
|
||||
|
||||
@@ -82,8 +82,8 @@ function judgeTrue(str, ...validStrings) {
|
||||
}
|
||||
|
||||
export const route: Route = {
|
||||
path: ['/:type/:id/:all?', '/:type/:id/:all/:shownote?'],
|
||||
categories: ['multimedia'],
|
||||
path: ['/:type/:id/:all/:shownote?'],
|
||||
categories: ['multimedia', 'popular'],
|
||||
example: '/ximalaya/album/299146',
|
||||
parameters: { type: '专辑类型, 通常可以使用 `album`,可在对应专辑页面的 URL 中找到', id: '专辑 id, 可在对应专辑页面的 URL 中找到', all: '是否需要获取全部节目,填入 `1`、`true`、`all` 视为获取所有节目,填入其他则不获取。' },
|
||||
features: {
|
||||
@@ -99,10 +99,10 @@ export const route: Route = {
|
||||
supportPodcast: true,
|
||||
supportScihub: false,
|
||||
},
|
||||
name: '专辑(不输出 ShowNote)',
|
||||
name: '专辑',
|
||||
maintainers: ['lengthmin', 'jjeejj', 'prnake'],
|
||||
handler,
|
||||
description: `目前喜马拉雅的 API 只能一集一集的获取各节目上的 ShowNote,会极大的占用系统资源,所以默认为不获取节目的 ShowNote。下方有一个新的路径可选获取 ShowNote。
|
||||
description: `目前喜马拉雅的 API 只能一集一集的获取各节目上的 ShowNote,会极大的占用系统资源,所以默认为不获取节目的 ShowNote。
|
||||
|
||||
:::warning
|
||||
专辑类型即 url 中的分类拼音,使用通用分类 \`album\` 通常是可行的,专辑 id 是跟在**分类拼音**后的那个 id, 不要输成某集的 id 了
|
||||
|
||||
@@ -9,7 +9,7 @@ import ConfigNotFoundError from '@/errors/types/config-not-found';
|
||||
|
||||
export const route: Route = {
|
||||
path: '/user/:username/:embed?',
|
||||
categories: ['social-media'],
|
||||
categories: ['social-media', 'popular'],
|
||||
example: '/youtube/user/@JFlaMusic',
|
||||
parameters: { username: 'YouTuber username with @', embed: 'Default to embed the video, set to any value to disable embedding' },
|
||||
features: {
|
||||
|
||||
@@ -5,7 +5,7 @@ import { parseDate } from '@/utils/parse-date';
|
||||
|
||||
export const route: Route = {
|
||||
path: '/people/activities/:id',
|
||||
categories: ['social-media'],
|
||||
categories: ['social-media', 'popular'],
|
||||
example: '/zhihu/people/activities/diygod',
|
||||
parameters: { id: '作者 id,可在用户主页 URL 中找到' },
|
||||
features: {
|
||||
|
||||
@@ -3,6 +3,7 @@ import type { Context } from 'hono';
|
||||
// Make sure it's synchronise with scripts/workflow/data.ts
|
||||
// and lib/routes/rsshub/routes.ts
|
||||
type Category =
|
||||
| 'popular'
|
||||
| 'social-media'
|
||||
| 'new-media'
|
||||
| 'traditional-media'
|
||||
|
||||
@@ -1,4 +1,10 @@
|
||||
export const categories = [
|
||||
{
|
||||
icon: '🌟',
|
||||
link: '/routes/popular',
|
||||
en: 'Popular',
|
||||
zh: '热门',
|
||||
},
|
||||
{
|
||||
icon: '💬',
|
||||
link: '/routes/social-media',
|
||||
|
||||
Reference in New Issue
Block a user