HTTrack Website Copier
Free software offline browser - FORUM
Subject: Re: Using original file names, instead of "hashing"
Author: Xavier Roche
Date: 08/07/2003 20:59
 
> I need to collect certain archived images.  The images 
are 
> output from the archive using a query string, in a URL 
> similar to this:
>   <http://mysite.com/ImageArchive.nsf?>>;
OpenDocument&Subject=category&Image=item1
> The only success I get is when I allow HTTrack to name 
the 
> outputs with 'M5' hashing codes, whereupon I get a 
> directory full of files named 'image5f6e.gif,' etc.
> How do I persuade HTTrack to name the link it grabs in a 
> manner that is at least similar to the link at which it 
was 
> pointed?
Use Build Options / User-defined structure ; with advanced 
variable extraction.

(extract from the man page)

"%[param:before:after:notfound:empty]  advanced variable 
extraction

-param : parameter name
-before : string to prepend if the parameter was found
-after : string to append if the parameter was found
-notfound : string replacement if the parameter could not 
be found
-empty : string replacement if the parameter was empty

all fields, except the first one (the parameter name), can 
be empty"

In your case I would suggest for example:

%h%p/%n.%t%[Image:/:.gif::]

which will produce something like:

mysite.com/ImageArchive.nsf/item1.gif

 
Reply Create subthread


All articles

Subject Author Date
Using original file names, instead of "hashing"

08/04/2003 15:54
Re: Using original file names, instead of "hashing"

08/07/2003 20:59




c

Created with FORUM 2.0.11