KakaoPage API for python made by dissecting the KakaoPage REST API
What works
- Logging in
- Searching
- Ferching singles of series
- Fetching single download data
- Using tickets
- Fetching images
- Fetching thumbnails
- Saving single(s) as EPUB
TODOs
- Purchasing tickets
- Logging in with encrypted credentials (currently credentials are sent in plaintext)
- Account registration
This is my first time ever writing a documentation for a program i've written, so it's probably shit.
Same as auth() method
account = kpapi.accounts("username@example.org", "password")
Logs in with given credentials. Not meant to be called, but invoked by the constructor.
Refreshes session with refresh_token,
Uses ticket, returns response in json format.
Returns a list of download data. in json format
getImg(getSingle(singleid)[page]['secureUrl'])
fetches the image of given singleid and page. This method will probably be renamed to getDownloadData() and be replaced with a method that returns a list of images.
Returns image at(?) secureUrl.
Returns a random 32 character long alphanumerical string. Meant to be invoked by the constructor.
Similar to the method of the account class but only works with free content.
Returns thumbnail at url.
Reutrns seach response in a list of jsons.
Similar to the getSingle() method of the account class but only works with free content.
Returns a list of singles in json format.
Prettyprints the given json.