wget-command for downloading more than one page

does anybody know the exact command I have to use to download part of a website that consists of more than one page (with wget). Example:

I want to download a certain page which exists within a forum. There´s an article dealing with "stderr" within this forum.

The address is : "" AND "" as it consists of two pages.

What I want to do is download both pages with one command, but not the entire forum. How do I go about typing the correct command?

System: Linux/Lubuntu 16.04.2 LTS, 64bit

1 Answer

wget -Ek 

The last bit {,2} is a brace expansion which instructs wget to download:

To download pages 3 through 6, use either of these commands:

wget -Ek
wget -Ek 

And there are a couple of really useful wget options: -E and -k.

-E: If a file of type "text/html" is downloaded and the URL does not end with the regexp `\.[Hh][Tt][Mm][Ll]?', this option will cause the suffix ".html" to be appended to the local filename.

-k: After the download is complete, convert the links in the document to make them suitable for local viewing (i.e., convert relative links to absolute links).

Please read the wget man page and manual for more information.

2

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like