vendredi 31 août 2018

Scraping data from a table or list?

I want to scrap table data from this website

https://escapehunt.com/uk/birmingham/booking

i am trying this code, please help me.

<?php

include('simple_html_dom.php');

$html = file_get_html('https://escapehunt.com/uk/birmingham/booking');

foreach($html->find('td[class="cbgridfirst"]') as $element){
echo $element->innertext . '<br>'; 

} 
?>




Aucun commentaire:

Enregistrer un commentaire