是否有任何bittorrent客户端或(Java | Python | Ruby | Perl)库可以像wget或curl一样使用?
我想简单地用作脚本中的一个步骤,就像你使用wget一样.
编辑:对不起,我应该提到我正在使用Ubuntu.
ctorrent
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.
您可以从命令行加载rtorrent中的种子.
wget在下载后终止.您可以将exit命令添加到.rtorrent.rc中的on_finished事件.
如果需要在后台运行应用程序,可以使用屏幕管理实用程序或&运算符.
如果要观看文件下载,则只需省略屏幕管理.
另一种解决方案是让rtorrent观看种子目录.下载完成后,您可以指定将其移动到的目录.要开始下载,请使用脚本将文件移动到watch目录中,并通过检查文件的"completed"目录来检查其完成状态.
| 归档时间: |
|
| 查看次数: |
6265 次 |
| 最近记录: |