Wget
From Attie's Wiki
(Difference between revisions)
Line 2: | Line 2: | ||
===Save the cookie=== | ===Save the cookie=== | ||
<code> | <code> | ||
− | wget --save-cookies ./cookie --post-data "login=USERNAME&password=PASSWORD" -O - | + | wget --save-cookies ./cookie -O - <i>URL</i>> /dev/null |
+ | </code><br> | ||
+ | <br> | ||
+ | for rapidshare.com<br> | ||
+ | <code> | ||
+ | wget --save-cookies ./cookie --post-data "login=<i>USERNAME</i>&password=<i>PASSWORD</i>" -O - https://ssl.rapidshare.com/cgi-bin/premiumzone.cgi > /dev/null | ||
</code> | </code> | ||
===Use the cookie!=== | ===Use the cookie!=== |
Revision as of 21:25, 4 September 2010
Using wget to retrieve files that require you to be logged in
Save the cookie
wget --save-cookies ./cookie -O - URL> /dev/null
for rapidshare.com
wget --save-cookies ./cookie --post-data "login=USERNAME&password=PASSWORD" -O - https://ssl.rapidshare.com/cgi-bin/premiumzone.cgi > /dev/null
Use the cookie!
wget -c --load-cookies ./cookie URL
-c is used to resume a previously started download
-i filename is used to read a file containing 1 URL per line