kickass-torrent
v0.0.3
Published
kickass.to json API wrapper
Downloads
77
Readme
node-kickass
Node kickass.to json API wrapper
npm install kickass-torrent --save
Examples
default options:
var kickass=require('kickass-torrent')
kickass('test search',function(err, response){
console.log(err, response)
})
all options:
var kickass=require('kickass-torrent')
kickass({
q: 'test',//actual search term
field:'seeders',//seeders, leechers, time_add, files_count, empty for best match
order:'desc',//asc or desc
page: 2,//page count, obviously
url: 'https://kat.cr',//changes site default url (https://kat.cr)
},function(e, data){
//will get the contents from
//http://kickass.to/json.php?q=test&field=seeders&order=desc&page=2
if(e)
return console.log(e)
console.log(data)//actual json response
})