1.3.2 • Published 6 months ago
mangascrape v1.3.2
npm i mangascrape
Here're some of the project's best features:
- Scrape mangas easily
- Fully typed
- Multiple sources
npm i mangascrape
Here're some of the project's best features:
- Scrape mangas easily
- Fully typed
- Multiple sources
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);
Contributing is easy. Just clone the repository and commit changes.
This project is licensed under the MIT
Contributing is easy. Just clone the repository and commit changes.
This project is licensed under the MIT