Skip to content

manga-lib is a nodejs library that allows you to easily scrape manga content from various websites.

Notifications You must be signed in to change notification settings

zcrossoverz/manga-lib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

manga-lib

License

manga-lib is a library that allows you to easily scrape manga content from various websites.

Features

  • Scrapes manga chapters, titles, images, and other metadata.
  • Supports multiple popular manga websites (updating).
  • Provides a simple and intuitive API for easy integration.

Installation

Install the library using npm:


npm i manga-lib

Usage

Here's an example of how to use Manga Scraper in your code:

const { Manga, MangaType } = require("manga-lib");

// Create a new instance of the manga site, MangaType.NETTRUYEN is currently support for https://www.nettruyenplus.com/
const manga = new Manga().build(MangaType.NETTRUYEN);

// Get list latest manga
const latest = await manga.getListLatestUpdate();
const latest_page_2 = await manga.getListLatestUpdate(2);

// Retrieve the manga details
const detail_manga = await manga.getDetailManga("https://www.nettruyenplus.com/truyen-tranh/the-eminence-in-shadowto-be-a-power-in-the-shadows-side-story-86175")

// Get data chapter
const data_chapter = await manga.getDataChapter("https://www.nettruyenplus.com/truyen-tranh/the-eminence-in-shadowto-be-a-power-in-the-shadows-side-story/chap-1/1004177");

// Search manga
const search_manga = await manga.search("one piece");

Supported Websites

The manga-lib currently supports the following manga websites (updating):

  • nettruyen

Contributing

Contributions are welcome! If you find any issues or would like to suggest enhancements, please submit a pull request or open an issue in the GitHub repository.