New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

animeflv-scrapper

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

animeflv-scrapper

Fake AnimeFLV API made with node-html-parser and humanoid-js.

latest
Source
npmnpm
Version
0.3.2
Version published
Weekly downloads
35
337.5%
Maintainers
1
Weekly downloads
 
Created
Source

AnimeFLV Scrapper

Fake AnimeFLV API made with node-html-parser and humanoid-js.

Downloads Version License Dependencies Size

  • Installation
  • Usage
  • API Documentation

Installation

npm i animeflv-scrapper

Usage

/**
 * CODE EXAMPLES
 */

const API = require('animeflv-scrapper')

// Get an array with all the animes in AnimeFLV
API.getAllAnimes().then(data => {
  console.log(data)
})

// Search for animes that contains 'one piece' on it's name
API.searchAnime('one piece').then(data => {
  console.log(data)
})

// Parameters for a getAnimes search
const params = {
  genre: 'accion',
  year: 2018,
  type: 'tv',
  status: 2,
  order: 'updated',
  page: 1,
}

// Get a list of 20 animes according to the passed parameters
API.getAnimes(params).then(data => {
  console.log(data)
})

// Get info about an specific anime (see docs for more)
API.getAnimeInfo('one-piece-tv').then(data => {
  console.log(data)
})

// Get maximum 5 video links of each episode
API.getEpisodeVideos(865, 'one-piece-tv').then(data => {
  console.log(data)
})

API Documentation

getAllAnimes()

Don't receive any parameter and returns an array of object like the following

[
  {
    "index": "1",
    "label": "Bleach",
    "title": "bleach-tv",
    "id": "3602",
    "type": "tv"
  }
]

getAnimes(params)

Receives an object of filters/parameters. Returns a list of animes as the following:

[
  {
    "link": "/anime/one-piece-tv",
    "title": "one-piece-tv",
    "image": "https://animeflv.net/uploads/animes/covers/7.jpg",
    "label": "One Piece",
    "type": "Anime"
  }
]

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:

{
  "rate": "4.5",
  "votes": "7771",
  "genres": ["..."],
  "label": "One Piece",
  "description": "...",
  "episodes": [{ "index": 865, "id": 50900 }],
  "title": "one-piece-tv"
}

getEpisodeVideos(episodeIndex, animeTitle)

Receive the episode number and the anime title (the one without spaces). Returns an array of 5 video sources.

[
  "https://s1.animeflv.net/embed.php?s=natsuki&v=...",
  "https://s1.animeflv.net/embed.php?s=natsuki&v=...",
  "https://s1.animeflv.net/embed.php?s=natsuki&v=...",
  "https://s1.animeflv.net/embed.php?s=natsuki&v=...",
  "https://s1.animeflv.net/embed.php?s=natsuki&v=..."
]

getLatestEpisodes()

Get a list of the latest 20 anime episodes.

[
  {
    "title": "boku-no-hero-academia-4th-season-20",
    "label": "Boku no Hero Academia 4th Season",
    "episode": "Episodio 20"
  }
]

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

Keywords

anime

FAQs

Package last updated on 21 Oct 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts