We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
` $webUrl = 'https://www.mm131.net/'; require 'inc/phpQuery.php'; require 'inc/QueryList.php'; use QL\QueryList;
//拼装列表页(内含菜单名、菜单ID、页码):https://www.mm131.net/xinggan/list_6_7.html function listUrl($catName,$catId,$page=1){ global $webUrl; $url = $webUrl.$catName.'/'; if($page > 1){ $url = $url . 'list_'.$catId.'_'.$page.'.html'; } return $url; }
function getArtUrl($url){
$rules = ['link' => ['a:eq(0)','href']]; $range = '.list-left dd:not(:last)'; $data = QueryList::Query($url,$rules,$range)->data; echo '采集到本页数据量为:'.count($data);
} ` 列表页一页有20条数据,有时候只能采集到12-14条,有时候有是20条,全看运气,也不见报错
The text was updated successfully, but these errors were encountered:
No branches or pull requests
`
$webUrl = 'https://www.mm131.net/';
require 'inc/phpQuery.php';
require 'inc/QueryList.php';
use QL\QueryList;
//拼装列表页(内含菜单名、菜单ID、页码):https://www.mm131.net/xinggan/list_6_7.html
function listUrl($catName,$catId,$page=1){
global $webUrl;
$url = $webUrl.$catName.'/';
if($page > 1){
$url = $url . 'list_'.$catId.'_'.$page.'.html';
}
return $url;
}
function getArtUrl($url){
}
`
列表页一页有20条数据,有时候只能采集到12-14条,有时候有是20条,全看运气,也不见报错
The text was updated successfully, but these errors were encountered: