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.
Download torrents on Linux. Supporting 64-bit or 32-bit for Debian or Ubuntu, find the right BitTorrent Linux torrent client to download.
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.
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.
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.
btdownloadheadless
SYNOPSIS btdownloadheadless [ option ... ] URL btdownloadheadless [ option ... ] filename
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With