I want to get the number of subscribers this channel has with a curl, but seems i get an empty array, any help?
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://www.youtube.com/channel/UCU3i-l-rqTVGQj3Q3LePhJQ");
curl_setopt($ch, CURLOPT_USERAGENT,"Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1");
curl_setopt($ch, CURLOPT_HTTPHEADER, array("Accept-Language: es-es,en"));
curl_setopt($ch, CURLOPT_TIMEOUT, 10);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$result = curl_exec($ch);
//para mostrar posibles error
$error = curl_error($ch);
curl_close($ch);
//parsear
preg_match_all("(<a class=\"secondary-header-action\" href=\"/subscribers\" role=\"menuitem\">
<span class=\"nav-text\">
(.*)
</span>
</a>)siU", $result, $matches);
print_r($matches);