If you're a manga enthusiast or a developer looking for a streamlined way to gather data from various manga sources, look no further than the manga-collector npm package. This powerful tool, created by AkioSarkiz, is designed to help you scrape manga data efficiently from multiple sources. Let's delve into the features, installation process, and usage of manga-collector.
The manga-collector package offers a robust set of features that make it an indispensable tool for anyone interested in manga data scraping:
Getting started with manga-collector is a breeze. Simply install the package via npm by running the following command in your terminal:
npm i manga-collector
Once you have manga-collector installed, you can start using it to scrape manga data. Here's a quick example to get you started:
import { MangaScraperFactory, MangaSource } from "manga-collector";
const scraper = await MangaScraperFactory.make(MangaSource.MANGANATO);
console.log(await scraper.getDetailedManga("manga url here"));
// Example output
// {
// "url": "https://chapmanganato.to/manga-fy982633",
// "title": "Beauty And The Beasts",
// "status": "ongoing",
// "description": "As soon as she fell into the world of...",
// "genres": [
// ...
// ],
// "chapters": [
// ...
// ],
// "authors": [
// ...
// ]
// }
Method | Description |
---|---|
getDetailedManga | Get details of the manga |
getDetailedChapter | Get details of the chapter |
getLatestUpdates | Get latest updates of mangas |
search | Find the mangas by query |