merhabalar youtube videolarını çekebileceğim bir proxy kodunuz varmı php olarak yanlış anlaşılmasın sadece video url lerini çeken kod arıyorum.

Bu mp3 siteleri ve bazı videoları bi şekilde youtube sorununu çözmüş ama nasıl..

<?php
//proxy 89.208.32.109:3128
//64.66.192.62:32080
class youtubedownload {
public $url;
private $proxy='64.66.192.62:32080';
private $useproxy=1; // if you don't want to use proxy make it 0
public function download($url){
@clearstatcache();
@ini_set('output_buffering','off'); //çàïðåòèòü áóôôåðèçàöèþ
@ini_set('max_execution_time',0); //âðåìÿ âûïîëíåíèÿ 0
@ini_set('memory_limit', '1024M'); //ëèìèò ïàìÿòè 128 ìåòðîâ

error_reporting(1);
@ignore_user_abort(1);
@set_time_limit(0);
@ob_end_clean();
@ob_implicit_flush(TRUE);
$url=$url.'&k=2';
if($url<>'' && $url<>'http://www.youtube.com/' && $url<>'http://www.youtube.com'){
@preg_match_all("|v=?(.*)&|U",$url,$resulti, PREG_SET_ORDER);
$id=$resulti[0][0];
$id=str_replace('v=','',$id);
$id=str_replace('&','',$id);
}
if($this->useproxy<>0){
$opts = array('http' => array(
'proxy' => $this->proxy, 
'request_fulluri' => true,
'method'=>'GET'));
}
if($this->useproxy<>1){
$opts = array('http' => array(
'request_fulluri' => true,
'method'=>'GET'));
}
$context2 = stream_context_create($opts);
$vidurl="http://www.youtube.com/watch?v=".$id;
$s = file_get_contents($vidurl, false, $context2);
$response=$s;
//echo $s;
@preg_match_all("|video_id=?(.*)&title=|U",$response,$out, PREG_SET_ORDER);
//echo $pdata;
$plink='http://www.youtube.com/get_video?'.$out[0][0];
//echo $plink;
//$proxy2="194.83.70.20";
$fp = @fopen($plink,'r',false,$context2);
header("Content-Disposition: attachment; filename=".$id.".flv;");
fpassthru($fp);
fclose($fp);
} 

}
?>
Böyle bir kod var elimde dosyayı indirebiliyorum ama flv yolunu gösteremiyorum..


Kodu Çalıştırmak İçin..

<?php
//http://www.youtube.com/watch?v=bWN3-s9ACpw
//http://www.youtube.com/watch?v=ru-xQac_sWw&feature=rec-HM-rn
include 'youtubedownload_Class.php';
$examle=new youtubedownload();
$examle->download('http://www.youtube.com/watch?v=bWN3-s9ACpw');
?>
Konuyu yanlış yere açmışım şimdi farkettim çok özür valla..