I am trying to extract the table data from https://ownerschoicebuffalo.mortgagewebcenter.com/
I am using simplehtmldom.php
My code is as follows:
<?php
include('simple_html_dom.php');
$html = file_get_html('https://ownerschoicebuffalo.mortgagewebcenter.com/');
foreach($html->find('table') as $table)
{
foreach($table->find('tr') as $tr)
{
foreach($tr->find('td') as $td)
{
echo $td->innertext;
}
}
}
?>
I've tested this on other sites just using:
$table=$html->find('table');
foreach($table as $e)
{
echo $e->innertext;
}
And it's worked. Could there just be something about this specific site that I am missing?