Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

wget-like bittorrent client or library? [closed]

Is there any bittorrent client or (Java|Python|Ruby|Perl) library that I can use like wget or curl?

I would like to use simply as a step in a script, like you would use wget.

EDIT: Sorry, I should have mentioned I'm using Ubuntu.

like image 913
itsadok Avatar asked Oct 15 '09 07:10

itsadok


People also ask

Is BitTorrent available for Linux?

Download torrents on Linux. Supporting 64-bit or 32-bit for Debian or Ubuntu, find the right BitTorrent Linux torrent client to download.

How do I download multiple files using wget?

Downloading Multiple Files If you want to download multiple files at once, use the -i option followed by the path to a local or external file containing a list of the URLs to be downloaded. Each URL needs to be on a separate line. If you specify - as a filename, URLs will be read from the standard input.

Is wget multi thread?

wget solution doesn't download one file in multiple threads: The options used -r is recursive, -np ( --no-parent ) — don't ascend to the parent directory, -N ( --timestamping ) — don't re-retrieve files unless newer than local. But wget would definitely work if you're downloading a mirror of a site.

How does wget command work?

Wget is a networking command-line tool that lets you download files and interact with REST APIs. It supports the HTTP , HTTPS , FTP , and FTPS internet protocols. Wget can deal with unstable and slow network connections. In the event of a download failure, Wget keeps trying until the entire file has been retrieved.


2 Answers

btdownloadheadless

SYNOPSIS
       btdownloadheadless [ option ... ] URL
       btdownloadheadless [ option ... ] filename
like image 187
John La Rooy Avatar answered Oct 26 '22 23:10

John La Rooy


You can load torrents in rtorrent from the command line.

wget terminates after a download. You can add the exit command to the on_finished event in your .rtorrent.rc.

If you need to run the application in the background, you can use the screen management utility, or the & operator.

If you want to watch the file download, you would simply omit the screen management.

Another solution is to get rtorrent to watch a directory for torrents. When a download is complete, you can specify which directory it will get moved to. To start a download, you move your file into the watch directory with your script, and check for its completion status by checking the "completed" directory for files.

like image 39
Blair Avatar answered Oct 27 '22 00:10

Blair