On Mon, 15 Sep 2008 08:35:34 -0700, [EMAIL PROTECTED] wrote:
> I'm trying to parse a webpage and obtain the urls and text contained
> within the anchor tags. I've looked at various pages such as Mechanize
> and TokeParser, but they don't seem to do what I want. Basically, what
> I have is
> a webpage that contains its links like
> 
> <li><a id=web_srv_001"
> onclick="javascript:Track('srv_page_001',this);" href="http://
> www.mrjolly.com/hlp_srvr_001.aspx">First things first</a></li>
> [How do I get $1 and $2]

I don't see why the link methods of WWW::Mechanize
(http://search.cpan.org/~petdance/WWW-Mechanize-1.34/lib/WWW/Mechanize.pm#LINK_METHODS)
wouldn't be the best way to do what you want.

-- 
Peter Scott
http://www.perlmedic.com/
http://www.perldebugged.com/


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to