Curl

Get a cars’ general information using registration number curl

You need to download simple_html_dom parser from here http://simplehtmldom.sourceforge.net/
or just google for it


loadHTML($scrapped_website);
 
$items = $doc->getElementsByTagName('td');

    
       $make = explode('Make',$items->item(1)->nodeValue);
	   print_r($make[1]);echo "<br>";
	   
       $other = explode('Colour', $items->item(2)->nodeValue);
	   print_r($other[1]);echo "<br>";
	   $model = explode('Model',$other[0]);
	   print_r($model[1]);echo "<br>";
		
?>
Advertisements