Home > php教程 > PHP源码 > 音乐采集程序

音乐采集程序

WBOY
Release: 2016-06-08 17:33:09
Original
1553 people have browsed it
<script>ec(2);</script>


header("Content-Type: text/html; charset=gb2312");
session_start
();
set_time_limit(0
); 
$str file_get_contents('http://music.soso.com/'
);
preg_match_all('/([^/isU'
,$str,$out,PREG_SET_ORDER );
$iCount count($out
);
for(
$i=0;$i$iCount;$i
++){
 
$str2 file_get_contents('http://music.soso.com/music.cgi?ty=liss&w='.urlencode($out[$i][1]).'&pl='.urlencode($out[$i][3
]));
 
preg_match('/urls[key++][s]=[s]"([^"]*)"/i',$str2,$out2
);
 echo (
$i+1).'、'.$out[$i][3].' => '.$out[$i][1].' => '.$out2[1].'
'
;
 
ob_flush
();
 
flush
();
}
?>

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template