Skip to main content.
home | support | download

Back to List Archive

Trying to run spider.pl with self-defined config file...

From: Justin Tang <justin.tang(at)not-real.positionresearch.com>
Date: Sat Mar 06 2004 - 01:14:12 GMT
Hi:
  I tried to run the following config file for spider.pl, but I got no =
result.  Is there something wrong with my config file? This the command =
line I ran:=20


/usr/local/lib/swish-e/spider.pl config.pl > output


output is an empty file.

Here is the config.pl I passed in:


my %serverA =3D (
        base_url =3D> 'http://www.mysite.com',
        same_hosts =3D> [qw/www.mysite.com/],
        email =3D> 'test@mysite.com',
        test_url =3D> sub { print 'TESTING\n\n';},
        test_response =3D> sub { print 'TESTING RESPONSE\n\n';},
        filter_content =3D> sub {
                print '\n\n\n\n\n';
                print $_[0];
                print '\n';
                print $_[1];
                print '\n';
                print $_[2];
                print '\n***************************************\n';
                print $_[3];
                return 1;
        },
        );

@server =3D (\%serverA);
1;


Thanks!

-Justin


*********************************************************************
Due to deletion of content types excluded from this list by policy,
this multipart message was reduced to a single part, and from there
to a plain text message.
*********************************************************************
Received on Fri Mar 5 17:14:12 2004