pgrimaud/gibert-jeune

Little scraper for https://www.gibertjeune.fr

1.1.0 2017-04-05 22:44 UTC

This package is auto-updated.

Last update: 2024-11-29 04:40:01 UTC


README

Packagist Build Status Test Coverage

Little scraper for https://www.gibertjeune.fr

Usage

composer require pgrimaud/gibert-jeune
$api = new \GibertJeune\Api();
$api->setBarcode('9782344009505');

$product = $api->getProduct();

Will return :

Array
(
    [prices] => Array
        (
            [0] => Array
                (
                    [title] => Réservation
                    [prices] => Array
                        (
                            [0] => Array
                                (
                                    [state] => Neuf
                                    [price] => 0
                                )

                            [1] => Array
                                (
                                    [state] => Occasion
                                    [price] => 8.97
                                )

                        )

                )

            [1] => Array
                (
                    [title] => Expédition
                    [prices] => Array
                        (
                            [0] => Array
                                (
                                    [state] => Neuf
                                    [price] => 14.95
                                )

                            [1] => Array
                                (
                                    [state] => Occasion
                                    [price] => 0
                                )

                        )

                )

            [2] => Array
                (
                    [title] => E-Book
                    [prices] => Array
                        (
                            [0] => Array
                                (
                                    [state] => Numérique
                                    [price] => 0
                                )

                        )

                )

        )

    [shops] => Array
        (
            [secondhand] => Array
                (
                    [0] => 4 place Saint-Michel (1 en stock)
                )

            [new] => Array
                (
                    [0] => 4 place Saint-Michel (2 en stock)
                )

        )

)