Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: HTML::Tree look_down is not working

by wfsp (Abbot)
on Jan 01, 2011 at 15:31 UTC ( [id://880003]=note: print w/replies, xml ) Need Help??


in reply to HTML::Tree look_down is not working

Running your code the HTML in $article (cut down) looks like
<form action="" id="raaga" method="get" name="raaga" onsubmit="return validate(this);" > <table align="center" border="0" cellpadding="1" cellspacing="2" height="100%" width="100%" > <tr> <!-- snipped --> </tr> </table> </form>
There is one table but it doesn't have an id attribute. It has a width attribute of 100%. So your
my $table = $article->look_down(_tag=>'table',class=>'dataTbl',width=> +"450");
won't find anything ($table will be undef).

There is a lot of javascript. When I point Firefox at that url the response does not contain a form with an id of raaga. What does the page look like when you log in?

Give a bit more detail on what you are trying to do.

Replies are listed 'Best First'.
Re^2: HTML::Tree look_down is not working
by Kanishka.black0 (Scribe) on Jan 01, 2011 at 20:03 UTC

    i just want to sniff out the meta-data of that songs displayed ...

    As u mentioned u showed the first table ... but there are 3 tables actually
    data that i need is in the 3rd table ....

    thanks for reply .. its my mistake that i should have check with w3.org validate for html validation
    there are many mistakes in the webpage too

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (5)
As of 2024-03-28 11:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found