Tortuga: 基于 Node.js 的 PirateBay 客户端

Tortuga 是一个 Node.js 模块,用于简化与 The Pirate Bay 的交互。 您可以使用 Tortuga 搜索种子文件,并以编程方式访问其元数据,例如标题、类别、磁力链接等。

安装

使用 npm 安装:

npm install tortuga

使用

var tortuga = require('tortuga');

tortuga.search('Ubuntu', function (results) {
  console.log(results); 
});

// 示例结果:
// [
//   { 
//     id: 10139279, 
//     title: 'Ubuntu 12.04', 
//     category: 303, 
//     url: 'http://thepiratebay.se/torrent/10139279', 
//     magnet: 'magnet:?xt=urn:btih:895649af5c8311d16a1...' 
//   },
//   // ...更多结果
// ]
zip 文件大小:57.16KB