Skip to content

Latest commit

 

History

History
36 lines (23 loc) · 1.33 KB

README.md

File metadata and controls

36 lines (23 loc) · 1.33 KB

Amazon Parser/Scraper in PHP

Latest Version on Packagist GitHub Tests Action Status Total Downloads

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

License

The MIT License (MIT). Please see License File for more information.