Skip to content

raffaeleguidi/corsaronero

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 
                )
            });
        }
    );
});

About

A simple library to find italian torrents with nodejs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published