From 611a123db57a04c648986acfc45371976bb74d45 Mon Sep 17 00:00:00 2001 From: ziming Date: Sun, 12 Oct 2025 20:58:06 +0800 Subject: [PATCH] Add initial documentation on amazon search scrapingbee client --- README.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/README.md b/README.md index b286c04..0f8722f 100644 --- a/README.md +++ b/README.md @@ -145,6 +145,28 @@ Look at the source code of `src/LaravelScrapingBeeWalmartProduct.php` for the ot [LaravelScrapingBeeWalmartProduct.php](https://github.com/ziming/laravel-scrapingbee/blob/main/src/LaravelScrapingBeeWalmartProduct.php) + +### Amazon ScrapingBee Clients + +#### The Amazon Search ScrapingBee Client + +```php +$amazonSearchScrapingBeeClient = Ziming\LaravelScrapingBee\LaravelScrapingBeeAmazonSearch::make(); + +$response = $amazonSearchScrapingBeeClient + ->query('iPhone') + ->startPage(2) + ->pages(3) + ->device('desktop') + ->currency('usd') + ->country('gb') + ->sortBy('average_review') + ->get(); +``` +Look at the source code of `src/LaravelScrapingBeeAmazonSearch.php` for the other methods (link below). + +[LaravelScrapingBeeAmazonSearch.php](https://github.com/ziming/laravel-scrapingbee/blob/main/src/LaravelScrapingBeeAmazonSearch.php) + ## Testing Currently, there are no tests as it uses credits. But if there are tests in the future, you can run the command below to execute the testcases.