Skip to content

Commit 86b9f3b

Browse files
authored
Update README.md
1 parent 6f9835e commit 86b9f3b

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

README.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,10 @@ Also, this Allegro crawler can be used to constantly scraping all the products,
2121
composer require jwprogrammer/allegro-scraper
2222
```
2323

24-
## Use examples
25-
```
24+
## Usage examples
25+
```PHP
26+
require __DIR__ . '/vendor/autoload.php';
27+
2628
$allegro = new \AllegroScraper\AllegroScraper();
2729

2830
$result = $allegro->search([
@@ -44,3 +46,13 @@ if ($result->success) {
4446
}
4547
}
4648
```
49+
50+
```PHP
51+
$allegro = new \AllegroScraper\AllegroScraper();
52+
53+
$result = $allegro->details([
54+
'product_id' => 11437180475
55+
]);
56+
57+
print_r($result); //All information about this product
58+
```

0 commit comments

Comments
 (0)