Use wget to Recursively Download all Files of a Type, like jpg, mp3, pdf or others

Written by
Date: 2012-04-29 13:49:00 00:00

If you need to download from a site all files of an specific type, you can use wget to do it.

Let's say you want to download all images files with jpg extension.

wget -r -A .jpg http://site.with.images/url/

Now if you need to download all mp3 music files, just change the above command to this:

wget -r -A .mp3

The same can be applied to any other type of file. Movies, music, images, and others.

Be respectful with owner's rights and with the bandwidth of the site.