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
- Host: GitHub
- URL: https://github.com/pgrimaud/gibert-jeune
- Owner: pgrimaud
- License: mit
- Created: 2016-11-11T17:27:45.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-12-05T15:34:42.000Z (over 7 years ago)
- Last Synced: 2025-01-06T09:11:33.697Z (5 months ago)
- Topics: package, php, scraper
- Language: PHP
- Homepage:
- Size: 18.6 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Gibert Jeune
[](https://packagist.org/packages/pgrimaud/gibert-jeune)
[](https://travis-ci.org/pgrimaud/gibert-jeune)
[](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)
))
)
```