📜 ⬆️ ⬇️

How to download from Rapidshare.com premium using wget

Recently, in desperation to type a rating on torrents.ru, I purchased a Premium account on the famous rapidshare.com file hosting service. This purchase, made with the help of Visa, was not without tricks, for the first time in my life they called me from two banks, checking whether I really went crazy and decided to buy a premium account and it took several days, and not several minutes as usual, but yes it’s not about it.
After the purchase I was asked to enter the login and password of the account in the Download master and forget about the problems. What if I mostly use linux and love wget?


This task turned out to be non-trivial, but rather easily solved.

First you need to go to the Settings of your account and check the box next to
Direct downloads, requested files are saved via redidShare
This will allow you to use the links directly, without going to the rapidshare site.
')
Since the file sharing service uses cookies for authorization, they need to be downloaded. This action is performed once by the following command:

wget \<br>
--save-cookies ~/.cookies/rapidshare \<br>
--post-data "login=USERNAME&password=PASSWORD" \<br>
-O - \<br>
ssl.rapidshare.com/cgi-bin/premiumzone.cgi \<br>
> /dev/null<br><br>


Now when uploading, we indicate to wget that these cookies should be used.

wget -c --load-cookies ~/.cookies/rapidshare URL

As a rule, large files are laid out on rapidshare broken into many parts. In this case, it is more convenient to download the list. The list of links must be copied to the file one line per line, and then execute

wget -c --load-cookies ~/.cookies/rapidshare -i ///

And the last. Very often on sites you can find links to the file sharing type

__1<br>
__2<br>
...<br>
__100<br>


It is very tiring to click on each such line with the right mouse button to select from the menu “copy link”, open a text editor and paste it there.

You can do otherwise: create a bookmark in your browser with the following address:

javascript:(function(){var l=document.getElementsByTagName('a');var s='';var c=0;for(var i=0;i<l.length;i++){if(l[i].href){s+='<a href="'+l[i].href+'">'+l[i].href+'</a> <br>';c++;}}var w=window.open('','l','');w.document.open();w.document.write(s+'Total: '+c+' links.');w.document.close()})()


When you click on it, a tab will open, on which there will be all links from the page, find the necessary ones among them, select and paste everything into a file for further batch upload.
Threat and yes, I am sure that there is a special Firefox extension for this, but there are after all other browsers, and in addition sometimes when new versions of Firefox are released, the distributions temporarily stop working.

Source: https://habr.com/ru/post/28400/


All Articles