Constants

All constants/enumerations are available directly from mal_scraper.x

class mal_scraper.consts.AgeRating[source]

The age rating of a media item.

MAL Ratings are dubious.

None == Unknown.

Reference: https://myanimelist.net/forum/?topicid=16816

mal_g = 'ALL'
mal_none = 'NONE'
mal_pg = 'CHILDREN'
mal_r1 = 'RESTRICTEDONE'
mal_r2 = 'RESTRICTEDTWO'
mal_r3 = 'RESTRICTEDTHREE'
mal_t = 'TEEN'
classmethod mal_to_enum(text)[source]

Return the enum from the MAL string, or None.

class mal_scraper.consts.AiringStatus[source]

The airing status of a media item.

finished = 'FINISHED'
classmethod mal_to_enum(text)[source]
ongoing = 'ONGOING'
pre_air = 'PREAIR'
class mal_scraper.consts.ConsumptionStatus[source]

A person’s status on a media item, e.g. are they currently watching it?

backlog = 'BACKLOG'
completed = 'COMPLETED'
consuming = 'CONSUMING'
dropped = 'DROPPED'
classmethod mal_code_to_enum(code)[source]

Return the enum from the MAL code, or None.

on_hold = 'ONHOLD'
class mal_scraper.consts.Format[source]

The media format of a media item.

film = 'FILM'
classmethod mal_to_enum(text)[source]

Return the enum from the MAL string, or None.

movie = 'FILM'
music = 'MUSIC'
ona = 'ONA'
ova = 'OVA'
special = 'SPECIAL'
tv = 'TV'
unknown = 'UNKNOWN'
class mal_scraper.consts.Retrieved(meta, data)

When successfully retrieving from a web-page

meta

A dict of metadata:

{
    'id_ref': (object) ID of the media depending on the context,
    'when': (datetime) Our best guess on the date of this information,
}
data

A dict of data varying on the media.

data

Alias for field number 1

meta

Alias for field number 0

class mal_scraper.consts.Season[source]

The season in a year ordered as Winter, Spring, Summer, Autumn.

autumn = 'AUTUMN'
fall = 'AUTUMN'
classmethod mal_to_enum(text)[source]

Return the enum from the MAL string, or None.

spring = 'SPRING'
summer = 'SUMMER'
winter = 'WINTER'