1 Star 0 Fork 0

iamcer / PageDataList

Create your Gitee Account
Explore and code with more than 6 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Without author's permission, this code is only for learning and cannot be used for other purposes.
Clone or download
README.md 592 Bytes
Copy Edit Web IDE Raw Blame History
iamcer authored 2018-12-04 22:19 . 更新 README.md

PageDataList

项目介绍

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

Comment ( 0 )

Sign in for post a comment

PHP
1
https://gitee.com/hjsiamcer/PageDataList.git
git@gitee.com:hjsiamcer/PageDataList.git
hjsiamcer
PageDataList
PageDataList
master

Search