Download the PHP package mslwk/otomoto-scrapper without Composer
On this page you can find all versions of the php package mslwk/otomoto-scrapper. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mslwk/otomoto-scrapper
More information about mslwk/otomoto-scrapper
Files in mslwk/otomoto-scrapper
Package otomoto-scrapper
Short Description PHP-CLI app for otomoto.pl scrapping
License MIT
Informations about the package otomoto-scrapper
Otomoto scrapper
This CLI app scraps Otomoto to provide you with average price and mileage of a requested car.
Getting Started
These instructions will get you a copy of the project up and running on your local machine.
Prerequisites
You can use the provider Docker configuration to run the app. To do this you will need:
- docker
- docker-compose
Alternatively you can set it up using a locally installed PHP 7.2
Installing
- If you want to use Docker run
Then, inside your container
Usage
The CLI application is available using the executable
Available commands
-
app:manufacturer-list - lists all available car manufacturers
-
app:manufacturer-models manufacturer_name - lists all available models for chosen manufacturer
-
app:model-details manufacturer_name model_name - retrieves stats for a chosen car model
Available filters:
- From year of production
- To year of production
Caching
Models and manufacturers are cached inside directory. To clear cache simply remove/empty the directory.
Built With
- Symfony Console
- Guzzle
- ReactPHP
- Stash caching
Authors
License
This project is licensed under the MIT License - see the LICENSE file for details
Screenshots
All versions of otomoto-scrapper with dependencies
psr/cache Version ^1.0
react/event-loop Version ^0.4.3
react/http-client Version ^0.5.8
fabpot/goutte Version ^3.2
symfony/console Version ^4.0
tedivm/stash Version ^0.14.2
cocur/slugify Version ^3.1