feat(core): filter category (#10212)
This commit is contained in:
@@ -48,6 +48,8 @@ Set `filter` to include the content
|
||||
|
||||
- `filter_author`: filter `author` only
|
||||
|
||||
- `filter_category`: filter `category` only
|
||||
|
||||
- `filter_time`: filter `pubDate`, in seconds, return specified time range. Item without `pubDate` will not be filtered.
|
||||
|
||||
E.g. [https://rsshub.app/dribbble/popular?filter=Blue|Yellow|Black](https://rsshub.app/dribbble/popular?filter=Blue|Yellow|Black)
|
||||
@@ -62,6 +64,8 @@ Set `filterout` to exclude unwanted content.
|
||||
|
||||
- `filterout_author`: filter `author` only
|
||||
|
||||
- `filterout_category`: filter `category` only
|
||||
|
||||
E.g. [https://rsshub.app/dribbble/popular?filterout=Blue|Yellow|Black](https://rsshub.app/dribbble/popular?filterout=Blue|Yellow|Black)
|
||||
|
||||
Set `filter_case_sensitive` to determine whether the filtering keywords should be case sensitive. The parameter would apply to both `filter` and `filterout`.
|
||||
|
||||
@@ -46,6 +46,8 @@ filter 支持正则表达式。由于正则部分特性可被利用于 DoS (ReDO
|
||||
|
||||
- `filter_author`: 过滤作者
|
||||
|
||||
- `filter_category`: 过滤分类
|
||||
|
||||
- `filter_time`: 过滤时间,仅支持数字,单位为秒。返回指定时间范围内的内容。如果条目没有输出`pubDate`或者格式不正确将不会被过滤
|
||||
|
||||
举例 1: `https://rsshub.app/bilibili/fav/2267573/801952073?filter=编曲|摄影`
|
||||
@@ -61,6 +63,8 @@ filter 支持正则表达式。由于正则部分特性可被利用于 DoS (ReDO
|
||||
|
||||
- `filterout_author`: 过滤作者
|
||||
|
||||
- `filterout_category`: 过滤分类
|
||||
|
||||
举例: `https://rsshub.app/bilibili/fav/2267573/801952073?filterout=编曲|摄影`
|
||||
|
||||
`filter_case_sensitive` 过滤是否区分大小写,`filter` 和 `filterout`同时适用
|
||||
|
||||
Reference in New Issue
Block a user