Skip to content

NoCtrlZkun/hako2epub

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Python Version MIT License


Logo

hako2epub

A tool to download light novel on ln.hako.re as epub file format

Download · Screenshots · Script Usage

Table of Contents

About The Project

A tool to download light novels on ln.hako.re as the epub file format for offline reading.

Notes:

  • This tool is a personal standalone project, it does not have any related to ln.hako.re administrators.
  • If possible, please support the website, original light novel, and light novel translation authors.
  • This tool is for non-commercial purpose only.

Features

  • Support images.
  • Support navigation and table of contents.
  • Download all/single volume of a light novel.
  • Update all/single downloaded light novel.
    • Update new volumes.
    • Update new chapters.
    • Update new chapters of a single volume.
  • Working with docln.net.

Getting Started

For normal user, there is a single execution file here. Run and follow the instructions.

Prerequisites

  • python 3.6.8
  • ebooklib
  • bs4
  • pillow
  • argparse
pip install ebooklib bs4 pillow argparse

Notes: I only tested on python 3.6.8

Usage

usage: hako2epub.py [-h] [-v ln_url] [-u [ln_url]] [-uv ln_url] [ln_url]

positional arguments:
  ln_url                url to the ln homepage

optional arguments:
  -h, --help            show this help message and exit
  -v ln_url, --volume ln_url
                        download single volume
  -u [ln_url], --update [ln_url]
                        update all/single ln
  -uv ln_url, --updatevol ln_url
                        update single volume
  • Download a light novel
python hako2epub.py light_novel_url
  • Download a single volume in a light novel
python hako2epub.py -v light_novel_url
  • Update all light novels
python hako2epub.py -u
  • Update a single light novel
python hako2epub.py -u light_novel_url
  • Update a single volume in a light novel
python hako2epub.py -uv light_novel_url

Notes

  • Light novel will be downloaded into the same folder as the program.
  • Downloaded information will be saved into ln_info.json file located in the same folder as the program.
  • If you change anything (like move the epub files away), try to change the ln_info.json too.
  • Or try not to change anything ^^

Screenshots

Demo

Issues

  • I only tested on some of my favorite light novels.
  • Some images have a blank page before them (Caused by the center image code).
  • Images may crash on some epub readers.
  • Can not get image from some image hosts.

Contributing

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

Distributed under the MIT License. See LICENSE for more information.

Contact

Acknowledgements

About

A tool to download light novel on https://ln.hako.re as epub file format

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%