gin-downloader
npm
npm install gin-downloader --save
yarn
yarn add gin-downloader
v2@beta-5
The difference between v2@beta-4 and v2@beta-5 is just too much, I basically rewrote most of the code.
I introduced MangaObject to enable to resolve chapters and images easily.
Hopefully this big change will allow me improve the library easily in the future.
NOTE
This is not the final revision, I'm open to recomendations on how the API should be accessible.
v1 is Currently deprecated, please use @beta version
I'm currently changing and only maintaining the v2 of gin-downloader.
The focus on the v1 was to support as many manga sites as possible, but that caused a lot of websites to maintain with virtual no time for me to maintain it correctly.
The focus on this v2 is to support a small number of websites and implement an easy to use API and improve from there.
Supported websites
- MangaHere
- MangaFox
- MangaPanda
- KissManga
- BatoTo
Usage
- import single site
;
or
; // as default//or; //typescript ginmangahere; //get mangas
- filter(filter: FilterSupport) : returns {results:[{src:string,name:string}], page:number, total:number}
ginmangahere ;/* returns{ results: [ { name: 'Gintama', src: '//www.mangahere.cc/manga/gintama' } ], page: 0, total: 0 }*/
FilterSupport : note not every site supports all the filters/genres.
// you can use the string directly in the filter
- filter(filter: FilterSupport | string) : returns [{name:string, src:string}]
; ginDownloadermangahere ; // prints all mangas from mangahere
- mangas() : returns MangaObject[] note: not every site will return all the mangas.
; ginDownloadermangahere ; // prints all mangas from mangahere
- latest() : returns [{number:number|string, src:string, volume?:string,name:string}]
mangahere // latest chapters added to mangahere ;
Examples
Gintama
info
Get We can use the powerful filter functionallity to search for it, the search functionality uses the website search to present the results.
const ginDownloader = default;const FilterCondition = FilterCondition;const name= "gintama"// let promise= ginDownloader.mangahere.filter(name);// orconst filter =search:name:name: namecondition: FilterConditionEndsWith // we use EndsWith to get only one manga;let promise = ginDownloadermangahere;promise// get the first// request info
returns:
{ image: 'https://mangatown.secure.footprint.net/store/manga/551/cover.jpg?token=c54f3882d8459038b67c190a204ede7e774ba696&ttl=1524484800&v=1523778541',
title: 'Gintama',
synonyms:
[ { title: 'กินทามะ', language: '' },
{ title: '銀魂', language: '' },
{ title: '银魂', language: '' },
{ title: '긴타마', language: '' },
{ title: '은혼', language: '' },
{ title: 'Gin Tama', language: '' },
{ title: 'Silver Soul', language: '' },
{ title: 'غينتاما - الروح الفضيه', language: '' },
{ title: 'Сребърна душа', language: 'Bulgarian' },
{ title: 'Gümüş Ruh', language: 'Turkish' },
{ title: 'Jiwa Perak', language: '' },
{ title: 'Серебряная душа', language: 'Russian' } ],
authors: [ 'Sorachi Hideaki' ],
artists: [ 'Sorachi Hideaki' ],
genres:
[ 'Action',
'Adventure',
'Comedy',
'Drama',
'Historical',
'Sci-fi',
'Shounen',
'Supernatural' ],
synopsis: 'Sakata Gintoki is a samurai living in an era when samurai are no longer needed.\nTo add to his troubles, oppressive aliens have moved in to invade.\nGintoki lives with Kagura and Shinpachi, taking on odd jobs to make the world a better place... and to pay their rent. ',
status: 'Ongoing',
licensed: false }
Gintama
chapters
Get const ginDownloader = default;const name= "gintama"ginDownloadermangahere
Gintama
chapter 1 images
get images(1)
return a Promise of a list of Lazy promises, the goal is only resolve image when requesting.
This is probably the method that will taking the longest
ginDownloadermangahere
Changelog
All notable changes to this project will be documented in this file.
[2.0.0-beta.6] 2018-04-24
- Fixes on mangahere parser
- Added 'invalid' list of mangas for mangahere and filter them automatically (ex: Dragon Ball Super)
[2.0.0-beta.5] 2018-04-22
- Major code restruct
- Add support to mangahere
Disclaimer
The developer of this application does not have any affiliation with the content providers provide.