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

Re: Parse HTML using HTML::TreeBuilder

by daxim (Chaplain)
on Oct 16, 2012 at 16:35 UTC ( #999371=note: print w/ replies, xml ) Need Help??


in reply to Parse HTML using HTML::TreeBuilder

Get a better/more declarative tool! Web::Query
use Web::Query qw(); my $w = Web::Query->new_from_html($html); my $the_td_element_you_want = $w->find('td:contains("@0.1.9.0.0.0.0.4.1.9.10")');
From there, you can traverse to your actual, unmentioned destination in the DOM tree.
edit: I misunderstood the HTML, thanks to Anonymonk below for pointing this out. oldwarrior32, please post your full HTML document, not a debug dump.

Replies are listed 'Best First'.
Re^2: Parse HTML using HTML::TreeBuilder
by Anonymous Monk on Oct 16, 2012 at 16:52 UTC
    That is funny, since the content doesn't include @ -- that is debugging dump -- use htmltreexpather.pl

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://999371]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (12)
As of 2016-06-30 15:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (396 votes). Check out past polls.