Skip to content

A simple CLI program to grab manga from online scans

Notifications You must be signed in to change notification settings

quentin-moquay/manga-grab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Manga-Grab

Purpose

This is a simple CLI program to grab manga from online scans.

Usages

manga-grab.groovy ([options]) [url] [chapter_padding] [page_padding] [starting_chapter] [ending_chapter] [request_properties]
  • url : with :chapter: for chapter index and :page: for page index. Do Not provide HTTPS links. Only HTTP.
  • Chapter padding : Digit padding (1, 01, 001, etc.) 1 for 1, 2 for 01 and so on
  • Page padding : same logic as chapter padding
  • Starting chapter : Which chapter number to start
  • Ending chapter : Which chapter number to end
  • Request Properties : Each Headers you want to send to the downloading HTTP Request

Options

  • -h or --help : show usages
  • -n or --no-download : Only convert, no download
  • -r {x} or --repack {x} : Repack each chapter to {x} pages (only with convert)
  • -c {x} or --convert {x} : Convert to cbz/pdf

Examples

manga-grab.groovy 'http://www.funmanga.com/uploads/chapters/15549/:chapter:/p_:page:.jpg' 1 5 0 0
manga-grab.groovy 'http://images.mangafreak.net/mangas/prison_school/prison_school_:tome:/prison_school_:tome:_:page:.jpg' 1 1 1 1 'Cookie:__cfduid=d0a467a3dbccecddbb1dd9a95d24332191549719778;cf_clearance=af4a3c4d175e3ed83973a1923bfc70f96b44ca1e-1549808750-3600-150'

Call it from anywhere with adding followings lines on your bash_profile

function manga-grab() {
	groovy /c/console_commands/manga-grab/manga-grab.groovy $@
}