Web lists-archives.com

Re: Problems with wget




-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Mon, Feb 26, 2018 at 07:00:24AM -0600, Richard Owlett wrote:

[...]

> >Ad (2) you want option -k. Quoth the man page:
> >
> >        -k
> >        --convert-links
> >            After the download is complete, convert the links in
> >            the document to make them suitable for local viewing...
> 
> 
> However, that usage causes wget to complain saying:
> >Cannot specify both -k or --convert-file-only and -O if multiple URLs are given, or in combination
> >with -p or -r. See the manual for details.

The culprit is most probably -O. You are downloading several
files: wget can't make one big html file out of that mess
(at least not without breaking anything). If you let go of
option -O, wget will create a directory hierarchy mirroring
the URL hierarchy, and -k will take care of fixing internal
links. At the "leaves" the links have to point outwards,
of course...

cheers
- -- t
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAlqUBwgACgkQBcgs9XrR2ka3zACfdzi+3OIzbY0F1u/s8xp4uK0u
jTIAn0h22+6oRsa61QzosigEkUUfIjAP
=77cE
-----END PGP SIGNATURE-----