bug-wget
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-wget] How to convert-links when the download has finished?


From: Giuseppe Scrivano
Subject: Re: [Bug-wget] How to convert-links when the download has finished?
Date: Mon, 31 May 2010 21:12:43 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

it can't be done directly from wget.

If the domain doesn't appear in the pages then sed or perl can be enough.

Another solution/hack can be to place the files you have downloaded on a
local web server, that handles everything as a static file, in a way
that "http://foo.com/bar/baz"; can be accessed as
"http://localhost/bar/baz"; and fool your DNS so "foo.com" points to
"127.0.0.1".  At this point it will be enough to repeat the original
wget command (and hope it will work).

Better solutions are welcome.

Cheers,
Giuseppe



Peng Yu <address@hidden> writes:

> I have download a web directory (with option --mirror --timestamping
> --no-parent). But I forget to specify the option --convert-links.
> Is there a way to post-processing the already downloaded files to
> convert the links without having to redownload all the files?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]