Difference between revisions of "Wget"
From Wasya Wiki
(→Limit download scope) |
|||
| 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 | + | wget -r -np -k -p -E -l 1 $domain |
=== other === | === other === | ||
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