DSA Practical Driving Test search script

I’ve recently had to hastily pass my practical driving test as my theory test certificate was about to expire. It’s a little well known fact that some areas are well known for their long waiting periods. Hello Isleworth in London. There’s a 1-2 month waiting list as standard for that test center, which is just too long and would tip me over my theory expiration date.

So I decided to book any date (to have a failsafe, plus a booking reference is required to update a booking), and whip up a little script that logs into the DSA booking service, search for better dates in 2 areas (Ashford and Isleworth for me) and email me if anything good pops up.

The script is written in Python and uses the great BeautifulSoup library. It’s a little rough around the edges as I didn’t plan on releasing it, and I’m certain that the code is nowhere near its potential beauty and elegance. My apologies!

Download: dsa.py

I haven’t tested it on Windows (and doubt it would work on it without some tweaking), I’ve only tested it on Linux and Mac OS. If you need a hand at running it, leave a comment. I found and booked a test in Isleworth that was 10 days away on the 2nd day of running the script.


  1. Hi Steven ?

    I need a hand at loading your script as I am having a nightmare getting a date for the Isleworth Test Centre .

    This will be very much appreciated.

    Kind regards


  2. Hi Danny,

    Sure! Whereabouts are you stuck? Have you got python with BeautifulSoup & mechanize installed?


  3. Zdravo Maria!

    To run the script you’ll need to have Python and BeautifulSoup installed. If you like, send me an email and I’ll help you set it up. :)


  4. hehe. That’s funny. I failed yesterday, and I was thinking ‘oh no, have to wait another 3 months for a new date’ then thought this morning, ‘hm, what if I wrote a python script and used beautifulsoup to check regularly’. This page came up first hit on google for ‘scripting dsa driving test’, thanks!

  5. Hi Steven,

    Please can you help me with this. how do I run this script. I failed my driving test today.


  6. Hi

    Could you help me too please as I’m not sure how to download the software and run the script.

    Many thanks


Leave a Reply

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

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>