a6e706e2fd5c94220f16ff1071dbff506ae4cdd9
5 function url_bot($url) {
7 $file = implode("\n", $file);
8 $file = spliti("http://", $file);
12 foreach($file as $url) {
13 $url = split(">| ", $url);
16 if(eregi(".com", $url)) {
17 $urls[$i] = "http://".$url;
25 function wmv_bot($url, $ext) {
26 foreach(url_bot($url) as $url) {
29 $file = implode("\n", $file);
30 $file = spliti("http://", $file);
34 foreach($file as $url) {
35 $url = explode(">", $url);
37 if(eregi(".com", $url) && eregi($ext, $url) && !eregi(" |\"", $url)) {
38 $urlz[$i] = "http://".$url;
48 function download_url_array($results, $download_dir) {
49 //$download_dir = $GLOBALS["download_dir"];
50 $fails = 0; $done = 0;
51 echo("\nDownloading to $download_dir ...\n");
52 if(!is_dir($download_dir)) {
53 echo("Creating directory: $download_dir\n\n");
55 } else { echo("\n"); }
56 foreach($results as $id => $url) {
57 $file = url2filename($url);
58 echo("Downloading $file (#$id)... ");
59 $file = "$download_dir\\$file";
60 if(!is_file($file) && @copy
($url, $file)) {
64 if(is_file($file)) { echo("File already exists "); }
69 $totaldls = ($fails+
$done);
70 echo("\n$done/$totaldls files successfully downloaded to $download_dir ($fails failed)\n");
73 ///CODE//////////////////////////////////////////////////////////////////////////////////////
74 $results = wmv_bot("http://www.loliti.com/cz/m/bonde19e_s_vodou_0.php", ".wmv");
76 //download_url_array($results, "X:\\wmvBot"); //Automatic Download
This page took 1.197773 seconds and 5 git commands to generate.