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

horrible-api

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

horrible-api

Unofficial API to scrap anime from horriblesubs.info

latest
Source
npmnpm
Version
1.1.1
Version published
Maintainers
1
Created
Source

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

  • 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

FAQs

Package last updated on 17 Nov 2017

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