Giter VIP home page Giter VIP logo

cars.com-crawling's Introduction

Crawler for cars.com

A python crawler which can crawl car information from cars.com. It supports python 3.6+. The below libraries are needed.

  • Beautiful Soup 4
  • pandas
  • numpy
  • matplotlib

Update (04-29-18)

cars.com changed the html page slightly. The previous python crawler does not work. I have fixed it.

Update (04-06-18)

Add a simple GUI using Python TKinter.

GUI

You could launch GUI with

python GUI/gui.py

Usage:

  1. Cars crawling: crawl cars of a specific model (e.g. Audi Q7) on cars.com and analyze prices.
bash crawling.sh

For example, crawl Audi Q3 within 100 miles from 53715 gives you the below information

Some Price Information (AUDI-Q3-NEW):
min price    = $ 35,950.00
mean price   = $ 41,683.36
median price = $ 41,660.00
max price    = $ 45,150.00
std price    = $ 2,025.90

  1. Multiple crawl: crawl multiple car models listed in a file on cars.com and plot price comparison
bash multiple-crawling.sh

For example, crawl Audi Q5, BMW X3 and Benz GLC gives you the below plot. Black dot denotes the mean price; red line denotes the standard deviation; Blue line shows the the maximum and minimum price. example

Also see the comparison of mid-size sedan of Japanese big three.

example

  1. Brand guess game: a command line car brand guessing game
bash brand-guess-game.sh

example

cars.com-crawling's People

Contributors

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