Skip to content

Python bot that will constantly re-check for new appointments at a specific California DMV office

License

Notifications You must be signed in to change notification settings

jappareti/ca-dmv-appointment-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DMV Appointment Bot

This bot will constantly re-check for new appointments at a specific DMV office. If an appointment opens up for the date you want, then it books the appointment for you.

Problem

Appointments at the DMV in California can be booked out months in advance. For example, on August 17, 2017 the earliest appointment for my local DMV office was October 19, 2017 (2+ months!). What if I want to go next week? Or maybe tomorrow? Python-script-powered-by-selenium-and-BeautifulSoup to the rescue!

Solution

Anyone can cancel a DMV appointment anytime without any retribution so it's easy to assume that slots open up a lot. This script constantly checks for DMV appointments, and if there's an opening for the set date, then it books the appointment.

Requirements

  • Python 3+
  • bs4
  • selenium
  • PhantomJS (optional)

Setup and Install

  • $ git clone github://jappareti
  • $ cd dmv_appointment_scheduler
  • $ virtualenv env
  • $ source env/bin/activate
  • $ pip install -r requirements.txt
  • Open up config_sample.py and set your variables
  • Save as config.py
  • $ python book_dmv.py
  • Wait for an appointment to open up.

Notes

This script only checks for exact dates. Yes it's possible to set it up so that it's smarter (e.g within the next two weeks) but why not be pickier? The first time I ran it, it booked an appointment within 2 mins for a date only 4 days away, but YMMV!

If you don't want to use PhantomJS, then you can change br = webdriver.PhantomJS() to br = webdriver.Firefox()

This is loosely based of this script: https://gist.github.com/saikatbhadra/6629031

About

Python bot that will constantly re-check for new appointments at a specific California DMV office

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages