Difference between revisions of "Wget"

From Wasya Wiki
Jump to: navigation, search
(Limit download scope)
 
(2 intermediate revisions by the same user not shown)
Line 6: Line 6:
 
-l 2 → only go 2 levels deep
 
-l 2 → only go 2 levels deep
  
   wget -r -np -k -p -E -l 2 $domain
+
   wget -r -np -k -p -E -l 1 $domain
 +
 
 +
=== other ===
 +
 
 +
<pre>
 +
-r → recursive download (follows links)
 +
-np → no parent (won’t go above the starting directory)
 +
-k → convert links for local viewing
 +
-p → download all page assets (images, CSS, etc.)
 +
-E → save files with proper extensions (like .html)
 +
</pre>
 +
 
 +
  wget -r -np -k -p -E https://example.com

Latest revision as of 21:52, 3 April 2026

 wget --mirror --convert-links --adjust-extension --page-requisites --no-parent $domain

Limit download scope

-l 2 → only go 2 levels deep

 wget -r -np -k -p -E -l 1 $domain

other

-r → recursive download (follows links)
-np → no parent (won’t go above the starting directory)
-k → convert links for local viewing
-p → download all page assets (images, CSS, etc.)
-E → save files with proper extensions (like .html)
 wget -r -np -k -p -E https://example.com