Beefy Boxes and Bandwidth Generously Provided by pair Networks RobOMonk
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Need Help With Parser

by BaldPenguin (Friar)
on Aug 01, 2005 at 16:51 UTC ( [id://480031]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to Need Help With Parser

Not to repeat too much of the above, there are many answers for this question. One approach that will work if the page you are pulling from is reliabley valid HTML is to pull the page down and use XML::Twig to parse the page or specific nodes within the using twig_roots. I just completed some work like this. The only snag will be if the page you pull is not valid HTML, the parser could choke, I solved a majority of these errors by running through Tidy.

Don
WHITEPAGES.COM | INC
Everything I've learned in life can be summed up in a small perl script!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://480031]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.