corsaronero
v0.9.6
Published
A simple library to find italian torrents using nodejs
Downloads
6
Readme
corsaronero
A simple library to find italian torrents using nodejs
// remember: piracy is stealing
var _ = require("underscore");
var log = require('winston');
var corsaronero = require("corsaronero");
corsaronero.search('ubuntu', function(results){
_.chain(results)
.where(results, {type: 'App Linux'})
.sortBy('seed')
.each(function(item){
log.info(
"[%s] %s - size: %s date: %s seeds: %d leeches: %d info: %s",
item.type,
item.filename,
item.size,
item.date,
item.seeds,
item.leeches,
item.detailsUrl);
corsaronero.info(item.detailsUrl, function(details){
log.info(
"magnet url for '%s': %s",
item.filename,
details.magnetUrl
)
});
}
);
});