Vehicle Identification Numbers (VIN) are unique code used to identity individual motor vehicles. This program aims to decode a VIN number. This can provide information to be used in a number of applications, both for personal and business use.
Using CarMD's VIN API, this program is able to decode any valid 17 character VIN you want to throw at it!
- It prints the year, make, and model associated with the given Vehicle Identification Number (VIN).
- It plots the the number of cars per year in a scatter plot format. This is located in the carsproducedyear.html file.
- It uploads the Vehicle Identification Number data into a SQL database, but not before converting it into a pandas dataframe!
$ python3 vin.py
Enter a Vehicle Identification Number: 5YJRE1A37A1001010
Year/Make/Model: 2010 TESLA ROADSTER
Manufacturer: TESLA
Engine: U; Electric
Trim: Convertible
Transmission: AUTOMATIC
Image: http://downloads.innova.com/polk-vehicle-images/TESROAD1.jpg
VIN added to database
ID VIN YEAR MAKE MODEL
0 1 5YJYGAEE8MF136571 2021 TESLA MODEL Y
1 2 WBA3A5C57CF256651 2012 BMW 328
2 3 SCBZU25E82CX01501 2002 BENTLEY CONTINENTAL
3 4 WP0AA2999YS489674 2000 PORSCHE 911
4 5 1G6AF5S35E0112634 2014 CADILLAC ATS
5 6 ZHWGU6AU2ALA09235 2010 LAMBORGHINI GALLARDO
6 7 5YJRE1A37A1001010 2010 TESLA ROADSTER
When prompted, enter your 17 character Vehicle Identification Number (VIN) into the command line.
If you wish to clear the current dataset, use loadSQLfromFile followed by clearDatasetInFile within the main function.
Click here for CarMD's API documentation
To learn more about VINs visit AutoCheck.
Name | |
---|---|
Federico Gutierrez | fg42768n@pace.edu |
Nerissa Griffiths | ngriffit@villanova.edu |