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
Bookmark
Email This
Hits: 21015 Comments (2)
![]()
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
|
Write comment
| < Prev | Next > |
|---|







