Follow me not!


iJigg downloader script

12 June 2007 17:32:04 WIB, under category PHP

Script berikut bisa digunakan untuk mendapatkan file mp3 yang terdapat di situs iJigg.com. Silahkan dikembangkan, dimodifikasi atau diapakan saja.

[code] // this is used to get url content
function get_url_content($url){
$ch = curl_init();
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_URL, $url);
$data = curl_exec($ch);
curl_close($ch);
return $data;
}

// this function used to retrieve value inbetween specific delimiter
function get_inbetween($tag1,$tag2,$string) {
if (eregi("$tag1(.*)$tag2", $string, $out)) {
$outdata = $out[1];
}
return $outdata;
}

// this function used to download music from ijigg.com
function get_ijigg($url){

// get the music_id
$ari = explode("/",$url);
$m_id = array_pop($ari);

// retrieve xml files
$data = get_url_content("http://www.ijigg.com/cgi-bin/loadSongData.cgi?songID=".$m_id);

// retrieve path into music files
$hasil = get_inbetween("“,”“,$data);

// yell it loud
return trim($hasil);
}

echo get_ijigg(”http://www.ijigg.com/songs/V2CE7AAPAD”);
?>
[/code]


6 Comments so far..

  1. Mbah Darmo
    13 June 2007, 00:58:37 WIB

    Mantap Juragan..
    waduh siapin hardisk baru nih musti.

  2. linoxs
    13 June 2007, 10:53:26 WIB

    Jeng itu ada yg nyempil di ujung, dari $data.
    * Dah ngumpulin url lagu2 yg seru, tinggal siapin penyedot nya aja, karena kata jeng sandal terserah diapain aja, mo tak jual ke bule biar dapet $$$. :D

  3. agung
    15 June 2007, 00:54:16 WIB

    sudah di modif jeng.. ;)) thanks ya

  4. funkshit
    18 June 2007, 03:18:03 WIB

    $ari = explode(”/”,$url);

    kok nama saya dijadiin variable ??
    gimane ceritanya tuh . .
    pas lagi bikin script bayangin saya yak ??

  5. sandal
    18 June 2007, 04:59:50 WIB

    ngepets!
    itu tadinya mo nulis arr, tapi kok jadi ari yak?

  6. eiei
    21 July 2007, 14:26:19 WIB

    searh ijigg script add to database ? my site

RSS for comments TrackBack URL

Leave a comment or two

Allowed tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>