php简单html解析器,无法获取表数据

php简单html解析器,无法获取表数据,php,simple-html-dom,Php,Simple Html Dom,我无法解析此表中的数据,即每日价格。有什么建议吗 这是我想下载的表格的网站, $website=”https://www.barchart.com/futures/quotes/Zbz20/price-history/historical'; $html=file\u get\u html($website); foreach($html->find('div[data ng bind=“cell”]”)作为$element){ pa(要素); echo$element->纯文本。“”; }

我无法解析此表中的数据,即每日价格。有什么建议吗

这是我想下载的表格的网站,

$website=”https://www.barchart.com/futures/quotes/Zbz20/price-history/historical';
$html=file\u get\u html($website);
foreach($html->find('div[data ng bind=“cell”]”)作为$element){
pa(要素);
echo$element->纯文本。“
”; }
我也使用过,但没有成功。
foreach($html->find('td div span')作为$esData){
pa($esData);
echo$esData->纯文本。“
”; } 谢谢
ngIf的
ngIf
注释表明该页面是通过角度渲染的。数据将不在HTML源代码中查看浏览器中“开发人员工具”中的“网络”选项卡可以找到api调用,该调用返回通过angular在HTML中填充的json数据。你应该能够从那里获取数据-可能必须为推荐人设置标题等来模仿网站。谢谢大家,我会调查的。或者,我很乐意从“下载”链接将csv导入sql。有没有关于获取直接链接以便将其编码到php中的技巧?谢谢,谢谢,谢谢!下载按钮通过将从json get api加载的数据发送到服务器以启动下载来工作。使用适当的参数和头来访问api端点以模拟浏览器似乎是最好的选择。
$website = 'https://www.barchart.com/futures/quotes/Zbz20/price-history/historical';
$html = file_get_html($website);

foreach($html->find('div[data-ng-bind="cell"]') as $element){
      pa($element);
      echo $element->plaintext . '<br>';   
}
I have also used this without success. 

    foreach($html->find('td div span span span') as $esData){
    pa($esData);
    echo $esData->plaintext. '<br>';  
    }

Thanks!