Skip to content

Commit 6f9835e

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

File tree

1 file changed

+29
-1
lines changed

1 file changed

+29
-1
lines changed

README.md

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,33 @@ Other people's Allegro scrapers have stopped working, but this parser continues
1414
The data scraper can work "on the fly", that is, it can extract data from Allegro in real time when a request is made (from the point of view of your site, when a user visits some page). This ensures 100% data relevance and reduces the load on the server.
1515
Also, this Allegro crawler can be used to constantly scraping all the products, that is, saving and updating a full catalog of products.
1616

17-
## Use examples
17+
## Installation
18+
1) Install the scraper on your server. To do this, please contact: https://t.me/JWprogrammer
19+
2) Use the crawler in your project. Simply add the library to the project via the composer dependencies:
20+
```
21+
composer require jwprogrammer/allegro-scraper
22+
```
1823

24+
## Use examples
25+
```
26+
$allegro = new \AllegroScraper\AllegroScraper();
27+
28+
$result = $allegro->search([
29+
'page' => 1,
30+
'query' => 'Led halogen lampa',
31+
'category' => 'czesci-samochodowe-620',
32+
'order' => 'pd'
33+
]);
34+
if ($result->success) {
35+
$result->totalCount;
36+
foreach ($result->products as $product) {
37+
$product->id;
38+
$product->url;
39+
$product->title;
40+
$product->price;
41+
$product->price_with_delivery;
42+
$product->mainThumbnail;
43+
$product->mainImage;
44+
}
45+
}
46+
```

0 commit comments

Comments
 (0)