Welcome to the Monastery | |
PerlMonks |
Re: HTML::TokeParser help - parsing headlinesby Popcorn Dave (Abbot) |
on Mar 07, 2004 at 01:26 UTC ( [id://334563]=note: print w/replies, xml ) | Need Help?? |
Take a look at my scratchpad. There's a Perl program there let you see exactly what you're getting from HTML::TokeParser. You'll quickly see what tokens are assigned where and what you need to look for in the web source.
I used it when I was doing something very similar to what you're doing for parsing headlines on multiple web sites and it made the whole process quite easy. Hope that helps!
Update: Thanks to suggestions from b10m and graff I'm including the code here so future monks can find it in a super search.
There is no emoticon for what I'm feeling now.
In Section
Seekers of Perl Wisdom
|
|