WGET Download specific folders under an apache directory -
i want download folders under same directories using wget
, here structure of apache
directory.
example.com/main/eschool/photoalbum/album/2008-10-13-citieneducationcenter/ example.com/main/eschool/photoalbum/album/2009-11-12-snfkdgjndfk/ example.com/main/eschool/photoalbum/album/2012-10-9-dsngosdgndfk/
...
it found there pattern:
example.com/main/eschool/photoalbum/album/20*
, possible download folders?
if want download under example.com/main/eschool/photoalbum/album/
, not above it, can use --recursive
, --no-parent
options:
wget --no-parent --recursive http://example.com/main/eschool/photoalbum/album/
that download below album
directory. if want limit how deep wget
dives subdirectories, can specify --level
option:
wget --no-parent --recursive --level=3 http://example.com/main/eschool/photoalbum/album/
that drill down 3 subdirectories below album
.
however, neither of these methods filter name – blindly download everything in directory, , subdirectories. if want more control (e.g. download albums beginning 20*
), you'll have use shell script, or scripting language.
Comments
Post a Comment