@hakuneko/scrapers
Scraper for manga websites
Last updated 8 months ago by ronny1982 .
Unlicense · Repository · Original npm · Tarball · package.json
$ cnpm install @hakuneko/scrapers 
SYNC missed versions from official npm registry.

Table of Content

General

HakuNeko provides parsers to access mangas from some selected websites.

Include the module:

// [optional] use a logtrine logger in case for debug output
const { FileLogger } = require('logtrine');
const { KissManga, MangaGo } = require('hakuneko');

var logger = new FileLogger('./hakuneko.log', ConsoleLogger.LEVEL.All);
var kissmanga = new KissManga(logger);
var mangago = new MangaGo(logger);

Basic data structure for manga(s):

{
  "id": "/Manga/Mirai-Nikki",
  "title": "Mirai Nikki"
}

Basic data structure for chapter(s):

{
  "id": "/Manga/Mirai-Nikki/ch-001",
  "title": "Chapter 01 - Beginning"
}

back to top


KissManga

Get Mangas

NOTE: Website will ban your IP when using this module, only use it if you have dynamic IP!

Function to parse mangas from the website. The manga list is scattered over multiple website pages, where each page contains roughly 50 mangas.

  1. Parameter is optional, the start page (website) that should be used [default=1].
  2. Parameter is optional, the end page (website) that should be used [default=autodetect].
const { KissManga } = require('hakuneko');
var scraper = new KissManga();
scraper.getMangaList(1, 2)
.then(mangas => console.log(mangas))
.catch(error => console.error(error))

back to top


MangaGo

Get Mangas

NOTE: Website will ban your IP when using this module, only use it if you have dynamic IP!

Function to parse mangas from the website. The manga list is scattered over multiple website pages, where each page contains roughly 44 mangas.

  1. Parameter is optional, the start page (website) that should be used [default=1].
  2. Parameter is optional, the end page (website) that should be used [default=autodetect].
const { MangaGo } = require('hakuneko');
var scraper = new MangaGo();
scraper.getMangaList(1, 2)
.then(mangas => console.log(mangas))
.catch(error => console.error(error))

back to top


Current Tags

  • 0.4.25                                ...           latest (8 months ago)

5 Versions

  • 0.4.25                                ...           8 months ago
  • 0.4.24                                ...           8 months ago
  • 0.4.23                                ...           9 months ago
  • 0.4.22                                ...           9 months ago
  • 0.4.21                                ...           9 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 5
Last Month 9
Dependencies (4)
Dev Dependencies (5)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |