I need to get some data from a web page. After analyzing the HTML code of the page, I found that the data I needed was embedded in a table with a unique table identifier. I don't know if this is an HTML rule or not, anyway, this is very good for parsing, I think.
The data in the table is arranged as follows (various attributes and tags were omitted to give you a clear “data structure”)
<table .... id = "tablename" .... >
<tr>
<td .... >filed1</td>
....
<td .... >filedn</td>
</tr>
#several "trs" here
<tr>
<td .... >filed1</td>
....
<td .... >filedn</td>
</tr>
</table>
So my question is how to use the Perl HTML parser utility to meet my needs in this case.
Thanks in advance.
source
share