2009-10-15 64 views
11

是否有任何bittorrent客户端或(Java | Python | Ruby | Perl)库,我可以像wget或curl一样使用?wget-like bittorrent客户端或库?

我想简单地将它用作脚本中的一个步骤,就像使用wget一样。

编辑:对不起,我应该提到我使用的是Ubuntu。

+0

有问题关于Ubuntu的Bittorrent命令行客户端在问Ubuntu:http://askubuntu.com/questions/29872/torrent-client-for-the-command-line – Jakob 2014-12-30 18:37:13

回答

8

ctorrent从bittorrent.com

 
SYNOPSIS 
     ctorrent [General Options] [Download Options] [Make Torrent 
Options] file.torrent 

     CTorrent is a BitTorrent Client written in C that doesn’t 
require any graphical component, such as an X server. It’s built as a 
console program and it can be even used remotely in a machine that 
provides outside ssh access. 
5

你可以从命令行下载rtorrent种子。

wget在下载后终止。您可以将exit命令添加到.rtorrent.rc中的on_finished事件。

如果您需要在后台运行应用程序,则可以使用屏幕管理实用程序或&运算符。

如果你想观看文件下载,你可以简单地省略屏幕管理。

另一种解决方案是让rtorrent观看目录中的种子。下载完成后,您可以指定将其移至哪个目录。要开始下载,请使用脚本将文件移动到监视目录中,并通过检查文件的“已完成”目录来检查其完成状态。

4

btdownloadheadless

 
SYNOPSIS 
     btdownloadheadless [ option ... ] URL 
     btdownloadheadless [ option ... ] filename 
1

另一种选择是(当然6之前的版本,)官方的 “BitTorrent的” 客户端。它包含一个控制台和一个curses版本。它通常在各种Linux发行版中被称为bittorrent包(而不是bittorrent-gui包,它是GUI版本)。 Linux的最新版本是5.x,尽管Ubuntu/Debian只有3.x.对于控制台和curses版本,分别运行bittorrent-consolebittorrent-curses(在4.x和5.x上);或btdownloadheadless.bittorrentbtdownloadcurses.bittorrent(在3.x上)。

0

我使用了bittornado软件包中的btdownloadheadless,正如gnibbler所建议的那样。我还建议使用屏幕与btdownloadcurses进行一个很好的显示等,您可以很容易地背景。

1

我总是使用传输cli和大多数Linux发行版将命令行界面和gui部分的传输cli分开。另一个我可以建议的是Lftp,虽然我发现它不适用于某些网站。