Downloads an EPUB eBook, provided in unzipped form via HTTP, into a single .epub
file.
Useful when eBooks are viewable via e.g. epub.js, but not provided in a zipped form.
- bash
- sed
- wget
xpath
binary from Perl's XML::XPath module- zip
Calling
epubdown.sh http://path.to/epub targetname
will download the eBook into the folder targetname
(will be created) and finally pack it into targetname.epub
.