GithubHelp home page GithubHelp logo

zcrossoverz / manga-lib Goto Github PK

View Code? Open in Web Editor NEW
17.0 2.0 3.0 132 KB

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

TypeScript 100.00%
manga manga-crawler manga-library manga-scraper manga-scrapper nettruyen nodejs-crawler node-crawler toonily asurascans

manga-lib's Introduction

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-lib 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.TOONILY);
// Create a new instance with custom url
const manga = new Manga().build(MangaType.TOONILY, {
  baseUrl: 'https://domain.com/',
});

// 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://toonily.com/webtoon/nano-machine/'
);

// Get data chapter
const data_chapter = await manga.getDataChapter(
  'https://toonily.com/webtoon/nano-machine/chapter-159/'
);

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

Supported Websites

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

  • nettruyen

  • toonily

  • blogtruyen

  • asurascans

  • mangadex

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.