Difference between revisions of "Linux command: wget"

From RHS Wiki
Jump to navigation Jump to search
m (Protected "Linux command: wget" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)))
m
Tag: visualeditor
 
Line 2: Line 2:
 
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
! Parameter !! Description
+
!Parameter!!Description
 
|-
 
|-
| -r, --recursive || Download recursively  
+
| -r, --recursive||Download recursively
 
|-
 
|-
| -l, --level=depth || Specify recursion maximum depth level
+
| -l, --level=depth||Specify recursion maximum depth level
 
|-
 
|-
| -x ||  
+
| -x||
 
|-
 
|-
| -m ||  
+
| -m||shortcut for -N -r -l inf --no-remove-listing.
 
|-
 
|-
| -H ||
+
| -H||
 
|-
 
|-
| -p ||
+
| -p||
 
|-
 
|-
| -k ||  
+
| -k||make links in downloaded HTML point to local files.
 
|}
 
|}
 +
 +
=== Download page ===
 +
<syntaxhighlight lang="text">
 +
wget -m -k -E [url]
 +
 +
-E, --html-extension        save HTML documents with `.html' extension.
 +
-m,  --mirror            shortcut for -N -r -l inf --no-remove-listing.
 +
-k,  --convert-links      make links in downloaded HTML point to local files.
 +
</syntaxhighlight>

Latest revision as of 12:03, 24 May 2019

wget -xr website.com
Parameter Description
-r, --recursive Download recursively
-l, --level=depth Specify recursion maximum depth level
-x
-m shortcut for -N -r -l inf --no-remove-listing.
-H
-p
-k make links in downloaded HTML point to local files.

Download page

wget -m -k -E [url]

-E, --html-extension        save HTML documents with `.html' extension.
-m,  --mirror             shortcut for -N -r -l inf --no-remove-listing.
-k,  --convert-links      make links in downloaded HTML point to local files.