Home >php教程 >php手册 >PHP获取百度上的高质量妹子图

PHP获取百度上的高质量妹子图

WBOY
WBOYOriginal
2016-06-21 08:49:181630browse

$p=$_GET['p'];
if($p==null)$p=1;
$page=$p*20;
$url='http://m.baidu.com/img?tn=bdjsonliulan&pu=sz%401320_2001&bd_page_type=1&tag1=%E7%BE%8E%E5%A5%B3&realword=%E7%BE%8E%E5%A5%B3&word=%E7%BE%8E%E5%A5%B3&pn='.$page.'&rn=20';
$jsoncode=file_get_contents($url);
$mm=json_decode($jsoncode);
for($i=0;$i<img     style="max-width:90%" src="'.%24mm->data%5B%24i%5D->picurl.'" alt="PHP获取百度上的高质量妹子图" ><br>';	
}



$p=$p+1;
echo '<center><a href="?p='.%24p.'">Next Page</a></center>';
?>



$p=$_GET['p'];
if($p==null)$p=1;
$page=$p*20;
$url='http://m.baidu.com/img?tn=bdjsonliulan&pu=sz%401320_2001&bd_page_type=1&tag1=%E7%BE%8E%E5%A5%B3&realword=%E7%BE%8E%E5%A5%B3&word=%E7%BE%8E%E5%A5%B3&pn='.$page.'&rn=20';
$jsoncode=file_get_contents($url);
$mm=json_decode($jsoncode);
for($i=0;$i<img     style="max-width:90%" src="'.%24mm->data%5B%24i%5D->picurl.'" alt="PHP获取百度上的高质量妹子图" ><br>';	
}



$p=$p+1;
echo '<center><a href="?p='.%24p.'">Next Page</a></center>';
?>



Statement:
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