cover

Manga collector - npm

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.

Features

The manga-collector package offers a robust set of features that make it an indispensable tool for anyone interested in manga data scraping:

  • Multi-Source Support: It supports scraping from a variety of popular manga websites, ensuring you have access to a wide range of manga information.
  • Easy to Use: With a simple API, manga-collector makes it easy to start scraping manga data with minimal setup.
  • Customizable: The package allows you to customize the scraping process according to your needs, whether you want to fetch specific manga details or scrape entire collections.
  • Efficient and Fast: Designed for efficiency, manga-collector ensures that you can gather data quickly without overloading the source websites.

Installation

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
      

Usage

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": [
//     ...
//   ]
// }
        
      

Available methods

Method Description
getDetailedMangaGet details of the manga
getDetailedChapterGet details of the chapter
getLatestUpdatesGet latest updates of mangas
searchFind the mangas by query