google-videos-downloaden
Gesponsorde koppelingen
PHP script bestanden
Code (php)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<?php
//function gvGetAvi($url){ # Avi downloaden, $url is de pagina op google video
//$pos = strpos($url, "docid=");
//$docid = substr($url, $pos + 6);
//$bestandsnaam = "http://video.google.nl/videohosted?docid=".$docid;
//$bestand = urldecode(file_get_contents($bestandsnaam));
//$pos = strpos($bestand, "<a href=\"http://video.google.nl/videogvp/");
//$t = substr($bestand, $pos + 9);
//$pos = strpos($t, ".gvp?docid=");
//$t = substr($t, 0,$pos);
//$gvp = $t.".gvp?docid=".$docid;
//$gvpinhoud = file_get_contents($gvp);
//$pos = strpos($gvpinhoud, "url:");
//$t = substr($gvpinhoud,$pos+4);
//$pos = strpos($t, "docid:");
//$avi = substr($t, 0, $pos);
//return $avi;
//}
function gvGetFlv($url){ # Flash video downloaden, $url is de pagina op google video
$pos = strpos($url, "docid=");
$docid = substr($url, $pos + 6);
$bestandsnaam = "http://video.google.nl/videohosted?docid=".$docid;
$bestand = urldecode(file_get_contents($bestandsnaam));
$pos = strpos($bestand, "/googleplayer.swf?&videoUrl");
$t = substr($bestand, $pos + 7);
$pos = strpos($t, "http");
$t = substr($t, $pos);
$eind = strpos($t, "&begin=");
$link = substr($t, 0, $eind);
$vidvar = urldecode($link);
return $vidvar;
}
//function gvGetGvp($url){ # Google video bestand downloaden, $url is de pagina //op google video
//$pos = strpos($url, "docid=");
//$docid = substr($url, $pos + 6);
//$bestandsnaam = "http://video.google.nl/videohosted?docid=".$docid;
//$bestand = urldecode(file_get_contents($bestandsnaam));
//$pos = strpos($bestand, "<a href=\"http://video.google.nl/videogvp/");
//$t = substr($bestand, $pos + 9);
//$pos = strpos($t, ".gvp?docid=");
//$t = substr($t, 0,$pos);
//$gvp = $t.".gvp?docid=".$docid;
//return $gvp;
//}
?>
//function gvGetAvi($url){ # Avi downloaden, $url is de pagina op google video
//$pos = strpos($url, "docid=");
//$docid = substr($url, $pos + 6);
//$bestandsnaam = "http://video.google.nl/videohosted?docid=".$docid;
//$bestand = urldecode(file_get_contents($bestandsnaam));
//$pos = strpos($bestand, "<a href=\"http://video.google.nl/videogvp/");
//$t = substr($bestand, $pos + 9);
//$pos = strpos($t, ".gvp?docid=");
//$t = substr($t, 0,$pos);
//$gvp = $t.".gvp?docid=".$docid;
//$gvpinhoud = file_get_contents($gvp);
//$pos = strpos($gvpinhoud, "url:");
//$t = substr($gvpinhoud,$pos+4);
//$pos = strpos($t, "docid:");
//$avi = substr($t, 0, $pos);
//return $avi;
//}
function gvGetFlv($url){ # Flash video downloaden, $url is de pagina op google video
$pos = strpos($url, "docid=");
$docid = substr($url, $pos + 6);
$bestandsnaam = "http://video.google.nl/videohosted?docid=".$docid;
$bestand = urldecode(file_get_contents($bestandsnaam));
$pos = strpos($bestand, "/googleplayer.swf?&videoUrl");
$t = substr($bestand, $pos + 7);
$pos = strpos($t, "http");
$t = substr($t, $pos);
$eind = strpos($t, "&begin=");
$link = substr($t, 0, $eind);
$vidvar = urldecode($link);
return $vidvar;
}
//function gvGetGvp($url){ # Google video bestand downloaden, $url is de pagina //op google video
//$pos = strpos($url, "docid=");
//$docid = substr($url, $pos + 6);
//$bestandsnaam = "http://video.google.nl/videohosted?docid=".$docid;
//$bestand = urldecode(file_get_contents($bestandsnaam));
//$pos = strpos($bestand, "<a href=\"http://video.google.nl/videogvp/");
//$t = substr($bestand, $pos + 9);
//$pos = strpos($t, ".gvp?docid=");
//$t = substr($t, 0,$pos);
//$gvp = $t.".gvp?docid=".$docid;
//return $gvp;
//}
?>