Tuesday, March 22, 2005

Command line BitTorrent client for Linux

According to this post at Yahoo News " A third of all traffic on the internet is .torrent orignated ". How much of that legit content sharing / distribution ??

BitTorrent released a command line based client for Linux and it works well with python 2.4 and it is really useful if you wanna download a file remotely via a ssh session.

You can download python based linux Command line BitTorrent from http://www.bittorrent.com/

Once downloaded just extract remember to use Python 2.4 (thought it should work with old 2.3.xx python with some warning )

Simply run btdownloadheadless.py http://www.yoururl.com/my.torrent file, for example


$ chmod +x btdownloadheadless.py
$ ./btdownloadheadless.py http://www.yoururl.com/my.torrent< $ ./btdownloadcurses.py http://torrent.dulug.duke.edu/gnome-livecd-2.10.torrent
If you get [Errno 2] No such file or directory then you need to use wget or lynx to download .torrent file to local hard drive first. For example


$ ./btdownloadheadless.py ‘http://www.mininova.org/get/some_file[222].torrent'
Then run any one of the following command to download .torrent first


$lynx ‘http://www.mininova.org/get/some_file[222].torrent'
It will ask to save the file to disk.

OR
$wget ‘http://www.mininova.org/get/some_file[222].torrent'
Then start the download as follows

$./btdownloadheadless.py some_file[222].torrent
If you get error like ‘This seems to be an old Python version which does not support detecting the filesystem encoding. Assuming 'ascii'’, then upgrade your python version to 2.4.xx.

Happy Torrent'ing to alll what i do is to call it through cron and the file gets downloaded overnight :)

Source : Vivek


Nitin :)

0 Comments:

Post a Comment

<< Home