Skip to main content.
home | support | download

Back to List Archive

Re: Spider.pl : filter links to follow on the querystring

From: Bill Moseley <moseley(at)not-real.hank.org>
Date: Tue Jan 28 2003 - 12:54:01 GMT
On Tue, 28 Jan 2003, Emmanuel Fournier wrote:

> Hello,
> newbie with swish-e ;-)
> i've read a lot, but ...
> 
> i want the spider.pl script to not follow <A> links by filtering
> on the querystring part of the URI :
> 
> http://www.somesite.fr/rep/file.htm?param1=value1&param2=value2
>                                                           ^^^^^^^^^^
> In the spider.conf file, in the test_url function, i tried :
> 
> return if $uri->path =~ /param1=value1/i;

Type perldoc URI at your local command prompt.

You will probably want to look at $uri->query instead.


-- 
Bill Moseley moseley@hank.org
Received on Tue Jan 28 12:54:27 2003