iamcer/page-data-list

基于querylist的爬虫

dev-master 2018-12-04 14:19 UTC

This package is not auto-updated.

Last update: 2024-04-18 16:17:55 UTC


README

项目介绍

给予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;
            }],
        ]);