Skip to content

TzurS11/MangaScrape

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MangaScrape

MangaScrape is a tool designed to scrape various manga sources providing easy access to manga data and chapters.

shields shields shields shields shields

🛠️ Installation Steps:

npm i mangascrape

🧐 Features

Here're some of the project's best features:

  • Scrape mangas easily
  • Fully typed
  • Multiple sources

🌐 Sources

[x] Bato.to
[x] MangaBuddy
[ ] Mangakakalot
[ ] Mangadex

⌨️ Usage

MangaScrape

MangaScrape is a tool designed to scrape various manga sources providing easy access to manga data and chapters.

shields shields shields shields shields

🛠️ Installation Steps:

npm i mangascrape

🧐 Features

Here're some of the project's best features:

  • Scrape mangas easily
  • Fully typed
  • Multiple sources

🌐 Sources

[x] Bato.to
[x] MangaBuddy
[x] Mangakakalot
[ ] Mangadex

⌨️ Usage

const { Batoto, MangaBuddy, Mangakakalot } = require("mangascrape"); // javascript
import { Batoto, MangaBuddy, Mangakakalot } from "mangascrape"; // typescript

const batoto = new Batoto();

async function getFirstChapter() {
  const manga = await batoto.search({
    query: "Demon Slayer",
    genres: { include: { ContentTag: ["Shounen"] } },
  });
  if (manga.results.length < 1) return [];

  const detailed = await batoto.id(manga.results[0].id);
  if (detailed == undefined) return [];
  const chapter = await batoto.chapter(detailed.id, detailed.chapters[0].id);
  return chapter;
}
getFirstChapter().then(console.log).catch(console.error);

🍰 Contribution Guidelines:

Contributing is easy. Just clone the repository and commit changes.

🛡️ License:

This project is licensed under the MIT

🍰 Contribution Guidelines:

Contributing is easy. Just clone the repository and commit changes.

🛡️ License:

This project is licensed under the MIT