下面分享一下简单360影视采集代码:
PHP代码:
error_reporting(0);
header("Content-type:text/html;charset=utf-8");
$info = file_get_contents("http://www.360kan.com/dianying/list.php?cat=all&year=all&area=all&act=all&rank=createtime");
$vname = "#(.*?)#";
$vlist = "##";
$vstar = "#
(.*?)
#";$vimg = "#
\r\n #";
$nname = "#(.*?)#";
$fname = "#(.*?)#";
$array = array();
preg_match_all($vname, $info, $namea