Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Grabmanga | Bulk manga downloader
19-06-2013, 10:11 AM, (This post was last modified: 19-06-2013, 11:40 AM by Codeshift3r.)
Post: #1
Grabmanga | Bulk manga downloader
Apa benda nih :

Command Line Utility : Manga download manager

Apa benda ni buat :

Download manga secara pukal daripada berberapa sumber/website
yang host content tersebut.

Require :

Wget for windows : http://users.ugent.be/~bpuype/wget/

Command :

grabmanga [host] [manga] [from chapter] [to chapter] [limit]
Contoh : grabmanga goodmanga one_Piece 100 105 20
Makna : Download One piece dari host goodmanga bermula chapter 100 sampai 105 dengan setiap chapter download 20 file.

[Image: nMEC4eL.png]

Grabamnga.bat/exe
Code:
:: Codeshift3r 2013 ::
:: Last Updated 13/6/2013 ::
:: Bugs,Suggestions --> codeshift3r@sdf.org ::
@echo off
title Grabmanga v1.0b
Setlocal EnableDelayedExpansion
:inmark
:: structure for parameters handling ::
if %1==--help goto :helptag
if exist %1.bat call %1.bat && goto :launch
:support
echo.
echo Oops.. Could not load the host file %1.bat.
echo It is possible that the host is not supported by Grabmanga.
echo Type "grabmanga --help" to invoke the help menu.
echo.
goto :Eof
:helptag
echo ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿
echo ³ Grabmanga v1.0b ³ 2013 ³
echo ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ
echo.
echo [#] Usage:
echo grabmanga [host] [manga] [from chapter] [to chapter] [limit]
echo eg : grabmanga mangable one_Piece 100 110 20
echo.
echo [?] Explaination
echo [host] the host you wish to download from
echo [manga] the manga you wish to download
echo [from chapter] the starting chapter you wish to download
echo [to chapter] the last chapter you want to download
echo [limit] the page limit of each chapter
echo.
goto :Eof
:filerror
echo %missing% is missing
echo You can obtain a copy of Wget for windows at
echo http://users.ugent.be/~bpuype/wget/
echo.
goto :Eof
:launch
:: Check required files ::
:: Structure for error handling ::
if not exist wget.exe set missing=wget.exe && goto :filerror
:: declare vars ::
set server=%server%
set subdomain=%subdomain%
set filepath=%filepath%
set extension=%extension%
set manga=%2
set fromchapter=%3
set tochapter=%4
set pagelimit=%5
set useragent=Mozilla/5.0
set dmode=normal
set count=1
set seperator=/0
set reslimit=%5
set /a reslimit+=1
set tochres=%4
set /a tochres+=1
:: Folders checking ::
if not exist %manga% md %manga%
cd %manga%
if not exist %fromchapter% md %fromchapter%
cd..
:filecheck
:: Filename checking ::
title Grabmanga [ %server% ] %manga% Chapter %fromchapter%
echo [?] Checking for zero type Filename...
if exist %temp%\0%count%.%extension% del %temp%\0%count%.%extension%
wget -q -c -nc --user-agent=%useragent% --directory-prefix=%temp% %subdomain%%server%%filepath%%manga%/%fromchapter%/0%count%.%extension%
if exist %temp%\0%count%.%extension% set dmode=zero && move %temp%\0%count%.%extension% %manga%\%fromchapter%>nul
echo [#] %manga% chapter %fromchapter% (%count%.%extension%)
:start
if %dmode%==normal set seperator=/
if %count% GEQ 10 set seperator=/
if %count% GEQ %reslimit% set /a fromchapter+=1 && goto :newchapter
if %fromchapter% GEQ %tochres% goto :combined
wget -q -c -nc --user-agent=%useragent% --directory-prefix=%manga%/%fromchapter% %subdomain%%server%%filepath%%manga%/%fromchapter%%seperator%%count%.%extension%
set /a count+=1
echo [#] %manga% chapter %fromchapter% (%count%.%extension%)
goto :start
:newchapter
:: create folders for new chapters ::
if %fromchapter% GEQ %tochres% goto :complete
set /a count=1
cd %manga%
if not exist %fromchapter% md %fromchapter%
cd..
:resetvars
if %dmode%==zero set /a dmode=normal
set /a count=1
set seperator=/0
goto :filecheck
:combined
:: Checks for combined filenames ::
:: This feature will be added in future releases ::
:complete
:: Show some stats and create task logs ::
if not exist grabmanga.log echo Grabmanga v1.0b # codeshift3r@sdf.org>grabmanga.log && echo ----------------------------------------------------------------------->>grabmanga.log
echo.
echo [#] From %server% %manga% Chapter %3 until %4
echo [#] Completed at %time% on %date% by %username%
echo From %server% %manga% Chapter %3 until %4%>>grabmanga.log
echo Completed at %time% on %date% by %username%>>grabmanga.log
echo ----------------------------------------------------------------------->>grabmanga.log
echo.

Ada character ascii yang tak leh display dalam code kat atas jadi ak upload semua
file kat sini www.urlninja.5gbfree.com/grabmanga

Update

Cara benda ni berfungsi adalah dengan "meneka"
filename & file path manga yang korang nak download
berdasarkan pattern yang tertentu.

contoh website www.goodmanga.net

Code:
http://t1.goodmanga.net/images/manga/one_piece/710/1.jpg

Filename dan file path untuk image 1.jpg
mudah dijangka sebab disusun mengikut chapter
jadi senang nak download.

contoh website www.mangahere.com
contoh website www.kissmanga.com

Code:
http://z.mhcdn.net/store/manga/106/69-711.0/compressed/h001.jpg
Code:
http://2.bp.blogspot.com/-fZV6LlXrnQk/UbsWPyQKBpI/AAAAAAAAiU8/7RQ8GTRr1TA/001.png

File path untuk image h001.jpg tak tersusun mengikut chapter
dan filename dijana mengunakan algorithm yg tak diketahui
jadi tak boleh download dan tak support k.

Setakat nih website yang support :

1.Mangable.com
2.Goodmanga.net
3.Manga-lib.pl
4.Mangafaster.com
5.Mangacanblog.com
6.Citymanga.com
7.Dragonflyscans.org

Kalau ada website yang korang rasa boleh ditambah dalam list
ni sila post kat sini.

Host files

Mangable.bat
Code:
@echo off
:: Grabmanga host file ::
:: Last updated on 21/5/2013 ::
set server=mangable.com
set subdomain=http://
set filepath=/files/images/
set extension=jpg
set language=english
set space=_

Goodmanga.bat
Code:
@echo off
:: Grabmanga host file ::
:: Last updated on 12/4/2013 ::
set server=goodmanga.net
set subdomain=http://t1.
set filepath=/images/manga/
set extension=jpg
set language=english
set space=_

Manga-lib.bat
Code:
@echo off
:: Grabmanga host file ::
:: Last updated on 12/4/2013 ::
set server=manga-lib.pl
set subdomain=http://img.
set filepath=/
set extension=png
set language=english
set space=_

Mangacanblog.bat
Code:
@echo off
:: Grabmanga host file ::
:: Last updated on 12/4/2013 ::
set server=mangacanblog.com
set subdomain=http://
set filepath=/mangas/
set extension=jpg
set language=english
set space=%20

Mangafaster.bat
Code:
@echo off
:: Grabmanga host file ::
:: Last updated on 21/5/2013 ::
set server=mangafaster.com
set subdomain=http://
set filepath=/mangas/
set extension=jpg
set language=english
set space=%20

Dragonflyscans.bat
Code:
@echo off
:: Grabmanga host file ::
:: Last updated on 12/4/2013 ::
set server=dragonflyscans.org
set subdomain=http://
set filepath=/store/manga/
set extension=jpg
set language=english
set space=_

Citymanga.bat
Code:
@echo off
:: Grabmanga host file::
:: Last updated on 12/4/2013 ::
set server=citymanga.com
set subdomain=http://
set filepath=/files/images
set extension=jpg
set language=english
set space=_
  ▲  ʙᴇ ɴɪᴄᴇ ᴛᴏ ᴏᴛʜᴇʀs
▲ ▲ ( ⌣́,   ⌣̀ )\(^◡^ )[Image: ?r=OrangeCoral]

Reply
19-06-2013, 11:18 AM,
Post: #2
RE: Grabmanga | Bulk manga downloader
tambah kissmanga.com please. GayFace
[Image: sudoes.png]
Reply
19-06-2013, 11:27 AM,
Post: #3
RE: Grabmanga | Bulk manga downloader
(19-06-2013, 11:18 AM)red_fox Wrote: tambah kissmanga.com please. GayFace

sorry tak leh support.sila refer #1 post update.
  ▲  ʙᴇ ɴɪᴄᴇ ᴛᴏ ᴏᴛʜᴇʀs
▲ ▲ ( ⌣́,   ⌣̀ )\(^◡^ )[Image: ?r=OrangeCoral]

Reply
19-06-2013, 12:05 PM,
Post: #4
RE: Grabmanga | Bulk manga downloader
wow nice dud Thumbs Up thanks
Reply


Forum Jump: