1.0.3 • Published 4 years ago

manganelo v1.0.3

Weekly downloads
4
License
MIT
Repository
-
Last release
4 years ago

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

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago