Luscious class

class luscious.Luscious(username: Optional[str] = None, password: Optional[str] = None, timeout: Tuple[float, float] = (5, 5), total: int = 5, status_forcelist: List[int] = [413, 429, 500, 502, 503, 504], backoff_factor: int = 1)

A Luscious class used to for various utilities and login

getAlbum(albumInput: Union[int, str], download: bool = False) luscious.Album

Return 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 Or it can be a string, the link itself

getLandingPage(limit: int = 15)

Get frontpage Albums

Returns a dict with 3 keys: Hentai Manga,`Hentai Pictures` and Porn Pictures With the value of all three being a list of integer ids of their respective content

getRandomId()

Returns a random id from latest interacted albums

Note: This isn’t truly random but this is the same random mechanism in the website itself

getVideo(videoInput: Union[int, str], download: bool = False) luscious.Video

Return 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 Or it can be a string, the link itself

searchAlbum(query: str, page: int = 1, display: str = 'rating_all_time', albumType: luscious.albumTypeOptions = albumTypeOptions.All, contentType: luscious.contentTypeOptions = contentTypeOptions.All) List[int]

Searches <https://luscious.net> for albums with given query

page is the page to search in display is the sorting option. If you need to change it look it up in the search section of the website albumType is the type of albums to search for (from the Enum albumTypeOptions) contentType is the content type to search for (from the Enum contentTypeOptions)

Returns a result dict with 2 keys items and info

items is a list of album ids

info is a dict with fields page, has_next_page, has_previous_page, total_items, total_pages, items_per_page ,`url_complete`

searchVideo(query: str, page: int = 1, display: str = 'rating_all_time', contentType: luscious.contentTypeOptions = contentTypeOptions.All) List[int]

Searches <https://luscious.net> for videos with given query

page is the page to search in display is the sorting option. If you need to change it look it up in the search section of the website contentType is the content type to search for (from the Enum contentTypeOptions)

Returns a result dict with 2 keys items and info

items is a list of video ids

info is a dict with fields page, has_next_page, has_previous_page, total_items, total_pages, items_per_page ,`url_complete`