采集豆瓣美女! 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
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
        )

)
登录后复制

08-25 02:11