Skip to content

Instantly share code, notes, and snippets.

View harunme3's full-sized avatar
🎯
App Development

RAHUL KUMAR GUPTA harunme3

🎯
App Development
  • Lucknow UP
View GitHub Profile
@nikhilweee
nikhilweee / registration_info.py
Last active June 27, 2024 02:12
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]