rulesofgames has asked for the wisdom of the Perl Monks concerning the following question:
Hi,
Could anyone please show me how I can use table extractclass to extract a data from a desired data cell. For example(please see sample html below), I want to extract row 44 cell 0 data, then row 53 cell 0. The cells 0 remains the same for my script but the row changed. I tried tokeparser but did not worked for me.
Thanks in advance for any help:)
Rules---------- Sample html -------------------------
<tr class="even_data_row"> <td class="numberCol" vAlign="top">44</td>< +td vAlign="top"><a href="#user_RAD_WIPRO">RAD_WIPRO</a>@<a>Any</a> <br> <a href="#user_RAD_ISL">RAD_ISL</a>@<a>Any</a> <br> <a href="#user_RAD_ITC">RAD_ITC</a>@<a>Any</a> <br> <a href="#user_RAD_TMA">RAD_TMA</a>@<a>Any</a> <br> <a href="#user_RAD_TECHMAH">RAD_TECHMAH</a>@<a>Any</a> <br> </td><td vAlign="top"> <div class="refObject" nowrap="true"><ahre +f="#network_object_zcars0xy.ca.cgi.com">zcars0xy.ca.cgi.com</a> </div> </td><td vAlign="top"></td><td vAlign="top"> <divclass="refObject"nowrap="true"><ahref="#service_TCP_25426">TCP_254 +26</a> </div> </td><td vAlign="top"><div class="refObject" nowrap="true" styl +e="color:blue;">Client Auth</div> </td><td vAlign="top">Log<br></td><td vAlign="top"><div class="refObje +ct" nowrap="true">Any</div></td><td vAlign="top">Any<br></td><td vAli +gn="top" style="BORDER-RIGHT: #e5e5e5 1px solid;">'CQ-proxy PBJ 223 U +SA3257213' </td></tr>
----------- End Sample html --------------------
20070607 Janitored by Corion: Added formatting, code tags, as per Writeup Formatting Tips
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Help with HTML::TableExtract
by Anonymous Monk on Jun 08, 2007 at 05:25 UTC |