Unix and Linux network configuration. Multiple network interfaces. Bridged NICs. High-availability network configurations.


Reviews of latest Unix and Linux software. Helpful tips for application support admins. Automating application support.


Disk partitioning, filesystems, directories, and files. Volume management, logical volumes, HA filesystems. Backups and disaster recovery.


Distributed server monitoring. Server performance and capacity planning. Monitoring applications, network status and user activity.

Commands & Shells

Cool Unix shell commands and options. Command-line tools and application. Things every Unix sysadmin needs to know.

Home » Commands & Shells

Use wget with Your Rapidshare Account

Submitted by on July 8, 2012 – 10:40 pm 6 Comments

If you have a Rapidshare premium account, you can use wget to download files. The process is two-fold: first, you need to use wget with your Rapidshare username and password to obtain and store the Rapidshare cookie; then, you can use wget with the cookie file to download a list of links.

To get you started, I put together a simple script. Save the script below as ~/ ; chmod 755 ~/ ; ln -s ~/ /usr/local/bin/wgetrs And then run it like so: wgetrs

Theis the location and name of the text file containing the list of rapidshare links you wish to download, one link per line.

Example: wgetrs user1 mypassword ~/rslinks.txt

# 2012-07-08
# Igor Os
# Usage: ./   


if [ ! -f "${linkfile}"]
    echo "Input file ${linkfile} not found. Exiting..."

for i in rapidshare_cookie_tmp rapidshare_cookie
    if [ -f ~/.${i} ]
        /bin/rm -f ~/.${i}

/usr/bin/wget -O ~/.rapidshare_cookie_tmp ""
grep "^cookie" ~/.rapidshare_cookie_tmp | awk -F'=' '{print $2}' > ~/.rapidshare_cookie

/usr/bin/wget -c --no-cookies --header="Cookie: enc=`cat ~/.rapidshare_cookie`" -i "${linkfile}" -nc

Print Friendly, PDF & Email


  • nyyankees1123 says:

    I have a rapidshare premium account. I want to download files from rapidshare using dap. But it gives only a web page when downloaded. Please help me out.

  • Michael C says:

    Is it possible to purchase a rapidshare premium account through paypal? Or is it solely with a credit card?

  • xiM Clutch says:

    I am using someone else’s rapidshare premium account. The owner gave it to me for 3 days to use it, but I wouldn’t like him to find out what have I downloaded. It’s a bit personal, you see…

  • Kaylla says:

    How do you download as many files (EX: Video Files) you want from a file share site (Rapidshare, Rapidgator, etc) without buying a premium account ?

  • Hotshot t says:

    I have Rapidshare Premium Account but when I download few files from Rapidshare with Internet Download Manager, it doesn’t download more files.
    And when I open link of the file with the browser, it doesn’t open.
    I should restart the computer to download the files.
    What is the problem?

  • Victoria T says:

    Download speed for Rapidshare premium and free membership isn’t any different. I can’t download two or more files at a time. Not a problem. I have to wait minutes before each download. Not a problem. I would consider buying the RS premium account only if it is much speeder than free membership.

    Is there anything else I can get for the premium membership?

1 Pingbacks »

Leave a Reply

%d bloggers like this: