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
demo.php 849 Bytes
Copy Edit Web IDE Raw Blame History
不是靖哥哥 authored 2018-12-04 10:19 . ok
<?php
require_once 'service/PageDataList.php';
use service\PageDataList;
//$obj=new PageDataList('https://www.baidu.com/', [
// 'pn' => '1',
// 'link' => 'https://www.baidu.com/s?ie=utf-8&f=8&rsv_bp=1&tn=baidu&wd=site%3Awww.haijufc.com&oq=site%253Awww.haijufc.com'
//],[
// 'pn' => ['#page>a:not(".n") .pc', 'text', '', function ($content) {
// return $content;
// }],
// 'link' => ['#page>a:not(".n")', 'href', '', function ($content) {
//
// return $content;
// }],
//]);
//print_r($obj->getAllPageUrl());
$obj2=new PageDataList('http://www.27270.com/ent/meinvtupian/', [
'pn' => '1',
'link' => 'http://www.27270.com/ent/meinvtupian/list_11_38.html'
],[
'pn' => ['.NewPages a ', 'text' ],
'link' => ['.NewPages a ', 'href' ],
]);
print_r($obj2->getAllPageUrl());

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