Hi there, just like to inform you guys that you did a great job for site scooper...
 
I've got a feature request though.. I use sitescooper daily with my wince iPaq box... to get this done, I use the -mhtml of course, one problem I find is that I have to use the file explorer and click on the so called ${site}.html file so that I can view it with pocket explorer.. I then found out that is this rather tedious, when I have a Palm (with Isilo), it's easy to navigate thru the databases...
 
To solve my problem I add the following piece of code after $scoop->finish (); and before $ui->cleanexit (); in sitescooper.pl
 
# --------------------------------------------------------------------------
use File::Glob ':glob';
use CGI::Pretty;
 
chdir ("C:/My Documents/sync My Documents/scoops");
my @file_list = bsd_glob('*');
 
my $q = new CGI;
my $mytxt = $q -> start_html({-title=>"Scooped Sites"});
my $directory;
my $link_title;
 
foreach $directory (@file_list) {
 $link_title = $directory;
 $link_title =~ s/_/ /g ;
 $mytxt .= "<br>".$q -> a({-href=>"$directory/$directory.html"},"$link_title");
}
 
$mytxt .= $q -> end_html;
 
open ( MYFILE , "> index.html");
print MYFILE $mytxt;
close ( MYFILE );
# --------------------------------------------------------------------------
 
This will create a nice index.html file in the installed directory... Of course the values are hard coded to suite my needs and I don't know perl that well to integrate such code into sitescooper sources... So this is my feature request, a -index (or -generate-index) option for people scooping in -mhtml mode..

Reply via email to