是否有任何bittorrent客戶端或(Java | Python | Ruby | Perl)庫,我可以像wget或curl一樣使用?wget-like bittorrent客戶端或庫?
我想簡單地將它用作腳本中的一個步驟,就像使用wget一樣。
編輯:對不起,我應該提到我使用的是Ubuntu。
是否有任何bittorrent客戶端或(Java | Python | Ruby | Perl)庫,我可以像wget或curl一樣使用?wget-like bittorrent客戶端或庫?
我想簡單地將它用作腳本中的一個步驟,就像使用wget一樣。
編輯:對不起,我應該提到我使用的是Ubuntu。
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.
你可以從命令行下載rtorrent種子。
wget在下載後終止。您可以將exit命令添加到.rtorrent.rc中的on_finished事件。
如果您需要在後臺運行應用程序,則可以使用屏幕管理實用程序或&運算符。
如果你想觀看文件下載,你可以簡單地省略屏幕管理。
另一種解決方案是讓rtorrent觀看目錄中的種子。下載完成後,您可以指定將其移至哪個目錄。要開始下載,請使用腳本將文件移動到監視目錄中,並通過檢查文件的「已完成」目錄來檢查其完成狀態。
btdownloadheadless
SYNOPSIS btdownloadheadless [ option ... ] URL btdownloadheadless [ option ... ] filename
另一種選擇是(當然6之前的版本,)官方的 「BitTorrent的」 客戶端。它包含一個控制檯和一個curses版本。它通常在各種Linux發行版中被稱爲bittorrent
包(而不是bittorrent-gui
包,它是GUI版本)。 Linux的最新版本是5.x,儘管Ubuntu/Debian只有3.x.對於控制檯和curses版本,分別運行bittorrent-console
或bittorrent-curses
(在4.x和5.x上);或btdownloadheadless.bittorrent
或btdownloadcurses.bittorrent
(在3.x上)。
我使用了bittornado軟件包中的btdownloadheadless,正如gnibbler所建議的那樣。我還建議使用屏幕與btdownloadcurses進行一個很好的顯示等,您可以很容易地背景。
我總是使用傳輸cli和大多數Linux發行版將命令行界面和gui部分的傳輸cli分開。另一個我可以建議的是Lftp,雖然我發現它不適用於某些網站。
有問題關於Ubuntu的Bittorrent命令行客戶端在問Ubuntu:http://askubuntu.com/questions/29872/torrent-client-for-the-command-line – Jakob 2014-12-30 18:37:13