Skip to content
Query for torrents at Kickass.to with Node.js.
Latest commit a2d70cb Jan 12, 2014 @Glavin001 Update package.json
Failed to load latest commit information.
examples More improvements. Jan 12, 2014
test
.gitignore Initial commit Jan 11, 2014
.travis.yml Update .travis.yml Jan 12, 2014
LICENSE Initial commit Jan 12, 2014
README.md Update README.md Jan 12, 2014
index.js More improvements. Jan 12, 2014
package.json Update package.json Jan 12, 2014

README.md

node-kickass NPM version Build Status

NPM

Query for torrents at Kickass.to with Node.js.

Installation

Add node-kickass to your existing Node.js project.

npm install node-kickass --save

Usage

See examples for more usage details.

Built as a Fluent Interface. Also known as method chaining, as used in jQuery.

var Kickass = require('node-kickass');

var k = new Kickass()
.setQuery('Almost Human')   // Set search Query parameter 
.setPage(0)                 // Optional
.run(function(errors, data) {
  /*
  this  {context} => Current Context is set to be `k`.
  errors  {array} => An array of errors that occured.
  data    {array} => An array of items/articles that were read.
  */
  if (! errors.length > 0) {
    // No errors occured.
    console.log(data.length, "results");
    console.log(
      errors,     // Array of errors, will be empty array given there are no errors.
      data,       // Array of items/articles read from this `run`.
      this.items  // Array of all items/articles read that have been associated to `k`, which is the current context `this`.
      );
  } else {
    // One or more errors occured.
    console.log(errors, "errors");
  }
})

Functions

  • constructor
var k = new Kickass()
  • setQuery
k.setQuery("Search Name")
  • setPage
k.setPage(0)
  • setSort
k.setSort({
  field: "seeders",
  sorder: "desc"
});
  • run
k.run(function(errors, data) {
            //console.log(data);
            if (! errors.length > 0) {
                done();
                //console.log(data.length);
            } else {
                //console.log(errors);
            }
        });
  • wait (FIXME) Waits for all requests to be completed.
k.wait()

Disclaimer

There are obvious legal issues, with downloading copyrighted material you do not have a license for. We do not endorse such use cases and take no responsibility for the use people make of it.

Something went wrong with that request. Please try again.