Following is my code and I am trying to scrape the following URL but for some reason the html source code is not getting scraped at all. Why is scraping not happening on this URL?
I tried to use File_get_contents
as well as Simple HTML DOM library but it didn't scrape.
URL: http://www.zazzle.com/protoceratops_t_shirt-235065458404753105
function get_data($url) {
$ch = curl_init();
$timeout = 5;
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
$data = curl_exec($ch);
curl_close($ch);
return $data;
}
echo get_data('http://www.zazzle.com/protoceratops_t_shirt-235065458404753105');