Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Webpage Element Information

by jZed (Prior)
on Nov 14, 2007 at 18:52 UTC ( #650825=note: print w/replies, xml ) Need Help??


in reply to Webpage Element Information

The name of what you are trying to capture is DOM (Document Object Model). You can access it in Perl via one of the HTML parsers, e.g. HTML::TreeBuilder. You can access it natively in JavaScript. So either grab the file and parse it with Perl or use JavaScript to send the DOM tree as a JSON string to a Perl script and use one of the CPAN JSON modules to turn it into a Perl data structure.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://650825]
help
Chatterbox?
shmem compiles himself into a template
[shmem]: .oO( just to escape The Wheel... )
[shmem]: since that's already done. I'm not!
[karlgoethebier]: shmem: something went wrong today?

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (6)
As of 2017-06-25 19:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (569 votes). Check out past polls.