1.1.1 • Published 6 years ago

horrible-api v1.1.1

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

HorribleApi

Build Status

This is an api allowing one to gather torrents directly from horriblesubs.info in around half a second.

HorribleApi is being developed mainly for KawAnime (rip Nyaa...) but anyone can use it for its own purpose.

Any contribution is welcomed.

Installation

npm install --save horrible-api

Use

const horribleApi = require('horrible-api')
 
// Want to get a list of all available anime ?
console.log(horribleApi.getShowsOnly())

// Want to know how many shows are avaible at the moment ?
console.log(horribleApi.getNumberOfShows())

// Want to get the 18 latest releases from Horrible subs ?
const quality = '720p' // Can be 480p, 720p or 1080p. Something else will throw an error.
 
horribleApi.getLatest(quality).then((releases) => {
  console.log(releases)
}).catch((err) => {
  console.log(err)
})
// Want to get magnets for an anime ?
 
horribleApi.getMagnetsFromAnimeName({
  fromEp: 0,
  untilEp: 500,
  name: 'Absolute Duo',   // Show must in horribleApi.getShowsOnly()
  quality: '720p'  // Can be 480p, 720p or 1080p. Something else will throw an error.
}).then((links) => {
  console.log(links.length)
}).catch((err) => {
  console.log(err)
})

Dev

npm test

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request.

License

MIT License

Copyright (c) Kylart

1.1.1

6 years ago

1.1.0

6 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