AnimeFLV Scrapper
Fake AnimeFLV API made with node-html-parser and humanoid-js.
Installation
npm i animeflv-scrapper
Usage
/** * CODE EXAMPLES */ const API = // Get an array with all the animes in AnimeFLVAPI // Search for animes that contains 'one piece' on it's nameAPI // Parameters for a getAnimes searchconst params = genre: 'accion' year: 2018 type: 'tv' status: 2 order: 'updated' page: 1 // Get a list of 20 animes according to the passed parametersAPI // Get info about an specific anime (see docs for more)API // Get maximum 5 video links of each episodeAPI
API Documentation
getAllAnimes()
Don't receive any parameter and returns an array of object like the following
getAnimes(params)
Receives an object of filters/parameters. Returns a list of animes as the following:
searchAnime(query, params)
Receive two parameters, a string as the query you are looking for and the second an object of filters/parameters. Returns a list of animes as getAnimes(params)
getAnimeInfo(animeTitle)
Receive the anime title (the one without spaces). Returns an object like the following:
getEpisodeVideos(episodeIndex, animeTitle)
Receive the episode number and the anime title (the one without spaces). Returns an array of 5 video sources.
getLatestEpisodes()
Get a list of the latest 20 anime episodes.
Filter / Parameters
- genres: see
src/genres.json
- year: from 1990 to actual year
- type:
[tv, movie, special, ova]
- status
- In Emission: 1
- Finished: 2
- Soon: 3
- order
- default
- Recently updated: "updated"
- Recently added: "added"
- Title A-Z: "title"
- Rate: "rating"
- page: By default 1