Skip to content

Instantly share code, notes, and snippets.

View NOTtheKRish's full-sized avatar

Rishigesan Gurunathan NOTtheKRish

View GitHub Profile
@prolongservices
prolongservices / 00 Indian RTO Vehicle registration in Python,PHP and Java ,Android.md
Created January 20, 2020 01:17
Get vehicle info from an Indian registration number

PYTHON

Programmatically extract owner info from Indian registration numbers

Usage

$ python owner.py MH02CL 0555
Registration No:
MH02CL0555
@nikhilweee
nikhilweee / registration_info.py
Last active January 28, 2026 03:37
Get vehicle info from an Indian registration number
import sys
import requests
from bs4 import BeautifulSoup, SoupStrainer
home_url = 'https://parivahan.gov.in/rcdlstatus/'
post_url = 'https://parivahan.gov.in/rcdlstatus/vahan/rcDlHome.xhtml'
# Everything before the last four digits: MH02CL
first = sys.argv[1]
# The last four digits: 0555
second = sys.argv[2]