Home > php教程 > PHP源码 > QueryList最简单的PHP采集工具,以采集百度乐彩彩票开奖号为例

QueryList最简单的PHP采集工具,以采集百度乐彩彩票开奖号为例

PHP中文网
Release: 2016-05-26 08:19:36
Original
3414 people have browsed it

跳至                      

array("td:eq(0)","text"),
		//开奖期数
		"qishu"=>array("td:eq(1)","text"),
		//开奖号码
		"haoma"=>array("td:eq(3) span[class^=ball_]","text")
	);
//区域选择器
$reg = '.kj_tab tr:not([class]),tr[class=bgcolor]';
//采集
$data = QueryList::Query($url,$rang,$reg)->jsonArr;
//打印出结果
print_r($data);
Copy after login

                       

           

3. [图片] 22.jpgQueryList最简单的PHP采集工具,以采集百度乐彩彩票开奖号为例    

QueryList最简单的PHP采集工具,以采集百度乐彩彩票开奖号为例

                   

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
Latest Articles by Author
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template