Wget: download all files of the same type from a website

wget -e robots=off -nc -r -np --accept mp3,mobi,jpg http://randomsite.com/directory/nicethings/

This is useful to download all files you are interested in, from a public website, recursively.
The -A switch is used to filter the files to download. If you are looking for mp3 files, or mobi files, just change the file extension in the -A switch.
You can try it on the servers published onĀ /r/opendirectories.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s