Golang project, which aims to download Scan chapters and convert them into EPUB for e-reader.
Scans can be downloaded from lelscans
http://www.example.com/{chap}/{page}.{ext}
{chap}
: Chapter number{page}
: Page number{ext}
: Image extension (png, jpg, jpeg, webp)
- Clone the repository:
git clone https://github.com/LordPax/go-scan2epub.git
cd go-scan2epub
- Build the project:
go mod download
go build
./install.sh
- Execute the script to generate config
Will generate a config file at ~/.config/scan2epub/config.ini
create directory ~/scan2epub
to save converted epub
./scan2epub
- Modify your config at
~/.config/scan2epub/config.ini
default="onepiece"
[onepiece]
name="OnePiece"
url="https://lelscans.net/mangas/one-piece/{chap}/{page}.{ext}"
epub_dir="/home/lordpax/Perso/epub/onepiece/"
author="LordPax"
description="Scan of One Piece generated by scan2epub"
start_at=0
format=true
default
: Default manga to downloadname
: Name of the mangaurl
: URL format of the mangaepub_dir
: Directory to save the generated epubauthor
: Author of the mangadescription
: Description of the mangastart_at
: Chapter to start downloadingformat
: Add "0" to page number if less than 10