Dmv Scraper For Form Autofill

I have a form (attached) with some fields in it that I need to auto populate using search results from the CA DMV website at: https://mv.dmv.ca.gov/olinq2/search.do

It works like this: The user clicks ‘Perform DMV Search’ (line 190), and a search window comes up. This is where the search is performed. The user provides the Occupational License Number (OLN), clicks search, and the number is used in a query on https://mv.dmv.ca.gov/olinq2/search.do. use an OLN number of ‘E2890’ to test.

The address, city, state, zip, license number are pulled from the results and placed in the following fields in the html form. Each field has a unique name.

(search result type = input field name)
name = ‘businessName’
address = ‘streetAddress’
city = ‘city’
state = ‘state’
zip = ‘zip’
phone number = ‘daytimePhone’
license number = ‘oln’
contact person = ‘contactName’

If no results are found, then the text ‘No Matches were found’ is printed next to the ‘search’ button in the popup window.

Leave a Reply

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