Git Product home page Git Product logo

bimmer-scrape's Introduction

Bimmer Scrape

This is a set of spiders based on the scrapy library that crawl dealer websites and extract data about vehicles in stock. It currently has BMW X3 hardcoded as that's what I was looking for, but it should theoretically work for any make and model as long as the dealer uses one of the three supported platforms - dealeron, dealer.com and dealerinspire.

The goal of this project is to democratize data on available vehicle inventory and serve as a free tool in your search for your next car.

Setup

The easiest way to set this up is to use a python virtual environment. These instructions have been tested on OSX with python 3:

python3 -m venv env
source env/bin/activate
pip install -r requirements.txt
cd dealers
scrapy crawl bimmer_dealerinspire -o dealerinspire_inventory.json
scrapy crawl bimmer_dealercom -o dealercom_inventory.json
scrapy crawl bimmer_dealeron -o dealeron_inventory.json

I've found it easy to browse inventory from the command line by using jq. You can sort and filter, for example:

cat dealerinspire_inventory.json | jq 'sort_by(.msrp)' | less

TODO

  • Onboard all dealers across the US. This should be as easy as copy/pasting their websites in the spider code.
  • Auto-discover dealers. This can be done using a spider crawling https://bmwusa.com/
  • Add links to vehicles.
  • Follow vehicle links and scrape options and colors.
  • Extend to other brands.
  • Preserve output in a database. Elasticsearch should work very well.
  • Build a UI.
  • Decode VIN or at least add a decoder link.

bimmer-scrape's People

Contributors

ucabvas avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.