-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Jacobo Romero Manrique wrote: > Hi, > the diff attached is only a proof of concept since it's a quick hack, but is > working for my needs. > It adds an "--transform-html" option which specifies a shell command to use > as a preprocessor on the downloading html files. > > I wanted to download a site with a url which had a domain redirecting to it. > However, the domain expired in the past and the site relied all his links on > the domain, so the site became unusable. > > Solution with the option I'm proposing: > wget -rkpE --transform-html "sed s/www.bad-domain.net/www.good-url.net/g" > www.good-url.net A neat concept. We've had some thought already about applying filters in various places, and we'll probably add support for it at some point; but we'll probably punt it until Wget 2.0. - -- Micah J. Cowan Programmer, musician, typesetting enthusiast, gamer... http://micah.cowan.name/ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHgzHD7M8hyUobTrERAsx3AJ9a2k8I4kD96SHx50a2q1M/DNrr1wCeLyKw MqmaLTmooTt3qjtrBuBd+2w= =9hxH -----END PGP SIGNATURE-----