Why can't I get WWW::Mechanize->find_all_links to work?

From: Peter M. Jagielski (peterj_at_insight.rr.com)
Date: 06/30/04


Date: 29 Jun 2004 18:59:51 -0700

Fellow Perl programmers,

I'm doing a project for an attorney that involves searching the local
court house records via the court's web site. I'm doing a search and
trying to get a list of all the links to the court dockets. My code
only returns one (the 1st) link, although if you load the HTML (note
that there's a space between "smith," and "john") into your browser
and execute it, you can clearly see that there's 16 links/dockets.
What am I doing wrong? Here's the code:

#!/usr/bin/perl

use WWW::Mechanize;

my $Mech = WWW::Mechanize->new();
my $URL = "http://www.loraincountycpcourt.org/nxquick.exe?pname=smith,
john";

$Mech->get($URL);

my @Links = $Mech->find_all_links(url_regex => qr/casen=/i);

foreach my $Link (@Links)
  { print $Link->url_abs . "\n"; }

Thanks in advance to anyone who responds.



Relevant Pages

  • Re: Missing System Tray Items in Xp
    ... John wrote: ... In searching the net I find that this problem seems to have been around ... a long time and everybody seems to have their own pet fix for it, ...
    (microsoft.public.windowsxp.general)
  • Re: counting question
    ... > david 1 ... or even the correct phrase to use when searching for it would help ...
    (microsoft.public.inetserver.asp.general)
  • Re: Missing System Tray Items in Xp
    ... and we will see if the systray icons disappear again. ... Thanks again, John ... Check "My Network Places" and on the left hand side under ... In searching the net I find that this problem seems to have been around ...
    (microsoft.public.windowsxp.general)
  • Re: counting question
    ... select personname, countfrom yourtable group by personname ... > i think you can see why i am having a problem searching for this... ...
    (microsoft.public.inetserver.asp.general)
  • Re: Why cant I get WWW::Mechanize->find_all_links to work?
    ... > Fellow Perl programmers, ... > I'm doing a project for an attorney that involves searching the local ... > court house records via the court's web site. ...
    (comp.lang.perl.misc)