Fetch the repository succeeded.
给予QueryList的分页爬虫
composer require iamcer/page-data-list
$obj = new PageDataList('https://www.baidu.com/', [
'pn' => '1',
'link' => 'https://www.baidu.com/s?wd='.$keyword
], [
'pn' => ['#page>a:not(".n") .pc', 'text', '', function ($content) {
return $content;
}],
'link' => ['#page>a:not(".n")', 'href', '', function ($content) {
return $content;
}],
]);
Sign in for post a comment
Comments ( 0 )