..without following links like the index pages ../
or sub-directories
if you want to include sub-directories, change the -l
option to >1
, depending on how deep you want to follow the paths.
wget -r -c -np -l1 https://memory.loc.gov/master/mbrs/recording_preservation/manuals/
The URL in the example contains: Library of Congress recording preservation manuals - mostly PDF files on audio (legacy, analog) engineering/equipment; Consoles, Compressors, Pre-amplifiers, Recorders, everything you can imagine from the analog age - that's very en vouge right now in the recording scene/industry.
-r
= recursive-c
= continue (if you stopped or were stopped in between)-np
= "no parent" as recommended in https://www.gnu.org/software/wget/manual/wget.html#Recursive-Download-l1
= level (depth) set to one. change if there are sub directories you want to include. remember: parent directories are still excluded.
You may want to add an alias
for that in your ~/.bashrc
, ~/.zshrc.local
or whatever shell you prefer -- e.g. alias dlrec ..
or wget-dir
etc.
enjoy.
azet.