Skip to content

fluktuid/gutenberg-downloader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gutenberg Downloader

A brief description of what this project does and who it's for

Go Report Card Go Reference test build GPLv3 License

Usage

download books

Download all english books as epubs with images from gutenberg-downloader.

gutenberg-downloader download -l en -f epub.image
Flag default Description Example
-l, --languages en 2-char the language code of downloaded books de,en
-f, --filetypes txt filetypes for downloaded books
(txt, html, epub.image, epub.noimages, kindle.images, kindle.noimages, mp3)
epub.images
-o, --outfolder ./downloads Folder for storing downloaded files "~/Downloads"
-p, --parallel 10 max amount of parallel downloads 15

Search Books

gutenberg-downloader search [arg]
Parameter Type Description
arg string Required. String to search in books

Installation

custom build

# build
git clone <repo>
go build -o gutenberg-downloader .
chmod +x gutenberg-downloader
# use
./gutenberg-downloader --help

Linux

# download release
SYS=$(uname -s | tr '[:upper:]' '[:lower:]')
ARCH=(UNAME -m)
curl -o gutenberg-downloader "https://github.com/fluktuid/gutenberg-downloader/releases/download/v0.2.0/gutenberg-downloader_$(SYS)_$(ARCH)"
chmod +x gutenberg-downloader
sudo mv gutenberg-downloader /usr/local/bin/
# use
./gutenberg-downloader --help

MacOS

brew tap fluktuid/tap
brew install gutenberg-downloader

Contributing

Contributions are always welcome!

See contributing.md for ways to get started.

Please adhere to this project's code of conduct.

Feedback

If you have any feedback, please reach out to me and create an issue.