1.0.91 • Published 7 years ago

animepill-api v1.0.91

Weekly downloads
4
License
MIT
Repository
github
Last release
7 years ago

animepill-api

scrapes videos from animepill

installation

npm install --save animepill-api

usage

const Anime = require("animepill-api");
const client = new Anime();

client.getEpisodes("bleach")
  .then(eps => eps[3].getEpisode())
  .then(vids => console.log(vids));

client.search("bleach")
  .then(res => {
    return res.find(x => x.type === "TV")
      .getEpisodes();
  })
  .then(eps => console.log(eps));

docs

Anime

Kind: global class

new Anime(prefix, url)

constructor, instantiates the object

ParamTypeDescription
prefixstringit uses this in front of the request, you could use this to prevent cors errors in browsers
urlstringthe url to make request to, default: http://animepill.com

anime.search(query) ⇒ Promise.<Array.<Object>>

searches for anime

Kind: instance method of Anime Returns: Promise.<Array.<Object>> - an array with results

ParamTypeDescription
querystringwhat you are searching for

anime.getEpisodes(slug) ⇒ Promise.<Object>

gets episodes of an anime

Kind: instance method of Anime Returns: Promise.<Object> - an object with all the episodes

ParamTypeDescription
slugstringthe slug of an anime you can get a slug in a search

anime.getEpisode(slug) ⇒ Promise.<Array.<Object>>

searches for anime

Kind: instance method of Anime Returns: Promise.<Array.<Object>> - an array with the episode mp4 uri

ParamTypeDescription
slugstringthe slug of an anime you can get a slug in a search
1.0.91

7 years ago

1.0.9

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago