Skip to content

thibauts/t411

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

t411

T411 API client

A client for the T411 API that works both in node and the browser with browserify.

Install

$ npm install t411

Usage

var T411 = require('t411');

var client = new T411();

client.auth('your-username', 'your-password', function(err) {
  if(err) throw err;

  // search torrents
  client.search('interstellar', function(err, result) {
    if(err) throw err;
    console.log(result);
  });

  // download and parse a .torrent
  client.download(id, function(err, buf) {
    // `buf` is a Buffer in node as well as in the browser
    var parsed = require('parse-torrent')(buf);
    console.log(parsed);
  });

  // All the methods provided by the API are implemented (categories,
  // terms, tops, bookmarks). For advanced use check the source code, 
  // it should be pretty easy to read :)
});

About

T411 API client

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published