How to download from Rapidshare.com premium using wget

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


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

    First you need to go to the Settings of your account and set a daw in front of the line
    Direct downloads, requested files are saved without redirection via RapidShare
    this will allow you to use links directly without going to the rapidshare website.

    Since the file hosting uses cookies for authorization, they must be downloaded. This action is performed once by the following command: Now, when downloading, we indicate to wget that these cookies should be used. 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 with one link per line, and then execute And last. Very often on sites you can find links to a file hosting of the form

    wget \

    --save-cookies ~/.cookies/rapidshare \

    --post-data "login=USERNAME&password=PASSWORD" \

    -O - \

    ssl.rapidshare.com/cgi-bin/premiumzone.cgi \

    > /dev/null






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



    wget -c --load-cookies ~/.cookies/rapidshare -i /путь/к/файлу



    суперфайл_часть_1

    суперфайл_часть_2

    ...

    суперфайл_часть_100



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

    You can do otherwise: create a bookmark in the browser with the following address: When you click on it, a tab will open that contains all the links from the page, find the links among them, select and paste everything in bulk to the file for further batch downloading. ЗЫ yes I'm sure that there is a special Firefox extension for this, but there are other browsers, and besides, sometimes when new versions of Firefox are released, extensions will temporarily stop working.

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




    Also popular now: