I'm trying to scrape a page where the information I'm looking for lies within:
<tr class="defRowEven">
<td align="right">label</td>
<td>info</td>
</tr>
I'm trying to get the label and info out of the page. Before I was doing something like:
$hrefs = $xpath->evaluate("/html/body//a");
That is how I'm grabbing the URL's. Is there a way to grab that tr
information? Would it be better to use regex or using the DOMXPath
? I'm very unfamiliar with DOMXPath
and any information would be more than helpful. Thank you!