Jan 1, 2009

Download Rapidshare using Wget

Well, I've been looking for long time since Hardy Heron, but it is not yet written. Then after Intrepid Ibex comes out, walla~! there is a script which could be used to download rapidshare files(by using premium accounts) by using lightweight download manager built in almost all Linux Machine - WGET.

Well, to get this started - for those who still using the old version of Ubuntu such as Feisty Fawn, Gutsy Gibbon or Hardy Heron, you might wanna check your WGET version. Make sure it is 1.10.2 above else you wont be able to use this tutorial.

First, you need to make a folder for this. Better to make a new folder to organized all your rapid download files in one spot. After creating a folder, move into the new folder and we are about to begin the process there. Here is the code to make and move into the new folder:
mkdir rapiddownload ; cd rapiddownload
After that, create a script file with .sh at the end. For example getcookies.sh:
touch getcookies.sh
Then we are going to copy and paste a command to get and save cookies into ~/.cookies/rapidshare file. To do this, all you need to do is copy and paste the code below into your getcookies.sh file. To open text editor just use command below:
nano getcookies.sh
The code you need to copy and paste is below(make sure you change USERNAME and PASSWORD with your own premium rapidshare information):
wget \
--save-cookies ~/.cookies/rapidshare \
--post-data "login=USERNAME&password=PASSWORD" \
--no-check-certificate \
-O - \
umzone.cgi \
> /dev/null
After finish paste the code, please save and exit the editor. Make sure you save before exiting or there won't be any code inside getcookies.sh.

Then we start working on the script which you will use to download. Create a script file name download.sh:
touch download.sh
And copy the script into download.sh file. Remember to open it using your convenient text editor.
nano download.sh
And paste the script below:
wget -c --load-cookies ~/.cookies/rapidshare $1
After doing this, save and exits. We are finish with codes, so all you need to do is make it executable. To make both files executable, run 'chmod' command with '+x' flag.
chmod +x {getcookies.sh,download.sh}
TO START DOWNLOADING - To start your download, first you need to run ONCE the getcookies.sh file so that cookies will be stored and will be use by download.sh everytime you want to download from rapidshare. To run getcookies.sh below is the command:
Now to start downloading, just use this command:
./download.sh http://urls.of.your.rapidshare.download.com/whatever
So, this is it. i hope you find this tutorial useful. And before I forget, I get this information from a website named my-guides.net. They have a lot of other information about linux. Pay a visits there to learn a lot of cool things.

  • People could see your premium username and password once they hold on to your machine. So please use at your own risk.

Thank you for your unbelievable support on Negative Zero - Permission to read and write blog for nearly 4 years. Don't forget to like Negative Zero on Facebook.
Blogirific.com Blog Directory

Post(s) you might like to read :


  1. Thanks for your good post,
    I want to download several links with this script.
    is it posible to send links from one .txt file into the script?

  2. Yes Sure you can. I have made a simple script on to ease downloading single and multiple files for premium Rapidshare account. Please recheck this blog again in a few hours.

  3. Here is a referer to my Update Post:

  4. fantastic!!! I was going crazy trying to work out what to do!
    I had just updated from suse10 to 11 and wanted to "borrow" a season of californication ... ;-)
    and my old script no longer worked - looks like wget changed how it worked.
    Your cookies stuff solved the problem!!!!

  5. Try http://ineedfile.com to look for rapidshare files. I using it regularly and allways satisfied with the results
    It's redesigned now and looks much more beter. More than 7 000 000 files in their database.
    They offer search toolbars for FF and IE. They also offer search bar for your site.Enjoy.

  6. http://rapidshare.com/files/274229471/rapidshare_march_2010_acc.txt.rar

  7. I use rsfile to search rapidshare files.Its fast and results are great

  8. I was wondering how to do the same thing. I have mad a very simple script that will allow you to D/L from RS with very minimal effort:

    nano .wget-list;
    for i in `cat .wget-list` ;
    do wget -c --auth-no-challenge --http-user=**yoursername** --http-password=**Your password** $i ;
    done ;
    > .wget-list

    what this does is opens a file (.wget-list) and lets you add your links. it will then download each link with resume capability and after it is done, it will clear the list.

    if you cancel ( Ctrl+C ) you will not lose any of the links that you put into wget-list but when you re-run the script, it will pick up where it left off.

    you need to create the file .wget-list in the same dir as the scirpt and you must have premium UN and PW for rapidshare.

    hope this helps.

    **Thanks to NAS for the help**