Skip to content
This repository was archived by the owner on Jan 12, 2024. It is now read-only.

Commit d9c1875

Browse files
committed
Use xparse/parser instead of fiv/parser #4
1 parent 1c82d21 commit d9c1875

File tree

6 files changed

+528
-209
lines changed

6 files changed

+528
-209
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ $ composer require xparse/recursive-pagination
2020
## Usage
2121

2222
```php
23-
$grabber = new \Fiv\Parser\Grabber();
23+
$parser = new \Xparse\Parser\Parser();
2424
$linksArrayPath = [
2525
"//a[@class='categoryitem']/@href", // path to pages you want to scrape
2626
"//td[@class='pagination']//a/@href" // path to pagination area
2727
];
2828

29-
$paginator = new RecursivePagination($grabber, $linksArrayPath);
29+
$paginator = new RecursivePagination($parser, $linksArrayPath);
3030
$paginator->addToQueue('http://www.example.com/first/page/to/parse.html');
3131

3232
$allLinks = [];

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
},
2121
"require-dev": {
2222
"phpunit/phpunit": "4.*",
23-
"Fiv/Parser": "2.0.*"
23+
"xparse/Parser": "0.0.*"
2424
},
2525
"autoload": {
2626
"psr-4": {

0 commit comments

Comments
 (0)