Jan 9, 2009

Update: Rapidshare Downloader Script

From my previous post, I have only stated a single file downloader for rapidshare script. In this post, I will update you guys to be able to download a single and multiple files with a single script. Please copy the code below:

  • Create a new downloader script file:
touch downloader
  • Edit the 'downloader' file and paste this code inside it:
nano downloader
  • Now copy this code below:
  • #!/bin/bash
    if test "$1" = "-s";then
    wget -c --load-cookies ~/.cookies/rapidshare $2
    elif test "$1" = "-m";then
    for url in `cat $1`
    do
    wget -c --load-cookies ~/.cookies/rapidshare $url
    done
    elif test "$1" = "--help";then
    echo ""
    echo " ***************************************************"
    echo " ****** Rapidshare Downloader for Linux ******"
    echo " ***************************************************"
    echo ""
    echo " s - Use this flag to download single file"
    echo " Eg: ./downloader.sh -s http://files"
    echo ""
    echo " m - Use this flag to download multiple files"
    echo " by saving all links in a files and list"
    echo " it on command."
    echo " Eg: ./downloader.sh -m url.txt"
    echo ""
    echo " Get this code at http://blog.gunbladeiv.com"
    echo ""
    else
    echo "Please refer help by typing ./downloader --help"
    fi

    Now You already have a script file called 'downloader'. make it executable by running this command:
    chmod +x downloader
    For help about how to use this script, please run --help option from the script. For example:
    ./downloader --help
    Any further question, please leave it in comment area. Enjoy the day!

Bookmark This Article:

Feed Me Digg this Stumble Upon this Send this Reddit this Add to Technorati Favorites Directory of Computers/Tech Blogs Programming Blogs - BlogCatalog Blog Directory

Your Ad Here

4 comments:

Anonymous said...

Will this bypass the limitation imposed by Rapidshare on free download? At the moment, I have to keep resetting my modem to get new ip to circumvent that for more download than permitted.

Anonymous said...

Oops, sorry! I read the earlier post and realize that this requires a Rapidshare Premium Account.

Scout said...

Hi, can you write rapidshare downloader script in bash, for free rapidshare users with waiting for file function?

^^^ [e] ^^^ said...

Hi,

I really love this script, but I've done exactly as instructed, but I get an error:

cat: invalid option -- 'm'
Try `cat --help' for more information.

Is there anything that I did wrong? I'm running Ubuntu 8.10.

Regards,
Edward