HTTrack Website Copier
Free software offline browser - FORUM
Subject: Re: Cgi copy - need original filenames
Author: Gina-B
Date: 10/10/2005 02:08
 
I found the post below my message elsewhere in the forum, I was able to adapt
it and to start using the "masks". I'm sorry my questions may sound basic, but
I'm not very familiar with this. I come close, but can't get this to work.
Here is what the filenames look like online: 
<http://www......bbs/records/index.cgi?read=20580>

What I need is for the filenames to be 20580.html
It seems like it should be simple.

This is where I am at: %h%p/%n%[read::::].%t
This produced a file named: index20580.html

Where did the "index" part come from? I don't want that in there, but I can't
figure out how to eliminate it from the filename. Please help,

Gina
----------------------------------
**I found this in another post on this forum, and it is similar:
> foo.com/blog.php?mod=comment&id=1089606282
> Of course what I'm really after is the number that appears
> after id= , eg 1102023563. Do I understand correctly there
> is no way to get it save the file as 1102023563.html or
> something similar?You can:

Set options / Build / Options
and enter:
%h%p/%n%[id:-:::].%t

The %[] syntax is:
%[param:before:after:notfound:empty]

param: the query string parameter name
before: what to put before, if found
after: what to put after, if found
notfound: what to put, if the parrameter is missing
empty: what to put, if the parameter is empty
 
Reply Create subthread


All articles

Subject Author Date
Cgi copy - need original filenames

10/07/2005 20:24
Re: Cgi copy - need original filenames

10/07/2005 22:54
Re: Cgi copy - need original filenames

10/09/2005 21:54
Re: Cgi copy - need original filenames

10/10/2005 02:08
Re: Cgi copy - need original filenames

10/10/2005 03:24
Re: Cgi copy - need original filenames

10/11/2005 01:34




3

Created with FORUM 2.0.11