In this guide I will describe you some different ways to download files from RapidShare in Linux using your Premium Account. I believe it's rather boring everytime to have to visit your RapidShare page account when you click on a link in order to download a file. I will show you how to use either terminal programs or how to do it the GUI way. Of course you must have enabled the Direct Downloads option in your Premium Account options page. So let's move on!
-
Using wget
If you prefer the terminal way or in case you don't have X running you can use wget to download files from rapidshare. Rapidshare uses cookie for authentication. Therefore you must download and save the cookie which will allow you to login and download the files you want. The following step has to be done only one time. It will save the cookie in your current directory. Of course you can change it as you wish. Open a terminal and type:
wget \
--save-cookies ~/.cookies/rapidshare \
--post-data "login=USERNAME&password=PASSWORD" \
--no-check-certificate \
-O - \
https://ssl.rapidshare.com/premzone.html \
> /dev/null --save-cookies defines the location the cookie will be stored
--post-data provides the login form with your account's data
--no-check-certificate don't validate the server's certificate
-O downloads the html page to get the cookie and then it deletes it by redirecting it to /dev/null
Of course you must replace USERNAME and PASSWORD with your account details.
**Note: If you are using a wget prior to 1.10.2 the --no-check-certificate option is not needed.
Now each time you want to download a file you just have to type:
wget -c --load-cookies ~/.cookies/rapidshare url
However this is incovenient if you have multiple files to download. In that case we will create a script to automate the job. Create a new text file and paste the following lines:
#!/bin/bash
for url in `cat $1`
do
wget -c --load-cookies ~/.cookies/rapidshare $url
done
Save it as downloader.sh and exit. Next we must make it executable, so type:
chmod +x downloader.sh
Now copy all the links of the rapidshare files you want to download and paste them in a file named urls the one under the other.
To download them one by one type:
./downloader.sh urls
-
Using aria2c
Another program you can use from your terminal is aria2. It supports multiple files download and it also splits each file in multiple parts for faster downloading. Moreover you can resume the download any time you want just by typing the same command again. Install it from your distribution's Package Management System and run it like this:
aria2c --http-user=USERNAME --http-passwd=PASSWORD -i urls -j 2 -s 4
-i urls urls is a text file containing all the links of the the files you want to download one under the other
-j 2 number of simultanious downloads (default value is 5)
-s 4 number of connections for each file
-
For KDE users
First you must install kget, which is a download manager for KDE. Next if you are using Konqueror as your web browser just log in your rapidshare account and save the cookie when prompted. Now you can easilly download any rapidshare file with kget. It will automatically find your cookie and download it as a premium user.
If you are using Firefox as your web browser you need an addon called flashgot. Install it from here . Next open Konqueror and login your Premium Rapidshare account and select to save the cookie. Now when you want to download a single rapidshare fiile right click on it and select "FlashGot Link" or if you want to download multiple files select them all, right click on them and choose "FlashGot Selection". They will all be added in kget.
-
For GNOME users
wget \
--save-cookies ~/.cookies/rapidshare \
--post-data "login=USERNAME&password=PASSWORD" \
--no-check-certificate \
-O - \
https://ssl.rapidshare.com/cgi-bin/premiumzone.cgi \
> /dev/null Rapidshare cookie will be saved in ~/.cookies/rapidshare. Next install flashgot extension for Firefox from here . After that restart Firefox and go to Tools -> FlashGot -> More Options... and in the General tab select "Built in" as Download Manager and click the Add button.

Finally set the Executable path, Command line arguments template and Show in context menu as in the screenshot below. Now each time you want to download a file just right click on it and choose FlashGot Selection.

Add this page to your favorite Social Bookmarking websites
Set as favorite
Email this
Hits: 80765
Trackback(0)
TrackBack URI for this entryComments (35)
Subscribe to this comment's feedi dont have a premium account
and how we can download if we dont have a premium account? what will we do?
...
hiya ive just started using linux and having some difficulties. i have done everything u explained here.im using gnome btw. all the settings are correct but when im tryin to save my cookies it says so such file or dir exists. i have checked my cookies and rapidshare is definetely there.so my question is how come that the terminal says it doesnt exist when i can see it clerly does? thank you 4 your help in advance.
...
Hey larababa. Have you followed the "for gnome users" part of the guide or the first one with "wget"?
I didn't understand where you got the error. Do you have a directory named .cookies inside your home directory? It is hidden. In which directory did you check for the rapidshare cookie?
I didn't understand where you got the error. Do you have a directory named .cookies inside your home directory? It is hidden. In which directory did you check for the rapidshare cookie?
...
@axel
i am also getting the same problems as larababa, using the "for gnome users" part of the guide.
checked my home directory and the .cookies directory does not exist.
at the end of the process i get this:
any help would be great
i am also getting the same problems as larababa, using the "for gnome users" part of the guide.
checked my home directory and the .cookies directory does not exist.
at the end of the process i get this:
Cannot open cookies file `/root/.cookies/rapidshare': No such file or directory
any help would be great
...
I see. There is one more command I should add to the guide.
mkdir ~/.cookies
Type this first and then the wget command.
mkdir ~/.cookies
Type this first and then the wget command.
...
here's another good tutorial to download files from rapidshare with in linux:
http://fedoracoreproject.blogspot.com/2009/03/linux-command-line-tool-to-download.html
http://fedoracoreproject.blogspot.com/2009/03/linux-command-line-tool-to-download.html
download only HTML pages
Hi,
I used your script, but I've got only HTML pages (not files) from rapidshare (HTML pages with buttons to free or premium download)
Do you know how to download files ?
Thanks a lot.
I used your script, but I've got only HTML pages (not files) from rapidshare (HTML pages with buttons to free or premium download)
Do you know how to download files ?
Thanks a lot.
...
Hi venda. Although I write this in the beginning of this tutorial I think I should put it in bold to make it more noticeable.
...
I have not tried axel. I am pretty satisfied with kget at the moment.
As I understand from axel's site currently it doesn't officially support loading of cookies. A patch is submitted but it hasn't been added to the stable package. You can read more and apply the patch on your own here: axel firefox cookie support
As I understand from axel's site currently it doesn't officially support loading of cookies. A patch is submitted but it hasn't been added to the stable package. You can read more and apply the patch on your own here: axel firefox cookie support
r434rf
wget --auth-no-challenge --user=USERNAME --password=PASSWORD -i rs.txt
make a rs.txt file in a dir and put the rs links in it then excecute this cmd
make a rs.txt file in a dir and put the rs links in it then excecute this cmd
:)
Nice tutorial im having my NAS box thats running busy box download the files it seems to be much much faster than old style browser downloads
Thanks
@easier wget way:
Nice one!!
For some reason aria2c doesn't work on my Desktop anymore [only on my server] and wget with a cookie never worked.
That's a nice tip, withe --auth-no-challenge option, works a treat on my desktop!
Thanks again.
Nice one!!
For some reason aria2c doesn't work on my Desktop anymore [only on my server] and wget with a cookie never worked.
That's a nice tip, withe --auth-no-challenge option, works a treat on my desktop!
Thanks again.
...
I was looking for an an easy to use download manager for rapidshare and the like and ran across this:
http://www.econowics.com/linux...tu-linux/
Being a linux noob..I'm running Mint 7..I found this easy to install and use..for paid and free account of many hosting sites...works great!
http://www.econowics.com/linux...tu-linux/
Being a linux noob..I'm running Mint 7..I found this easy to install and use..for paid and free account of many hosting sites...works great!
...
Sorry the link didnt post above..program is called Tucan..You can download Tucan Manager from Getdeb.net
http://www.getdeb.net/app/Tucan
http://www.getdeb.net/app/Tucan
...
Thank you for the info guys. I'll check tucan. However since I am using KDE4 I am pretty satisfied with kget.
rapidshare script for free users
Hi, thanks for the script.
Here's a small linux/windows rapidshare download script which works for free users:
http://sniper11powers.blogspot...cript.html
Hope you like it too
Here's a small linux/windows rapidshare download script which works for free users:
http://sniper11powers.blogspot...cript.html
Hope you like it too
...
Thanks for the script John. I'll check it as soon as possible.
For the time being I am pretty satisfied with Firefox, flashgot and kget!
For the time being I am pretty satisfied with Firefox, flashgot and kget!
...
I guess you mean multiple files from Rapidshare, right? Read the paragraph about Firefox in KDE users.
Linux Script to Download RapidShare Link's into TorrentFlux
Paste this in to a file.
don't forget to chmod 700 in order to execute
don't forget to chmod 700 in order to execute
#!/bin/sh
#########################################
#Script Setings - Change as needed. #
#########################################
export tdir='/usr/local/torrentflux' #Directory where TorrentFlux downloads are stored.
export user='root' #TorrentFlux User account to download files to.
export rsuser='99999999' #RapidShare Username (you must be premium user)
export rspass='passowrd' #RapidShare Password
#########################################
# Do not change anything below here. #
#########################################
export dtime=$(date +"%m-%d-%y.%H.%M.%S")
export urls='urls.'$dtime
export sdir=$(pwd)
export udir=$sdir'/downloadurls'
function ConfirmOrExit() {
while true
do
echo -n "Please confirm (y or n) :"
read CONFIRM
case $CONFIRM in
y|Y|YES|yes|Yes) break ;;
n|N|no|NO|No)
echo Aborting - you entered $CONFIRM
exit
;;
*) echo Please enter only y or n
esac
done
echo You entered $CONFIRM. Continuing ...
}
function dname() {
while true
do
echo '----- Enter the name of the Directory for the new torrent. ------'
echo '----- Be sure to use the proper syntax for directories in Linux. ------'
read dirname
echo "###############################################"
echo "You Entered: $dirname"
echo "###############################################"
echo '----- Is this Correct (Y or N) ------'
read CONFIRM
case $CONFIRM in
n|N|no|NO|No) ;;
y|Y|YES|yes|Yes)
break
;;
exit) exit
;;
*) echo 'Please enter only "Yes" or "No"'
esac
done
}
function setcookie() {
echo '############################'
echo 'Setting RapidShare Cookie'
echo '############################'
echo '---------------------------'
mkdir -p ~/.cookies
wget
--save-cookies ~/.cookies/rapidshare
--post-data 'login='$rsuser'&password='$rspass
https://ssl.rapidshare.com/cgi-bin/premiumzone.cgi
< /dev/null
}
function downloadrs () {
for url in `cat $udir/$urls`
do
wget -c --load-cookies ~/.cookies/rapidshare $url
done
}
function setudir() {
echo '---------------------------'
echo "Setting up Directories"
echo '---------------------------'
mkdir -p $udir
echo '######################################################
#######'
echo "The current time stamp is "$dtime
echo "The working URL file will be "$udir'/'$urls
echo '######################################################
#######'
ConfirmOrExit
}
function addurls () {
echo " #######################################################
#####"
echo "## Next, you will need to paste the list of URL's into ##"
echo "## the VI editor. Consult VI documentation for info on ##"
echo "## how to use VI. Don't forget to Write/Quit when done. ##"
echo " #######################################################
#####"
ConfirmOrExit
vi $udir'/'$urls
}
setcookie
setudir
dname
addurls
clear
echo " #######################################################
##############"
echo "## Now we will Download the list of URL's into the TF Directory. ##"
echo " #######################################################
##############"
cd $tdir'/'$user
mkdir $dirname
chmod 777 $dirname
cd $dirname
downloadrs
chmod 777 *
ls -l -h
...
Interesting script jcjoey! I haven't used torrentflux before but I believe your script is helpful.
Thanks!
Thanks! ...
Why u dont using jdownloader from http://jdownloader.org/download ? It is perfect for free an premium users for all host sites.
...
When I wrote this guide I didn't know jdownloader. I've heard a lot of people using it. Nonetheless I am pretty happy with kget in my KDE.
Tucan
The main reason I would use not to use Ubuntu in the past for all my premium rapidshare downloads, was I did not have enough knowledge of the software available. I have collected a few applications suitable for ubuntu and posted them on my blog. I hope this helps someone. http://ubuntudan.blogspot.com/...nager.html
Thank you for this
This article was perfect. It worked perfectly for me, and I'd been looking for something like this.
Write comment