Do you like comics? I am sure that you do. You can find a lot of them on The Eye web, so I have been playing with a project using Go in order to download the comics to read them when you whish, Comiccon.
Comiccon is a toy project to download and keep updated comics. It takes advantage of the goroutines to download several comics at the same time. The limitation is the number of your CPUs. Cobra is the Go library utilized to build the CLI.
Code
You can find the repository in Github.
Installation
go get -u github.com/mendrugory/comiccon
How to use it
Help
$ comiccon help
Download
$ comiccon download
If a comic is already downloaded, it will not be downloaded it again.
The configuration of the command is saved in a file called config.json
.
Optional flags
- Base Folder: Directory where the comics will be downloaded. It is created if it does not exist (default: current directory)
- Extensions: Extensions of the files which will be downloaded, separated by comma (default: cbr, jpg and pdf)
- Link: Sub link of the route if you only want to download a part of the collection (check the list of collections)
$ comiccon download --basefolder /tmp/comics --extensions cbr --link "DC Chronology"
Docker
To run it using Docker, the only thing that we must have in mind is mapping the volumes in order to keep the comics.
$ docker run --rm -v /tmp/comics:/tmp/comics mendrugory/comiccon download --basefolder /tmp/comics --extensions cbr --link "DC Chronology"
Enjoy it !!