Giter Club home page Giter Club logo

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.

manga-lib's People

Contributors

hyuse202 avatar zcrossoverz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

manga-lib's Issues

Base Url

  • Nettruyen's domain changes frequently so .getListLatestUpdate not work.
  • Btw i wanna add some source like blogtruyen, truyenqq,... to this project but I 've never created a PR before. So feel free when I make it.
    Big love.

timeout !!!

Mình lấy dữ liệu nhiều chapters 1 lần, nên gặp lỗi Navigation timeout of 30000 ms exceeded. Bạn chỉ mình cách fix với ạ.
Screen Shot 2023-08-02 at 15 00 29

Chapter's images scraping issue

It appears that the current scraping logic for retrieving chapter images is no longer functional, likely due to a change in the hosting domain. The chapters are now hosted on a different domain, "https://www.thehappygrowth.com/".
Consequently, the previous URL structure no longer works:

const url = urlNotFinal + "chapter/" + id;

toonily 403

so i was messing with the code for toonily and when i try to use the cdn it blocks me...

Interceptor for Blogtruyen

I don't know why but when adding interceptor to Blogtruyen at method .getDataChapter
The { next_chapter, prev_chapter} not working.

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.