Connect with us
Padiwise Banner

Others

Python program to extract car information from VIN number

Published

on

Python program to extract car information from VIN number

Hey geek! in this tutorial we are going to learn how to extract the car information from VIN using Python.

VIN stands for Vehicle Identification Number, which is an alphanumeric number of length 17, which consists of digits as well as alphabets.

VIN confirms our car own identity and also it has other uses too:

  1. It is used in warranty claims.
  2. For thefts and insurance coverage.
  3. And also for track calls.

First, we need to install a module in order to extract the information using VIN.

Installation of vininfo in Python

vininfo is a module that needed to be in our system.
The following command will help us in doing that.

pip install vininfo

With this command, we have installed vinfo in our system.
Let us code this out.

Python program to extract car information from VIN number

from vininfo import Vin
x = Vin('MAJGERTYKGHG56037')    
print(x.country)                  # the country to whcih the vehicle belongs
print(x.manufacturer)             # Name of the manufacturer
print(x.wmi)                      
print(x.vds)
print(x.vis)
print(x.region)

In the above code,

x is an object and with that object, we are extracting various information regarding the vehicle.

wmi stands for world manufacturer identifier,
vds stands for vehicle descriptor section and
vis stands for vehicle identification section.
The x.region in the code refers to, which continent the vehicle is manufactured in.

Output

India
Fords
MAJ
GERTYK
GHG56037
Asia

That’s it for this tutorial.

I hope you enjoyed it while reading.
If you have any queries please be free to comment out, we are with you.
Have a nice day.

Keep learning, keep enjoying.


Disclaimer:  We sell any type of script/themes/plugins, we also offer web design/developement, graphics design, SEO, Social media followers, VTU Platform and more. visit our contact page to get in touch with us or WhatsApp (+234) 08114313795. data
Click to comment

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Entertainment

Entertainment6 months ago

John Okafor Mr. Ibu Biography: Net Worth, Family, Movies And More

John Okafor Mr. Ibu Biography & Net Worth ( Fully Updated ) John Okafor is more commonly known as Mr....

Entertainment6 months ago

Brely Evans Biography: Husband, Books, Age, Career

Brely Evans, who was born on December 9, 1972, in Oakland, California, and raised in Milwaukee, Wisconsin, is a multi-talented...

Entertainment6 months ago

Meet Gbadebo Rhodes Vivour, The Labour Party Governorship Candidate In Lagos State 

Gbadebo Rhodes Vivour profile Gbadebo Chinedu Rhodes-Vivour, popularly known as GRV, is a Nigerian architect, activist, and politician born on...

Entertainment6 months ago

Yinka Okeleye Biography: Age, State Of Origin, Education, Wife, Songs, Girlfriend

Adeyinka Okeleye is a talented Gospel singer and worship leader from Ogun State, Nigeria. He currently serves as the Music...

Entertainment6 months ago

Sunmisola Agbebi Biography: Age, Songs, Family, Boyfriend, Net worth, Education

Sunmisola Elizabeth Agbebi is a talented Nigerian gospel singer with a distinct and energetic style. She is 24 years old...

Entertainment6 months ago

Meet Beatrice Itubo, The LP Governorship Candidate In Rivers State

Beatrice Itubo, the Labour Party gubernatorial candidate for the 2023 governorship election in Rivers State was born on Sunday, June...

Entertainment6 months ago

Meet Somachi Chris Asoluka , The New CEO Of Tony Elumelu Foundation

Somachi Chris Asoluka was announced as the new Chief Executive Officer of Tony Elumelu Foundation on January 9, 2023. She...

Entertainment6 months ago

Tasha Cobbs Leonard Christmas Family Photos With Husband And Children

It’s December 26 and everyone especially married people is sharing their beautiful family photos with matching pajamas . Well, famous...

Entertainment6 months ago

10 THINGS YOU SHOULD KNOW ABOUT DEBORAH PAUL ENENCHE

Deborah Paul Enenche was born on 28 of March 1995 2. She is a Nigerian top-rated gospel singer and first...

Entertainment6 months ago

Lillian Mutambo Biography: Age, Investment , Marriage And More

Lillian Mutambo is a 39 year -old Zambian social worker and youtuber based in the United Kingdom. Music Career Lily...