Socket
Socket
Sign inDemoInstall

hakuneko

Package Overview
Dependencies
63
Maintainers
1
Versions
142
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    hakuneko

Scraper for manga websites


Version published
Weekly downloads
28
increased by100%
Maintainers
1
Install size
7.27 MB
Created
Weekly downloads
 

Readme

Source

Table of Content

  • General
  • KissManga
  • MangaGo

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


Keywords

FAQs

Last updated on 22 Jun 2019

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc