manganelo
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

Manganelo Web Scraper

A web scraper for manganelo.com

Table of Contents

Features

  • Get Manga by ID
  • Get Manga chapter panels
  • Manga Advance Search

Todo

Usage

const { Manganelo } = require('manganelo')
 
/** with ES6 */
import { Manganelo } from 'manganelo'
 
const manganelo = new Manganelo()

API

const manganelo = new Manganelo()
 
await manganelo.getMangaByID('black_clover')
await manganelo.getChapterPanels('black_clover', '1')
await manganelo.searchManga() //by default returns lastest manga updates

Examples

import { 
    MangaGenre,
    SearchOrderBy,
    SearchStatus,
    SearchType 
} from 'manganelo'
//retrieve manga by id e.g Black Clover - https://manganelo.com/manga/black_clover
const blackClover = await manganelo.getMangaByID('black_clover')
 
/**retrieve chapter panels */
const panels = await manganelo.getChapterPanels(blackClover.slug, '1')
 
/** retrieve hottest manga */
const latestManga = await manganelo.searchManga({ orderBy: SearchOrderBy.HOT })
 
/** filter manga genres: include, exclude */
const filterGenres = await manganelo.searchManga({
    include: [MangaGenre.FANTASY, MangaGenre.ACTION, MangaGenre.SHOUNEN],
    exclude: [MangaGenre.ECCHI]
})
 
/** search manga by keywords */
const keywordsManga = await manganelo.searchManga({
    searchKey: SearchType.TITLE,
    searchWord: "black clover"
})
 
/** search manga by status */
const statusManga = await manganelo.searchManga({
    status: SearchStatus.ONGOING
})

Test

$ npm run test:unit
# or 
$ yarn test:unit

Contributing

See the contributing file!
Report issues here!
PRs accepted.

Small note: If editing the README, please confirm to the standard-readme specification.

Note

This is my first open source project
Yes, I'm an avid fan of black clover

Lincense

MIT License Copyright (c) 2020 Pepe Ederango

Readme

Keywords

none

Package Sidebar

Install

npm i manganelo

Weekly Downloads

1

Version

1.0.3

License

MIT

Unpacked Size

22.1 kB

Total Files

24

Last publish

Collaborators

  • shatterball