When file_get_contents obtains the Kugou webpage, the src of the <audio> tag is empty.
一杯水
一杯水 2019-04-19 11:20:48
0
0
998
 $urlBefore = "https://www.kugou.com/song/#";
foreach ($urlData as $key => $value) {
$url = $urlBefore . "hash=" . $value["hash"] ."&album_id=".$value['album_id'];
echo $url."<br/>";
$htmlFile =phpQuery::newDocumentFileHTML($ url);
$title = pq("#myAudio");
$url0 = pq($title[0])->attr("src");
print($url0." <br/>");

}

//$url0 variable is empty, the website source code can be obtained, but the value of the src attribute of the <audio> tag is unknown, is this blocked? How do I get it?

一杯水
一杯水

reply all(0)
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!