Downloading Web Sites with wget

The wget utility allows you to download Web pages—and whole Web sites—to use offline. You just specify a URL and how many levels (links away from the starting page) you want to download, and let wget do its thing (as in Code Listing 12.4). Then you can use the Web pages when you’re not connected to the Internet, like while on an airplane, in a hotel, or in a waiting room, for example.

Code Listing 12.4. You can use wget to download as much of the Web as you can handle.
jdoe /home/jdoe $ wget http://www.cnn.com/ -18:07:51- http://www.cnn.com/ => 'index.html' Resolving www.cnn.com... don e. Connecting to www.cnn.com[64.236.24.4]: →80... connected. HTTP request sent, awaiting response... →200 OK Length: unspecified ...

Get Unix Third Edition: Visual Quickstart Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.