Difference between revisions of "Wget"
From Wasya Wiki
| Line 7: | Line 7: | ||
wget -r -np -k -p -E -l 2 $domain | 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 | ||
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