crawl URL: Code:
<?php
require "./phpQuery.php";
require "./QueryList.php";
use QL\QueryList;
$hj = QueryList::Query("http://q.10jqka.com.cn/gn/detail/field/199112/order/desc/page/1/ajax/1/code/300800",
array(
"content"=>array("td","text"),
)
);
$data = $hj->getData(function($x){
return $x["content"];
});
print_r($data);
Page structure:
has a very neat structure, so it is theoretically easy to get data. Why is the result empty? Because the page is not a complete html?