Wget

From Attie's Wiki
(Difference between revisions)
Jump to: navigation, search
 
(2 intermediate revisions by one user not shown)
Line 2: Line 2:
 
===Save the cookie===
 
===Save the cookie===
 
<code>
 
<code>
wget --save-cookies ./cookie --post-data "login=USERNAME&password=PASSWORD" -O - URL > /dev/null
+
wget --save-cookies ./cookie -O - <i>URL</i>> /dev/null
</code>
+
</code><br>
 +
<br>
 +
for rapidshare.com see my [[rapidshare|script to get the cookie]]<br>
 +
 
 
===Use the cookie!===
 
===Use the cookie!===
 
<code>
 
<code>
 
wget -c --load-cookies ./cookie URL
 
wget -c --load-cookies ./cookie URL
 
</code><br>
 
</code><br>
 +
===Useful parameters===
 
<b>-c</b> is used to resume a previously started download<br>
 
<b>-c</b> is used to resume a previously started download<br>
<b>-i <i>filename</i></b> is used to read a file containing 1 URL per line
+
<b>-i <i>&lt;filename&gt;</i></b> is used to read a file containing 1 URL per line<br>
 +
<b>--limit-rate=<i>&lt;rate&gt;</i>k</b> is used to limit the download rate

Latest revision as of 21:55, 10 September 2010

Contents

[edit] Using wget to retrieve files that require you to be logged in

[edit] Save the cookie

wget --save-cookies ./cookie -O - URL> /dev/null

for rapidshare.com see my script to get the cookie

[edit] Use the cookie!

wget -c --load-cookies ./cookie URL

[edit] Useful parameters

-c is used to resume a previously started download
-i <filename> is used to read a file containing 1 URL per line
--limit-rate=<rate>k is used to limit the download rate

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox