Difference between revisions of "Wget"
From Wasya Wiki
| Line 10: | Line 10: | ||
=== other === | === other === | ||
| + | <pre> | ||
-r → recursive download (follows links) | -r → recursive download (follows links) | ||
-np → no parent (won’t go above the starting directory) | -np → no parent (won’t go above the starting directory) | ||
| Line 15: | Line 16: | ||
-p → download all page assets (images, CSS, etc.) | -p → download all page assets (images, CSS, etc.) | ||
-E → save files with proper extensions (like .html) | -E → save files with proper extensions (like .html) | ||
| + | </pre> | ||
wget -r -np -k -p -E https://example.com | wget -r -np -k -p -E https://example.com | ||
Revision as of 21:51, 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 2 $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