LN Classes
pymoe.ln.get
artist(item_id)
author(item_id)
genre(item_id)
Default get genre method from WLNUpdates. NOTICE: This will return all items with that genre.
group(item_id)
publisher(item_id)
series(item_id)
tag(item_id)
pymoe.ln.get.bakatsuki
settings = {'apiurl': 'https://www.baka-tsuki.org/project/api.php', 'header': {'User-Agent': 'Pymoe (github.com/ccubed/Pymoe)'}, 'active': 56132, 'compiledRegex': {'chapter': re.compile('volume|chapter', re.I), 'separate': re.compile('(volume|chapter) (?P<chapter>[0-9]{1,2})', re.I)}}
module-attribute
active()
Get a list of active projects.
RETURNS | DESCRIPTION |
---|---|
A list of tuples containing a title and pageid in that order. |
Source code in pymoe\ln\get\bakatsuki.py
chapters(title)
Get a list of chapters for a visual novel. Keep in mind, this can be slow. I've certainly tried to make it as fast as possible, but it's still pulling text out of a webpage.
PARAMETER | DESCRIPTION |
---|---|
title |
The title of the novel you want chapters from
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
An OrderedDict which contains the chapters found for the visual novel supplied |
Source code in pymoe\ln\get\bakatsuki.py
cover(pageid)
Get a cover image given a page id.
PARAMETER | DESCRIPTION |
---|---|
pageid |
The pageid for the light novel you want a cover image for
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
the image url or None |
Source code in pymoe\ln\get\bakatsuki.py
pymoe.ln.get.wlnupdates
settings = {'apiurl': 'https://www.wlnupdates.com/api', 'header': {'User-Agent': 'Pymoe (github.com/ccubed/Pymoe)', 'Content-Type': 'application/json', 'Accept': 'application/json'}}
module-attribute
artist(item_id)
Given an item_id, get information about the artist with that item_id.
PARAMETER | DESCRIPTION |
---|---|
item_id |
The ID of the Artist we want
TYPE:
|
Source code in pymoe\ln\get\wlnupdates.py
author(item_id)
Given an item_id, get information about the author with that item_id.
PARAMETER | DESCRIPTION |
---|---|
item_id |
The ID of the Author we want
TYPE:
|
Source code in pymoe\ln\get\wlnupdates.py
genre(item_id)
Given an item_id, get information about the genre with that item_id. This actually returns all series with that genre along with the genre itself.
PARAMETER | DESCRIPTION |
---|---|
item_id |
The ID of the Genre we want
TYPE:
|
Source code in pymoe\ln\get\wlnupdates.py
group(item_id)
Given an item_id, get information about the group with that item_id. This appears to be scanlators/translators.
PARAMETER | DESCRIPTION |
---|---|
item_id |
The ID of the Group we want
TYPE:
|
Source code in pymoe\ln\get\wlnupdates.py
publisher(item_id)
Given an item_id, get information about the publisher with that item_id.
PARAMETER | DESCRIPTION |
---|---|
item_id |
The ID of the Publisher we want
TYPE:
|
Source code in pymoe\ln\get\wlnupdates.py
series(item_id)
Given an item_id, get information about the series with that item_id.
PARAMETER | DESCRIPTION |
---|---|
item_id |
The ID of the Series we want
TYPE:
|
Source code in pymoe\ln\get\wlnupdates.py
tag(item_id)
Given an item_id, get information about the tag with that item_id. This actually returns all series with that tag along with the tag itself.
PARAMETER | DESCRIPTION |
---|---|
item_id |
The ID of the Artist we want
TYPE:
|
Source code in pymoe\ln\get\wlnupdates.py
pymoe.ln.search
pymoe.ln.search.bakatsuki
settings = {'apiurl': 'https://www.baka-tsuki.org/project/api.php', 'header': {'User-Agent': 'Pymoe (github.com/ccubed/Pymoe)'}}
module-attribute
lightNovels(language='English')
Get a list of light novels under a certain language.
PARAMETER | DESCRIPTION |
---|---|
language |
Defaults to English. Replace with whatever language you want to query. You can check their site for the language attributes.
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
A list of tuples containing a title and pageid element in that order. |
Source code in pymoe\ln\search\bakatsuki.py
teasers(language='English')
Get a list of teaser projects under a certain language.
PARAMETER | DESCRIPTION |
---|---|
language |
Defaults to English. Replace with whatever language you want to query.
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
A list of tuples containing a title and pageid element in that order. |
Source code in pymoe\ln\search\bakatsuki.py
webNovels(language='English')
Get a list of web novels under a certain language.
PARAMETER | DESCRIPTION |
---|---|
language |
Defaults to English. Replace with whatever language you want to query.
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
A list of tuples containing a title and pageid element in that order. |
Source code in pymoe\ln\search\bakatsuki.py
pymoe.ln.search.wlnupdates
settings = {'apiurl': 'https://www.wlnupdates.com/api', 'header': {'User-Agent': 'Pymoe (github.com/ccubed/Pymoe)', 'Content-Type': 'application/json', 'Accept': 'application/json'}}
module-attribute
genres()
This simply returns a list of all genres along with their IDs. These are the genres you can use in Parametric search. You can also use these in pymoe.ln.get.wlnupdates.genre
Source code in pymoe\ln\search\wlnupdates.py
parametric(title_search_text=None, tag_category=None, genre_category=None, chapter_limits=None, series_type=None, sort_mode='name', include_results=None)
Perform a Parametric search. This is the search-advanced route. You have to pass at least one of tags or genres. If you don't, this function will refer your search to title search. If you don't need to search by tags or genres, title search is a better option per the api documentation. The parameters have the same name as the API due to how the query is built.
PARAMETER | DESCRIPTION |
---|---|
title-search-text |
Optional title to search by
|
tags |
A dictionary consisting of pairs of 'tag' keys and then 'included' or 'excluded'
|
genres |
A dictionary consisting of pairs of 'genre' keys and then 'included' or 'excluded'
|
chapter_limit |
A tuple consisting of (minimum,maximum) to limit by chapter count. Passing 0 disables the limit it was passed for.
|
series_type |
A dictionary consisting of the keys 'Translated' and 'Original English Language' along with Included or Excluded as the value for each.
TYPE:
|
sort_mode |
One of update, chapter-count, or name. Defaults to name.
TYPE:
|
include_results |
A list of strings to represent what additional information to return. Only accepts description, covers, tags, genres.
TYPE:
|
Source code in pymoe\ln\search\wlnupdates.py
series(title_text)
Given the title_text to search by, return a list of results. This is the best method to find a title by name.
PARAMETER | DESCRIPTION |
---|---|
title_text |
The title to search for.
TYPE:
|
Source code in pymoe\ln\search\wlnupdates.py
tags()
This simply returns a list of all tags along with their IDs. These are the tags you can use in Parametric search. You can also use these in pymoe.ln.get.wlnupdates.tag