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
- Next message: Sherm Pendley: "Re: error logs..."
- Previous message: Robert TV: "Re: Looking for a certain regexp"
- Next in thread: Randal L. Schwartz: "Re: Why can't I get WWW::Mechanize->find_all_links to work?"
- Reply: Randal L. Schwartz: "Re: Why can't I get WWW::Mechanize->find_all_links to work?"
- Reply: A. Sinan Unur: "Re: Why can't I get WWW::Mechanize->find_all_links to work?"
- Reply: W. Citoan: "Re: Why can't I get WWW::Mechanize->find_all_links to work?"
- Reply: ko: "Re: Why can't I get WWW::Mechanize->find_all_links to work?"
- Reply: Peter M. Jagielski: "Re: Why can't I get WWW::Mechanize->find_all_links to work?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.
- Next message: Sherm Pendley: "Re: error logs..."
- Previous message: Robert TV: "Re: Looking for a certain regexp"
- Next in thread: Randal L. Schwartz: "Re: Why can't I get WWW::Mechanize->find_all_links to work?"
- Reply: Randal L. Schwartz: "Re: Why can't I get WWW::Mechanize->find_all_links to work?"
- Reply: A. Sinan Unur: "Re: Why can't I get WWW::Mechanize->find_all_links to work?"
- Reply: W. Citoan: "Re: Why can't I get WWW::Mechanize->find_all_links to work?"
- Reply: ko: "Re: Why can't I get WWW::Mechanize->find_all_links to work?"
- Reply: Peter M. Jagielski: "Re: Why can't I get WWW::Mechanize->find_all_links to work?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|