首页 > php教程 > php手册 > PHP采集豆瓣美女图片最简单的代码,使用QueryList

PHP采集豆瓣美女图片最简单的代码,使用QueryList

WBOY
发布: 2016-06-06 19:37:23
原创
2558 人浏览过

采集豆瓣美女! QueryList:http://git.oschina.net/jae/QueryList phpQuery ?php//引入QueryListrequire 'QL/QueryList.class.php';//采集$data = QueryList::Query('http://www.dbmeinv.com/',array('meizi'=array('img','src')))-jsonArr;//打印出结果print

采集豆瓣美女!
QueryList:http://git.oschina.net/jae/QueryList phpQuery
<?php
//引入QueryList
require 'QL/QueryList.class.php';
//采集
$data = QueryList::Query('http://www.dbmeinv.com/',array('meizi'=>array('img','src')))->jsonArr;
//打印出结果
print_r($data);
登录后复制
Array
(
    [0] => Array
        (
            [meizi] => http://ww2.sinaimg.cn/bmiddle/8154ee06gw1eo1d9wbj7uj20dw0afgn8.jpg
        )

    [1] => Array
        (
            [meizi] => http://ww1.sinaimg.cn/bmiddle/8154ee06gw1eo1d9xepxzj20dw099q5b.jpg
        )

    [2] => Array
        (
            [meizi] => http://ww2.sinaimg.cn/bmiddle/8154ee06gw1eo1d9y5js6j20dw099myc.jpg
        )

    [3] => Array
        (
            [meizi] => http://ww3.sinaimg.cn/bmiddle/8154ee06gw1eo1d9z4sfrj20dw0dwgns.jpg
        )

    [4] => Array
        (
            [meizi] => http://ww4.sinaimg.cn/bmiddle/8154ee06gw1eo1d9zub4lj20dw0dwwgl.jpg
        )

    [5] => Array
        (
            [meizi] => http://ww3.sinaimg.cn/bmiddle/8154ee06gw1eo1da127tqj20dw0dwq4x.jpg
        )

    [6] => Array
        (
            [meizi] => http://ww2.sinaimg.cn/bmiddle/8154ee06gw1eo1da1ocxrj20dw0iitai.jpg
        )

    [7] => Array
        (
            [meizi] => http://ww3.sinaimg.cn/bmiddle/8154ee06gw1eo1da2935wj20dc0hsab4.jpg
        )

    [8] => Array
        (
            [meizi] => http://ww4.sinaimg.cn/bmiddle/8154ee06gw1eo1da490yvj20dw0ii77j.jpg
        )

    [9] => Array
        (
            [meizi] => http://ww4.sinaimg.cn/bmiddle/8154ee06gw1eo1da55rfdj20dw0ijjub.jpg
        )

    [10] => Array
        (
            [meizi] => http://ww1.sinaimg.cn/bmiddle/8154ee06gw1eo1da6gc7mj20dw0ii0vk.jpg
        )

    [11] => Array
        (
            [meizi] => http://ww4.sinaimg.cn/bmiddle/8154ee06gw1eo1da7axejj20dw0clq46.jpg
        )

    [12] => Array
        (
            [meizi] => http://ww3.sinaimg.cn/bmiddle/8154ee06gw1eo1da8obxuj20dw0iigos.jpg
        )

    [13] => Array
        (
            [meizi] => http://ww1.sinaimg.cn/bmiddle/8154ee06gw1eo1dabbtpcj20dw0oowhk.jpg
        )

    [14] => Array
        (
            [meizi] => http://ww2.sinaimg.cn/bmiddle/8154ee06gw1eo1dabv3aoj20dw0juabc.jpg
        )

    [15] => Array
        (
            [meizi] => http://ww1.sinaimg.cn/bmiddle/8154ee06gw1eo1dacoetlj20dw099abc.jpg
        )

    [16] => Array
        (
            [meizi] => http://ww2.sinaimg.cn/bmiddle/8154ee06gw1eo1dadfgmrj20dw098q3n.jpg
        )

    [17] => Array
        (
            [meizi] => http://ww3.sinaimg.cn/bmiddle/8154ee06gw1eo1daeb1t7j20dw0oo0us.jpg
        )

    [18] => Array
        (
            [meizi] => http://ww3.sinaimg.cn/bmiddle/8154ee06gw1eo1dafmtutj20dw0iiq54.jpg
        )

    [19] => Array
        (
            [meizi] => http://ww1.sinaimg.cn/bmiddle/8154ee06gw1eo1dah3t16j20dw0ii41q.jpg
        )

)
登录后复制
相关标签:
来源:php.cn
本站声明
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
热门推荐
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板