manganelo
v1.0.3
Published
A simple npm package for scraping manganelo.com
Downloads
6
Readme
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
- Improve documentation
- Add supports to manganelo based sites, e.g mangakakalot.com, m.manganelo.com, batoto.co.
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