Skip to content

Commit 611a123

Browse files
committed
Add initial documentation on amazon search scrapingbee client
1 parent d499929 commit 611a123

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,28 @@ Look at the source code of `src/LaravelScrapingBeeWalmartProduct.php` for the ot
145145

146146
[LaravelScrapingBeeWalmartProduct.php](https://github.com/ziming/laravel-scrapingbee/blob/main/src/LaravelScrapingBeeWalmartProduct.php)
147147

148+
149+
### Amazon ScrapingBee Clients
150+
151+
#### The Amazon Search ScrapingBee Client
152+
153+
```php
154+
$amazonSearchScrapingBeeClient = Ziming\LaravelScrapingBee\LaravelScrapingBeeAmazonSearch::make();
155+
156+
$response = $amazonSearchScrapingBeeClient
157+
->query('iPhone')
158+
->startPage(2)
159+
->pages(3)
160+
->device('desktop')
161+
->currency('usd')
162+
->country('gb')
163+
->sortBy('average_review')
164+
->get();
165+
```
166+
Look at the source code of `src/LaravelScrapingBeeAmazonSearch.php` for the other methods (link below).
167+
168+
[LaravelScrapingBeeAmazonSearch.php](https://github.com/ziming/laravel-scrapingbee/blob/main/src/LaravelScrapingBeeAmazonSearch.php)
169+
148170
## Testing
149171

150172
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.

0 commit comments

Comments
 (0)