Skip to content

Golang project which aims to download Scan chapters and convert them into EPUB for e-book reader.

Notifications You must be signed in to change notification settings

LordPax/go-scan2epub

Repository files navigation

Scan to epub

Description

Golang project, which aims to download Scan chapters and convert them into EPUB for e-reader.

Source

Scans can be downloaded from lelscans

Source url format

http://www.example.com/{chap}/{page}.{ext}
  • {chap}: Chapter number
  • {page}: Page number
  • {ext}: Image extension (png, jpg, jpeg, webp)

Build and install

  1. Clone the repository:
git clone https://github.com/LordPax/go-scan2epub.git
cd go-scan2epub
  1. Build the project:
go mod download
go build
./install.sh
  1. Execute the script to generate config

Will generate a config file at ~/.config/scan2epub/config.ini create directory ~/scan2epub to save converted epub

./scan2epub
  1. Modify your config at ~/.config/scan2epub/config.ini

Config example

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 download
  • name: Name of the manga
  • url: URL format of the manga
  • epub_dir: Directory to save the generated epub
  • author: Author of the manga
  • description: Description of the manga
  • start_at: Chapter to start downloading
  • format: Add "0" to page number if less than 10

About

Golang project which aims to download Scan chapters and convert them into EPUB for e-book reader.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published