Fri 19 Sep 2014 01:51:09 PM UTC, comment #1:
No, I'm afraid you've misunderstood the option. I'm quoting here from the Wget man page:
"
To download a single HTML page (or a handful of them, all specified on the command-line or in a -i URL
input file) and its (or their) requisites, simply leave off -r and -l:
wget -p http://<site>/1.html
Note that Wget will behave as if -r had been specified, but only that single page and its requisites will be downloaded. Links
from that page to external documents will not be followed. Actually, to download a single page and all its requisites (even if
they exist on separate websites), and make sure the lot displays properly locally, this author likes to use a few options in
addition to -p:
wget -E -H -k -K -p http://<site>/<document>
To finish off this topic, it's worth knowing that Wget's idea of an external document link is any URL specified in an "<A>"
tag, an "<AREA>" tag, or a "<LINK>" tag other than "<LINK REL="stylesheet">".
"
As you can see, -p behaves just like -r with certain restrictions. As a result, even the --page-requisites option will NOT go to a different domain to download the requisites. If you want it to follow links to different domains, you must issue the -H parameter to span hosts.
|