2017 © Pedro Peláez
 

library otomoto-scrapper

PHP-CLI app for otomoto.pl scrapping

image

mslwk/otomoto-scrapper

PHP-CLI app for otomoto.pl scrapping

  • Sunday, May 13, 2018
  • by mslwk
  • Repository
  • 1 Watchers
  • 1 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Build Status Code Coverage Scrutinizer Code Quality Latest Stable Version License, (*1)

Otomoto scrapper

This CLI app scraps Otomoto to provide you with average price and mileage of a requested car., (*2)

Getting Started

These instructions will get you a copy of the project up and running on your local machine., (*3)

Prerequisites

You can use the provider Docker configuration to run the app. To do this you will need: * docker * docker-compose, (*4)

Alternatively you can set it up using a locally installed PHP 7.2, (*5)

Installing

  1. If you want to use Docker run
docker-compose up -d

Then, inside your container, (*6)

composer install

Usage

The CLI application is available using the executable, (*7)

bin/otomoto

Available commands

  • app:manufacturer-list - lists all available car manufacturers, (*8)

    bin/otomoto app:manufacturer-list 
    
  • app:manufacturer-models manufacturer_name - lists all available models for chosen manufacturer, (*9)

    bin/otomoto app:manufacturer-models "Alfa Romeo"
    
  • app:model-details manufacturer_name model_name - retrieves stats for a chosen car model, (*10)

    bin/otomoto app:model-details "Alfa Romeo" "Giulia"
    

    Available filters:, (*11)

    • From year of production
    • To year of production
    bin/otomoto app:model-details "Alfa Romeo" "Giulia" --from=2016 --to=2017
    

Caching

Models and manufacturers are cached inside cache/ directory. To clear cache simply remove/empty the directory., (*12)

Built With

  • Symfony Console
  • Guzzle
  • ReactPHP
  • Stash caching

Authors

License

This project is licensed under the MIT License - see the LICENSE file for details, (*13)

Screenshots

Alt text, (*14)

Alt text, (*15)

The Versions