NerdPlanet's e-learning Blog
Nerdplanet's Blog is an elearning community site which is created to help people who have a passion about computers and in a confused state in choosing the right direction to follow for obtaining the right knowledge. Here we focus mainly on providing Tutorials on Operating systems (Windows /Linux), Networking (Routers/Firewall Configuration) and programming, which would help people to understand the basics clearly and to help them further to learn advanced concepts. We also guide people who are in need of materials to learn but who could not afford to pay a price for it. We do this because we believe that Knowledge is power and the Knowledge should be free!. This would help to build a healthy community of IT Professionals.
'How to download rapidshare files using wget' post
Here in this tutorial i am going to discuss about how to use wget to download files from rapidshare easily. #################################################################### First Step:- The first step is to analyze how a rapidshare download works. The concept behind it is for every download The command for downloading the cookie from rapidshare site is:-
As you can see from the above command there are two variable which you have to pass and they are once the command is executed what happens is that it creates a file called cookies.txt which contains your # HTTP cookie file. .rapidshare.com TRUE / FALSE 1236540000 user 1234567-%72%61%70%31%32%33 If you dont see similar information in your cookie either your username or password is wrong. Awrite now, we are going good and we have downloaded the cookie to our system. the next step is downloading. To download we must have the cookies.txt file in the same location from where the wget command is to be run. for example if you are going to run the command from /root home directory then you should have the cookies.txt file in the same location or else it wont work. Before proceeding to downloading part we have got a second step to be configure in the rapidshare site. Second Step:- Go to the rapidshare.com site and click on premium login, once you logged in you should see your account settings. In that click the options. options > check direct downloads <-------- enable this option else it wont work options > preffered mirror system > random selection <---------- enable this option for both mirrors Then click on the save button, thats it you are done. Awrite we have approached the final step for downloading. Thats the third step:- Third step:- The command for downloading the files from rapidshare using wget is
One thing to remeber is you should not leave redundant space between the words, and it should be as exactly as typed above. The wget command loads the cookies.txt file and starts your download. This should work fine, but it is really tedious to copy paste the above command every time with new link. so we make our job easier by automating the whole process using a bash script. Final Step:- Here am going to explain how the script does the job . The script uses positional parameters to get the file name which contains only the links in it and it automatically downloads the files with the links you have provided. first lets see whats there in the script. How to run the script.
or if you have . set in your path then you can directly run as
You can download my script which does all this job from first to last on it own or you can write yours on your own. DOWNLOAD: Rar Format Click here or Zip Format Click here The Scirpt should work fine. if you have any issues with the script please leave your comments and i will try to fix it. This script works only for rapidshare.com links if you want to make it work for rapidshare.de links you have to alter the cookie download links in the first step. The last thing is if you want to download movies,songs, apps or anything from rapidshare use this trick try a google search with string “rapidshare moviename” that should give you n no of links. you can download as many files as you want so easily with this method. I have also provided a sample link.txt file along with the script which is just a text file which contains links one after the other in separate lines. So we have reached the end of this tutorial. Use it at your own risk i am not responsible for downloading any illegal stuff from the internet using this trick. Happy downloading and have fun. cheers! You must be logged in to post a comment. |