Enums
Category
Bases: BaseStrEnum
Nyaa categories
ANIME_ENGLISH_TRANSLATED
class-attribute
instance-attribute
ANIME_MUSIC_VIDEO
class-attribute
instance-attribute
ANIME_NON_ENGLISH_TRANSLATED
class-attribute
instance-attribute
LITERATURE_ENGLISH_TRANSLATED
class-attribute
instance-attribute
LITERATURE_NON_ENGLISH_TRANSLATED
class-attribute
instance-attribute
LIVE_ACTION_ENGLISH_TRANSLATED
class-attribute
instance-attribute
LIVE_ACTION_IDOL_PROMOTIONAL_VIDEO
class-attribute
instance-attribute
LIVE_ACTION_NON_ENGLISH_TRANSLATED
class-attribute
instance-attribute
SOFTWARE_APPLICATIONS
class-attribute
instance-attribute
id
property
Returns the ID of the category.
This ID corresponds to the category as seen in the URL
https://nyaa.si/?f=0&c=1_2&q=
, where c=1_2
is the ID for Anime - English-translated
.
get
classmethod
Get the Category
by its name (case-insensitive).
Return the default if the key is missing or invalid.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
key |
CategoryLiteral | str
|
The key to retrieve. |
required |
default |
CategoryLiteral | str
|
The default value to return if the key is missing or invalid. |
'All'
|
Returns:
Type | Description |
---|---|
Category
|
The |