2007.08.26 06:51 rapidshare and wget

Sometimes I want to download something from rapidshare using wget from some machine, that has only command line (no GUI). This way when I can't download from my IP (I am behind NAT and often somebody else is downloading from the same IP) I can SSH to some shell account and download from there. This is how I do it:

(1) Imagine the link to file that we want to download is http://rapidshare.com/files/37600316/Norman_Davies_-_Powstanie_44.part11.rar . Download it:

$ wget http://rapidshare.com/files/37600316/Norman_Davies_-_Powstanie_44.part11.rar
Inside what you downloaded find something like:
<form name="dl" action="http://rs71.rapidshare.com/files/37600316/371303/Norman_Davies_-_Powstanie_44.part11.rar" method="post">
Remember this URL.

(2) Do:

$ wget --post-data='dl.start=Free' http://rs71.rapidshare.com/files/37595117/Norman_Davies_-_Powstanie_44.part11.rar -O nic.html

(3) Take a look at sources of nic.html and find URL of access code - something like http://rs71.rapidshare.com/access325196.jpg

(4) Download access code and take a look at it (you can do it from different IP):

$ wget http://rs71.rapidshare.com/access325196.jpg

(5) Take a look at sources of nic.html and find such fragment:

<form name="dl" action="http://rs71tl2.rapidshare.com/files/37595117/325196/Norman_Davies_-_Powstanie_44.part11.rar" method="post">
Remember this "action" parameter.

(6) Finally, download the file:

$ wget --post-data='accesscode=u8kw' http://rs71tl2.rapidshare.com/files/37595117/325196/Norman_Davies_-_Powstanie_44.part11.rar
As you can see, in this command in "--post-data" I gave the access code I read from the image nad as the URL I gave the "action" parameter which I found in nic.html. It works.



komentarze:

ksywa:

tu wpisz cyfrę cztery: (to takie zabezpieczenie antyspamowe)

komentarze wulgarne albo co mi się nie spodobają będę kasował


powrot na strone glowna

RSS