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

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

PHP中文网
PHP中文网Original
2016-05-26 08:19:363422browse

跳至                      

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);

                       

           

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

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

                   

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