bug-wget
[Top][All Lists]
Advanced

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

Re: [Bug-wget] trouble with URL vs local file names


From: Andrew Cady
Subject: Re: [Bug-wget] trouble with URL vs local file names
Date: Thu, 18 Feb 2010 18:44:50 -0500
User-agent: Mutt/1.5.18 (2008-05-17)

On Thu, Feb 18, 2010 at 10:54:11AM +0100, Tobias Senz wrote:
> Heja :)
> 
> When using recursive or page requisite downloading local folders are
> created. Is there any way to switch that off without loosing the URL?
> It would make much sense to me for archival if local files were "flat"
> but including as much of the URL as possible.
> But, all files in ONE folder.

I have written a patch for wget which makes this behavior possible.  The
very use case that you describe is illustrated in the email to this list
which contains the patch:

  http://lists.gnu.org/archive/html/bug-wget/2010-01/msg00021.html

That is, after applying the patch, you can get the site saved without
any of the directory structure, with slashes in names replaced by "@",
and the internal links all fixed, using the following command line:

  wget --rename 's?/address@hidden' -r -k http://...

I have also made Debian binary packages for i386 and amd64 available
here:

  http://childrenofmay.org/software/wget-patch/

You do need to have Perl installed in /usr/bin/perl for this to work.




reply via email to

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