Downloading files from Rapidshare through shell
I’ve seen, at Viva o Linux (http://www.vivaolinux.com.br, in portuguese), a post talking about a ShellScript that downloads files from RapidShare through shell. As, sometimes, i download files from that site, i decided to try it out and it worked fine for me.
This script uses wget to download the first html page, then it gets the link to the page that contains the link to the file, download this second page, checks the timer and waits for it to finish, after it finishes, the script starts the file download. I noticed that, if the download stops, this script continues from where it stopped.
This is how it goes:
1 – Download the ShellScript:
1 | $ wget http://tokland.googlecode.com/svn/trunk/rapidshare/rapidshare-dl.sh |
2 – Set execution permission:
1 | $ chmod +x rapidshare-dl.sh |
3 – Download File:
There are two ways you can do this:
Passing the link as an argument:
1 | $ ./rapidshare-dl.sh http://link.to.rapidshare |
You can also add more than one link:
1 | $ ./rapidshare-dl.sh http://link.to.rapidshare http://another.link.to.rapidshare |
Passing a text file as an argument:
Create a text file, named links.txt for example, and put each link in a different line, like:
1 2 3 | http://link1.to.rapidshare http://link2.to.rapidshare http://link3.to.rapidshare |
Then you run the script with the text file name as an argument:
1 | $ ./rapidshare-dl.sh links.txt |
You can create a link to the script in, or copy it to, the /usr/bin directory, making it executable from everywhere:
1 | # ln -s $PATH_TO_SCRIPT/rapidshare-dl.sh /usr/bin/rapidshare-dl |
1 | # cp rapidshare-dl.sh /usr/bin/rapidshare-dl |
NOTE: This script works only in Unix-like systems.
There is also plowshare, which is another shellscript that does the same thing, and more, but i haven’t tested it yet. In the project page it says that it supports Megaupload, Rapidshare, 2Shared, 4Shared, ZShare, Badongo, DepositFiles and Mediafire, and it also uploads files to those share sites.
PlowShare Page: http://code.google.com/p/plowshare/











