Leanpub library synchronization
Tired to manually download every single book from your Leanpub library to your e-reader? I got you covered.
Python 3. May eventually works with Python 2 (not tested).
Clone this repo, and then the usual
pip install -r requirements.txt.
.env.example file to
.env and fill in the configuration parameters.
Available configuration parameters are:
LEANPUB_EMAILLeanpub account email
LEANPUB_PASSWORDLeanpub account password
PREFERED_FORMATFormat of the books to download. Will automatically download an alternative version if your prefered one isn't available. May be one of:
epub(for reading on phones and tablets)
mobi(for reading on a Kindle)
OUTPUT_DIRDirectory in which to download the books (relative or absolute)
How it works
Leanpub provide an API, but unfortunately it is only useful for book writers. I suggested in December, 2016 that it would be cool to also provide something for book readers, however this will obviously not be available right now.
Please refer to the script itself (
run.py) for detailed information.