Using wget to accomplish great downloading feats!

Instead of using DownThemAll and then ftping, sometimes you need to leech directly to your web host.

The perfect tool for this is wget.

Here's how to use wget to download all the zip files linked to from a given web page:

wget -A.zip -e robots=off -E -H -p -Dexample.com --random-wait -r -l inf http://www.example.com/great-files.php

The command above looks for all the links to .zip files found on the page http://www.example.com/great-files.php.

You can ignore most of the options apart from -A (file type).
-D is used to tell wget not to download files from external links, so it will only download .zip files with a path on example.com

Useful tools for today's modern webmaster!

No comments:

Post a Comment