Home > php教程 > php手册 > body text

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

WBOY
Release: 2016-06-21 08:49:18
Original
1597 people have browsed it

$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>';
?>


Copy after login

$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>';
?>
Copy after login



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