https://github.com/piedweb/amazon-parser
php amazon scrapper. Educational pupose only, probably against amazon rules.
https://github.com/piedweb/amazon-parser
Last synced: 3 months ago
JSON representation
php amazon scrapper. Educational pupose only, probably against amazon rules.
- Host: GitHub
- URL: https://github.com/piedweb/amazon-parser
- Owner: PiedWeb
- License: mit
- Created: 2021-01-31T17:27:14.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-01-31T17:37:35.000Z (over 5 years ago)
- Last Synced: 2025-01-07T11:12:19.314Z (over 1 year ago)
- Language: PHP
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Amazon Parser/Scraper in PHP
[](https://packagist.org/packages/piedweb/amazon-parser)
[](https://github.com/piedweb/amazon-parser/actions?query=workflow%3Arun-tests+branch%3Amaster)
[](https://packagist.org/packages/piedweb/amazon-parser)
## Installation
You can install the package via composer:
```bash
composer require piedweb/amazon-parser
```
## Usage
```php
use Piedweb\AmazonParser\SearchResults;
use Piedweb\AmazonParser\ProductPage;
use Piedweb\AmazonParser\ProductPageUk;
SearchResults::getUrls(file_get_contents('https://www.amazon.com/s?i=specialty-aps&bbn=16225009011&rh=n:!16225009011,n:541966&ref=nav_em__nav_desktop_sa_intl_computers_and_accessories_0_2_5_6'))
$manager = ProductPage::parse(file_get_contents('https://www.amazon.com/HP-24mh-FHD-Monitor-Built/dp/B08BF4CZSV/'));
$manager->getPrice()
```
## Credits
- Robin from [Pied Web](https://piedweb.com)
- [All Contributors](../../contributors)
## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.