Album and Video classes

You can use these classes individually but using them through the Luscious class is preferred

Album

class luscious.Album(albumInput: Union[int, str, dict], download: bool = False, handler: Optional[luscious.RequestHandler] = None)

A class representing an album and it’s properties

__init__(albumInput: Union[int, str, dict], download: bool = False, handler: Optional[luscious.RequestHandler] = None)

Initializes an album object based on albumInput albumInput can either be: An integer, being the ablbum Id Example (NSFW)<https://www.luscious.net/albums/animated-gifs_374481/>’s Id being 374481

A string, the link itself Some pages might not show up if you don’t login using a Luscious object

A json dict being the json response of the Album

__str__() str

Returns the Album’s name

property animatedCount: int

Returns the number of animated pictures in the Album

property artists: List[str]

Return a list of artist names associated with the Album

property audiences: dict

The intended audience of the Album Returns a dict with fields “id”, “title”, “url”

property characters: List[str]

Returns the list of characters present in the Album

property contentType: str

Returns the content type of the Album which is either “Manga”, “Non-Erotic” or “Real People”

property contentUrls: List[str]

Returns the list of content associated with the Album

property description: str

Returns the description of the Album

downloadContent(root: Union[pathlib.Path, str] = PosixPath('Albums'), printProgress: bool = True)

Downloads all pictures that don’t already exist in the directory to the folder root The progress bar can be disabled by passing False to printProgress Returns the list of downloaded files’ filepaths

property downloadUrl: str

Returns the the download url of the Album

property genres: List[luscious.Genre]

The Album’s genres Returns a list of Genre objects

property handler: luscious.RequestHandler

Returns the handler object of the Album

property isManga: bool

Returns True if the Album is a manga, False if it’s a picture set

property json: dict

Returns the json response of the Album

property name: str

Returns the name of the Album

property ongoing: bool

The status of the Album True if it’s ongoing False if not Warning: Will return False for all non manga albums

property parodies: List[luscious.Tag]

Returns the list of parodied content names

property pictureCount: int

Returns the number of pictures in the Album(This count includes the gifs)

property sanitizedName: str

Returns the sanitized name of the Album

property tags: List[luscious.Tag]

The Album’s tags Returns a list of Tag objects

property thumbnail: str

Returns the url of the Album’s thumbnail

property url: str

Returns the url associated with the Album

Video

class luscious.Video(videoInput: Union[int, str, dict], download: bool = False, handler: Optional[luscious.RequestHandler] = None)

A class representing a video and it’s properties

__init__(videoInput: Union[int, str, dict], download: bool = False, handler: Optional[luscious.RequestHandler] = None)

Initializes an Video object based on videoInput videoInput can either be: An integer, being the Video id Example (NSFW)<https://luscious.net/videos/dropout_episode_1_hq_11401/>’s Id being 11401

A string, the link itself Some pages might not show up if you don’t login using a Luscious object

A json dict being the json response of the Video

__str__() str

Return str(self).

property audiences: dict

The intended audience of the Video Returns a dict with fields “id”, “title”, “url”

property contentType: str

Returns the content type of the Video which is either “Hentai”, “Non-Erotic” or “Real People”

property contentUrls: List[str]

Returns the list video urls in each for a different resolution of the video in increasing order

Warning: Some resolutions may not exist

property description: str

Returns the description of the Video

downloadContent(downloadQuality: int = 0, root: Union[pathlib.Path, str] = PosixPath('Videos'), printProgress: bool = True)

FIXME for some reason access to videos are forbidden. This was not the case before. If anybody can help feel free to raise an issue or a pull request

downloads the video if it doesn’t already exist in the directory to the folder root The quality will be chosen by downloadQuality that defaults to the lowest quality downloadQuality can be a number from 0 to 3 with 0 representing 240p (the lowest quality) if the chosen quality is not available it will default to the highest quality available (which is always lower than the chosen quality) The progress bar can be disabled by passing False to printProgress Returns the path of the downloaded video

property genres: List[luscious.Genre]

The Album’s genres Returns a list of Genre objects

property handler: luscious.RequestHandler

Returns the handler object of the Video

property json: dict

Returns the json response of the Video

property name: str

Returns the name of the Video

property sanitizedName: str

Returns the sanitized name of the Video

property tags: List[luscious.Tag]

The Video’s tags Returns a list of Tag objects

property thumbnail: str

Returns the url of the Video’s thumbnail

property url: str

Returns the url associated with the Video