HTTrack Website Copier
Free software offline browser - FORUM
Subject: Re: download project
Author: JQP
Date: 07/24/2008 01:02
 
This part of the document William linked seems relevant to my renaming needs,
but I can't figure it out:

"  Details: User-defined option N
    %[param] param variable in query string

This new option is important: you can include query-string content when
forming the destination filename!

Example: you are mirroring a huge website, with many pages named as:
www.foo.com/catalog.php3?page=engineering
www.foo.com/catalog.php3?page=biology
www.foo.com/catalog.php3?page=computing
..

Then you can use the -N option:

httrack www.foo.com -N "%h%p/%n%[page].%t"

If found, the "page" parameter will be included after the filename, and the
URLs above will be saved as:

/home/mywebsites/foo/www.foo.com/catalogengineering.php3
/home/mywebsites/foo/www.foo.com/catalogbiology.php3
/home/mywebsites/foo/www.foo.com/catalogcomputing.php3

"

%h is the www.foo.com part; %p is the catalog part; %t is the file type.  What
does the /%n%[page] part do?  And what exactly does the -N part do (is it just
a naming command, or does it do more?)?
 
Reply Create subthread


All articles

Subject Author Date
download project

07/23/2008 00:57
Re: download project

07/23/2008 01:22
Re: download project

07/23/2008 17:25
Re: download project

07/23/2008 22:53
Re: download project

07/23/2008 22:59
Re: download project

07/23/2008 23:51
Re: download project

07/24/2008 00:58
Re: download project

07/24/2008 01:02
Re: download project

07/24/2008 23:19
Re: download project

07/25/2008 00:54




f

Created with FORUM 2.0.11