我想知道是否有人有使用NodeJS下载torrent的示例?基本上,我有一个种子的RSS Feed,我会遍历并获取种子文件的url,然后想在服务器上启动种子的下载。
我已经成功解析和循环遍历了RSS,但是我尝试了一些npm包,但它们要么崩溃,要么不稳定。如果有人有任何建议、示例或其他任何东西...我将非常感激。谢谢。
router.get('/', function(req, res) {
var options = {};
parser.parseURL('rss feed here', options, function(err, articles) {
var i = 0;
var torrent;
for (var title in articles.items) {
console.log(articles.items[i]['url']);
//download torrent here
i++;
}
});
});