mslwk/otomoto-scrapper 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

mslwk/otomoto-scrapper

Composer 安装命令:

composer require mslwk/otomoto-scrapper

包简介

PHP-CLI app for otomoto.pl scrapping

README 文档

README

Build Status Code Coverage Scrutinizer Code Quality Latest Stable Version License

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

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

Then, inside your container

composer install

Usage

The CLI application is available using the executable

bin/otomoto

Available commands

  • app:manufacturer-list - lists all available car manufacturers

    bin/otomoto app:manufacturer-list 
    
  • app:manufacturer-models manufacturer_name - lists all available models for chosen manufacturer

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

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

    Available filters:

    • 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.

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

Alt text

Alt text

统计信息

  • 总下载量: 9
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 2
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-04-27

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固