horrible-api
v1.1.1
Published
Unofficial API to scrap anime from horriblesubs.info
Downloads
4
Readme
HorribleApi
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
- Fork it!
- Create your feature branch: git checkout -b my-new-feature
- Commit your changes: git commit -am 'Add some feature'
- Push to the branch: git push origin my-new-feature
- Submit a pull request.
License
MIT License
Copyright (c) Kylart