Otakudesu API (Web Scraper)
Installation
To install the Otakudesu package, you can use npm. Open your terminal or command prompt and type:
npm install otakudesu-api
pnpm add otakudesu-api
yarn add otakudesu-api
Usage
For usage, you can see the tests/
folder. The tests folder contains several examples of how to use the Otakudesu API package.
import OtakudesuApi from 'otakudesu-api'
const api = new OtakudesuApi()
const api = new OtakudesuApi('https://otakudesu.cloud')
Search Anime
const search = await api.search('Solo Leveling')
Get Ongoing List
const ongoing = await api.ongoing()
const ongoing = await api.ongoing(2)
Get Complete List
const complete = await api.complete()
const complete = await api.complete(2)
Get Genres List
const genres = await api.genres()
Get Genres Detail
const genres = await api.genres('/genres/action/')
const genres = await api.genres('/genres/action/', 2)
Get Detail
const detail = await api.detail('/anime/shaman-king-flowers-sub-indo/')
Get Video
const video = await api.video('/episode/skflower-episode-10-sub-indo/')
Contribution, and issues
Contributions are welcome, and if you have any issues with this package, you are welcome to open the issue on the github repository.
License
Copyright Ā© 2024 zeindevs. Licensed under the Apache License, Version 2.0 (the "License");