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?/?...@?g' -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.
