Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A DVLA Scraper
Ruby
Branch: master
Failed to load latest commit information.
lib Increment Gem Version
spec Add spec helper with coveralls coverage
.gitignore Convert to Gem
.travis.yml Travis is not my friend tonight :disappointed:
Gemfile Tidy dependencies in gemspec
Gemfile.lock Add spec helper with coveralls coverage
LICENSE.txt
README.md Improve README.
Rakefile Convert to Gem
dvla.gemspec Add spec helper with coveralls coverage
scrape.rb Add some namespaces

README.md

DVLA Data Extractor

This is a present for Simon Jenner :kissing_heart:

It allows you to extract data from the DVLA. It currently supports retrieving data for vehicle details.

Installation

Add this line to your application's Gemfile:

gem 'dvla'

And then execute:

$ bundle

Or install it yourself as:

$ gem install dvla

Usage

Vehicle Details

You can retreive vehicle details using a registration number and the car's make.

Dvla::VehicleDetails.retrieve("SP04 UYK", "Mazda")

# This will return:
{
  car_data: {
    "Date of Liability"=>"01 11 2013",
    "Date of First Registration"=>"16 03 2004", 
    "Year of Manufacture"=>"2004", 
    "Cylinder Capacity (cc)"=>"2616cc", 
    "Emissions"=>"284g/Km", 
    "Fuel Type"=>"PETROL", 
    "Export Marker"=>"N", 
    "Vehicle Status"=>"Licence Not Due", 
    "Vehicle Colour"=>"YELLOW", 
    "Vehicle Type Approval"=>"M1"
  },
  tax_data: {
    "6 Months Rate"=>"£154.00", 
    "12 Months Rate"=>"£280.00"
  }
}

Contributing

Contributions are very welcome. To contribute:

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Copyright

Copyright (c) 2013 Jeremy Walker.

Something went wrong with that request. Please try again.