arnaucube ff6e43c247 | 2 years ago | |
---|---|---|
.gitignore | 4 years ago | |
LICENSE | 4 years ago | |
README.md | 4 years ago | |
go.mod | 4 years ago | |
go.sum | 4 years ago | |
main.go | 2 years ago |
Very simple tool to download articles and convert it to .epub
/.mobi
files.
It gets the text content, simplifies its html, downloads the images, and builds the .epub
/.mobi
file.
go build
Needs calibre in order to convert to .epub
and .mobi
.
Putting the binary in the ~/bin
directory will be more comfortable.
link2epub -l https://link.com/to-the-article
// optionally add extension (by default .mobi)
link2epub -l https://link.com/to-the-article -type mobi
link2epub -l https://link.com/to-the-article -type epub
// see help for all the available flags
link2epub --help
Thanks to @dhole for the advisment.