Lofter1 / anyflip-downloader

Download anyflip books as PDF
GNU General Public License v3.0
225 stars 38 forks source link

anyflip-downloader

build goreleaser

Download anyflip books as PDF

Demo

Disclaimer

Only use this tool to download books that officially allow PDFs to be downloaded.

Installation

You can install this tool in multiple ways. Using the installation script or the go install command.

The install scripts are the suggested installation method for most users.

Install scripts

Linux/MacOS

Open the terminal and execute

curl -L https://raw.githubusercontent.com/Lofter1/anyflip-downloader/main/scripts/install.sh | /usr/bin/env bash
Setup path

When encountering the error "Command not found": make sure your path variable contains $HOME/.local/bin (edit this in your .zshrc or .bashrc depending on your editor)

Windows

Open PowerShell and execute

. { iwr -useb https://raw.githubusercontent.com/Lofter1/anyflip-downloader/main/scripts/install.ps1 } | iex;

Go install

For go install, the go tools are required.

go install github.com/Lofter1/anyflip-downloader@latest

Usage

anyflip-downloader <url to book>

Set title manually

If you do not want to use the book title from anyflip, you can change it using the -title flag.

anyflip-downloader -title <your book title> <url to book>

Specify temporary download folder path

The default temporary download folder path will be the title of the book. However, in certain situations, you might want to change the temporary download folder. For this, the -temp-download-folder flag exists. This folder will be deleted after a successful download.

anyflip-downloader -temp-download-folder <temp folder name> <url to book>