in reply to Re: How do you scan HTML?
in thread How do you scan HTML?

no question about the useful ness of the cookie stuff, thanks... I just remembered that most people prefer XML::LibXML for this sort of thing... I would have to learn XPath to use it though.

Carter's compass: I know I'm on the right track when by deleting something, I'm adding functionality.

Replies are listed 'Best First'.
3Re: How do you scan HTML?
by jeffa (Bishop) on Sep 22, 2003 at 16:07 UTC

      jeffa wrote: but I do wonder how Ovid would have solved it.

      Ovid replies:

      #!/usr/bin/perl -w use strict; use WWW::Mechanize; my $browser = WWW::Mechanize->new(); $browser->get('http://www.chessgames.com'); $browser->follow_link( url_regex => qr/chessgame\?gid=\d+/ ); $browser->follow_link( text => 'view text' ); print $browser->content;

      I think that's a wee bit easier to follow :)

      Cheers,
      Ovid

      New address of my CGI Course.