Recursive wget

From HeepyWiki
Jump to: navigation, search

How to wget something recursively without pulling lots of unnecessary crud

-r means descend recursively

-np means never follow a link upward

-nH means don't put everything in a hostname subdir

 wget -nH -r -np

add -N to turn on timestamping, so files already stored locally will not be downloaded again unless changed.

add '-A suffix' to download only files with suffix 'suffix'

wget -nH -r -np -A gif,jpg -N