Connect with us

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, Admob self-clicking. visit our contact page to get in touch with us or WhatsApp (+234) 08114313795.

Ikuesan Oluwaseun is the CEO of Ofofonobs and a Full-stack Developer. Ofofonobs.com is a Nigerian digital media and news platform launched in July 2020. Kindly check our contact page to get in touch with me.

Advertisement
Click to comment

Leave a Reply

Your email address will not be published.

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

Entertainment

Hyundai Veloster N TCR Makes World Debut in Detroit Hyundai Veloster N TCR Makes World Debut in Detroit
Entertainment2 months ago

Hyundai Veloster N TCR Makes World Debut in Detroit

Just before it sets of to conquer the race tracks of the 2019 International Motor Sports Association Michelin Pilot Challenge series,...

Reconditioned 1974 Honda CB750 Looks as If It Came Straight Out of a Museum Reconditioned 1974 Honda CB750 Looks as If It Came Straight Out of a Museum
Entertainment2 months ago

Reconditioned 1974 Honda CB750 Looks as If It Came Straight Out of a Museum

You might find it hard to believe, but this 1974 Honda CB750 was nothing more than a non-running project a few years...

Beautiful Music for Successful Wedding Videos Beautiful Music for Successful Wedding Videos
Entertainment2 months ago

Beautiful Music for Successful Wedding Videos

When it comes to wedding videos, ensuring you have the right music at hand can make all the difference. Any...

Why it’s better to have a child with someone you don’t love – Yvonne Nelson spills Why it’s better to have a child with someone you don’t love – Yvonne Nelson spills
Entertainment4 months ago

Why it’s better to have a child with someone you don’t love – Yvonne Nelson spills

Popular Ghanaian actress, Yvonne Nelson has revealed why it’s better and advisable for people to have children with people they are not...

Wizkid’s Made In Lagos Hits Half A Billion Streams On Apple Music Wizkid’s Made In Lagos Hits Half A Billion Streams On Apple Music
Entertainment4 months ago

Wizkid’s Made In Lagos Hits Half A Billion Streams On Apple Music

Nigerian superstar, Wizkid has recorded another feat with his Made In Lagos Deluxe album version with a milestone of 500M...

Blake Snell Net Worth Blake Snell Net Worth
Entertainment6 months ago

Blake Snell Net Worth

What is Blake Snell’s net worth? Net Worth: $10 Million Age: 28 Born: December 4, 1992 Country of Origin: United...

Beenie Man Net Worth Beenie Man Net Worth
Entertainment6 months ago

Beenie Man Net Worth

What is Beenie Man’s net worth? Net Worth: $4 Million Age: 47 Born: August 22, 1973 Country of Origin: Jamaica...

How to load an already used recharge card How to load an already used recharge card
Entertainment8 months ago

See how to load an already used recharge card (Topsecrets)

Have you ever gotten free Airtime Credit from MTN? If you haven’t, you’re still dulling yourself. This article will teach...

Nigerians on Twitter find humour in Oxlade's leaked s*x tape Nigerians on Twitter find humour in Oxlade's leaked s*x tape
Entertainment8 months ago

Nigerians on Twitter find humour in Oxlade’s leaked s*x tape

Full video of a fast-rising singer identified as Oxlade smashing an unidentified lady breaks the internet, Brand Spur Nigeria reports. In the tape...

Oxlade S*x Tape With Unidentified Lady Breaks Internet Oxlade S*x Tape With Unidentified Lady Breaks Internet
Breaking News8 months ago

Oxlade S*x Tape With Unidentified Lady Breaks Internet

Full video of a fast-rising singer identified as Oxlade smashing an unidentified lady breaks the internet, Brand Spur Nigeria reports. The 24-year-old whose...

ADVERTISEMENT