How to easilly download RapidShare files in Linux |
|
|
| Written by axel | |||||||||||||||||||||||||||||||||||||||||||||
|
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!
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/cgi-bin/premiumzone.cgi \ > /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
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
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.
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.
Did you enjoy this article? Please share it!
Set as favorite
Share This
Email This
Hits: 37994 Trackback(0)
Comments (16)
![]()
chephz
said:
|
|||||||||||||||||||||||||||||||||||||||||||||
| and how we can download if we dont have a premium account? what will we do? | |
|
report abuse
vote down
vote up
|
pre
said:
|
You can try my program for Rapidshare FREE users. http://code.google.com/p/slimrat/ |
|
|
report abuse
vote down
vote up
|
larababa
said:
|
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. |
|
|
report abuse
vote down
vote up
|
larababa
said:
| sorry mistyped it .....so when im tryin 2 save my cookies it says it does NOT exist. | |
|
report abuse
vote down
vote up
|
tyepye
said:
|
@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: Cannot open cookies file `/root/.cookies/rapidshare': No such file or directory any help would be great |
|
|
report abuse
vote down
vote up
|
fedoracore
said:
|
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 |
|
|
report abuse
vote down
vote up
|
venda
said:
|
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. |
|
|
report abuse
vote down
vote up
|
venda
said:
| Sorry guys. All I had to do was enable Direct download in my RS account. | |
|
report abuse
vote down
vote up
|
GG
said:
|
Hi, I was excatly looking for this kind of trick, thank you! GG |
|
|
report abuse
vote down
vote up
|
modo
said:
| how bout axel? can we use axel to download rapidshare file? | |
|
report abuse
vote down
vote up
|
easier wget way
said:
|
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 |
|
|
report abuse
vote down
vote up
|
Write comment
| < Prev | Next > |
|---|







