Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to do something simular to the following:

wget -e robots=off --no-clobber --no-parent --page-requisites -r --convert-links --restrict-file-names=windows

However, the page I'm downloading has remote content from a domain other than It was asked of me to download that content too. is this possible with wget?

share|improve this question
up vote 1 down vote accepted

add -H or --span-hosts (same thing)

-H, --span-hosts go to foreign hosts when recursive.

share|improve this answer
You are a genius! For some reason I looked right over that one when I was looking through the man file. – General Redneck Aug 12 '11 at 13:39
@General Redneck I have a file for various commands and when I find a new switch I jot it down 'cos so much in the man pages aren't relevant to me and so man doesn't refresh my memory very well. You can use -k(convert links) -p(images/page requisites) e.t.c. easier to remember. there is also a wget mailing list if really stuck, questions there are really tough I can't answer those. Was a fluke that I could answer yours! A good way to learn wget, and I haven't done this yet, is on a local web server simple pages. I did once hear curl is better than wget. – barlop Aug 12 '11 at 14:33
Actually this worked perfectly and did exactly what I needed it to. I personally like verbose commands because in my mind, it's easier to remember. Thus the reason they have both styles I guess. I'll defiantly take your advice if/when I have more problems. I agree, I've heard curl was better, however, I first started the problem with wget and was apparently one option off :P, so finishing it wasn't a big deal. – General Redneck Aug 12 '11 at 18:25

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .