nyaatorrents

Interact with NyaaTorrents (nyaa.eu, formerly nyaatorrents.info)

node-nyaatorrents

Search and fetch torrent information from NyaaTorrents.

This is a light abstraction of the search and view functions of NyaaTorrents (nyaa.eu, formerly nyaatorrents.info and nyaatorrents.org). It can currently search the main site and the sukebei variant.

Available via npm:

$ npm install nyaatorrents

Or via git:

$ git clone git://github.com/deoxxa/node-nyaatorrents.git node_modules/nyaatorrents

var NT = require("nyaatorrents"),
    nt = new NT("http://www.nyaa.eu");
 
nt.search({term: "rozen maiden"}, function(errentries) {
  if (err) {
    return console.warn(err);
  }
 
  entries.forEach(function(entry) {
    nt.get(entry.id, function(errentry) {
      if (err) {
        return console.warn(err);
      }
 
      console.log(JSON.stringify(entry));
    });
  });
});

3-clause BSD. A copy is included with the source.