An open API service indexing awesome lists of open source software.

https://github.com/pgrimaud/gibert-jeune

[DEPRECATED] Little scraper for https://www.gibertjeune.fr
https://github.com/pgrimaud/gibert-jeune

package php scraper

Last synced: 4 months ago
JSON representation

[DEPRECATED] Little scraper for https://www.gibertjeune.fr

Awesome Lists containing this project

README

        

# Gibert Jeune

[![Packagist](https://img.shields.io/badge/packagist-install-brightgreen.svg)](https://packagist.org/packages/pgrimaud/gibert-jeune)
[![Build Status](https://travis-ci.org/pgrimaud/gibert-jeune.svg?branch=master)](https://travis-ci.org/pgrimaud/gibert-jeune)
[![Test Coverage](https://codeclimate.com/github/pgrimaud/gibert-jeune/badges/coverage.svg)](https://codeclimate.com/github/pgrimaud/gibert-jeune/coverage)

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

## Usage

```
composer require pgrimaud/gibert-jeune
```

```php
$api = new \GibertJeune\Api();
$api->setBarcode('9782344009505');

$product = $api->getProduct();
```

Will return :
```php
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)
)

)

)

```