piedweb / amazon-parser
dev-main
2021-01-31 17:37 UTC
Requires
- php: ^7.4|^8.0
- piedweb/curl: ^0.0.18
- symfony/css-selector: ^5.2
- symfony/dom-crawler: ^5.2
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.16
- phpunit/phpunit: ^9.3
- vimeo/psalm: ^3.11
This package is auto-updated.
Last update: 2024-10-29 06:25:01 UTC
README
Installation
You can install the package via composer:
composer require piedweb/amazon-parser
Usage
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
- All Contributors
License
The MIT License (MIT). Please see License File for more information.