Skip to content
This repository has been archived by the owner on Apr 10, 2024. It is now read-only.

A scraper to collect details for a vehicle, via it's registration number.

Notifications You must be signed in to change notification settings

MrLukeSmith/piston-heads-scraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

PistonHeads Car Details Scraper

This allows you to obtain details for a car, if they exist, using their Registration Number via the PistonHeads website.

How to use

  • Clone the repo, and navigate to it.
  • bundle install
  • ruby ph.rb "REGISTRATION"
  • The results are outputted in the form of a JSON object

##JSON Output {"registration":"CE51AZB","year":"2001","make":"BMW","model":"E46 3 Series [98-06]","description":"BMW 3 SERIES (E46) 320CI 2001","type":"Convertible","doors":"2 Doors","colour":"Blue","transmission":"Manual","engine_position":"Front Engined","aspiration":"Normally Aspirated","cyclinders":"6 Cylinders","mpg":"30.1","torque":"155","bhp":"168","0to62":"9.1","top_speed":"138","drivetrain":"Rear Wheel Drive","previous_owners":"Up to 5 Owners"}

Gems

  • selenium-webdriver

Disclaimer

I wrote this for fun, as a development exercise. This method of data collection isn't ideal for use in a production environment, but do with it what you will.

About

A scraper to collect details for a vehicle, via it's registration number.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages