{"id":20618181,"url":"https://github.com/tddschn/ncdmv-reservation","last_synced_at":"2025-07-20T14:04:22.540Z","repository":{"id":215667384,"uuid":"739118991","full_name":"tddschn/ncdmv-reservation","owner":"tddschn","description":"Automated availability checking and monitoring for DMV offices across the state of North Carolina.","archived":false,"fork":false,"pushed_at":"2024-07-05T23:26:43.000Z","size":69,"stargazers_count":1,"open_issues_count":3,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-17T17:23:22.899Z","etag":null,"topics":["automation","dmv","github-actions","ncdmv","python","selenium"],"latest_commit_sha":null,"homepage":"https://teddysc.me/blog/ncdmv-reservation","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tddschn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-01-04T20:17:58.000Z","updated_at":"2024-01-05T18:38:48.000Z","dependencies_parsed_at":"2025-04-15T11:48:46.277Z","dependency_job_id":null,"html_url":"https://github.com/tddschn/ncdmv-reservation","commit_stats":null,"previous_names":["tddschn/ncdmv-reservation"],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/tddschn/ncdmv-reservation","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tddschn%2Fncdmv-reservation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tddschn%2Fncdmv-reservation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tddschn%2Fncdmv-reservation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tddschn%2Fncdmv-reservation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tddschn","download_url":"https://codeload.github.com/tddschn/ncdmv-reservation/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tddschn%2Fncdmv-reservation/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266135685,"owners_count":23881803,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["automation","dmv","github-actions","ncdmv","python","selenium"],"created_at":"2024-11-16T12:07:29.788Z","updated_at":"2025-07-20T14:04:22.521Z","avatar_url":"https://github.com/tddschn.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NC DMV Reservation Tools\n\n\u003e Dealing with DMV is often a frustrating experience. But it doesn't have to be!\n\nAutomated availability checking and monitoring for DMV offices across the state of North Carolina, tested to work on Jan 2024.\n\nNo feature will be added unless I need it myself. If you need additional features, you're welcome to contribute a PR. :)\n\nhttps://teddysc.me/blog/ncdmv-reservation\n\n- [NC DMV Reservation Tools](#nc-dmv-reservation-tools)\n  - [Background](#background)\n  - [Quick Start](#quick-start)\n    - [Installation](#installation)\n    - [Running](#running)\n  - [How it works](#how-it-works)\n  - [Continuous Monitoring](#continuous-monitoring)\n    - [On your local machine](#on-your-local-machine)\n    - [GitHub Actions](#github-actions)\n  - [Thoughts](#thoughts)\n  - [Develop](#develop)\n  - [Links](#links)\n\n## Background\n\nDMVs within reasonable distance of where I live are always completely booked, so I made this tool to help me spot when someone cancelled their appointment so I could snag it.\n\nSince the tool was made for self-use only, currently it's hard-coded to only checks for the appointment type of `1st time Driver License Test (over 18)`. If you need additional features, you're welcome to contribute a PR. :)\n\nI've used it to spot availability slot twice after running it for a few hours, and secured my reservation. :)\n\n## Quick Start\n\n### Installation\n\n```bash\n# install google-chrome / google-chrome-stable, and\n# install chromedriver with your favorite package manager and put it in your $PATH\nbrew install chromedriver\n# or sudo pacman -S chromedriver\n\n# python3.12+ required\npipx install ncdmv-reservation\n```\n\n### Running\n\n```\n$ ncdmv-driver-license-office-availability | jq | tee ncdmv.json\n[\n  {\n    \"is_reservable\": true,\n    \"office_name\": \"Aberdeen\",\n    \"street_address\": \"521 S. Sandhills Blvd., Aberdeen, NC\",\n    \"zip_code\": \"28315\"\n  },\n  {\n    \"is_reservable\": true,\n    \"office_name\": \"Ahoskie\",\n    \"street_address\": \"242 N.C. 42 W., Ahoskie, NC\",\n    \"zip_code\": \"27910\"\n  },\n  {\n    \"is_reservable\": true,\n    \"office_name\": \"Albemarle\",\n    \"street_address\": \"611 Concord Road, Albemarle, NC\",\n    \"zip_code\": \"28001\"\n  },\n  {\n    \"is_reservable\": true,\n    \"office_name\": \"Andrews\",\n    \"street_address\": \"1440 Main St., Andrews, NC\",\n    \"zip_code\": \"28901\"\n  },\n  {\n    \"is_reservable\": true,\n    \"office_name\": \"Asheboro\",\n    \"street_address\": \"2754 U.S. 220 Business South, Asheboro, NC\",\n    \"zip_code\": \"27205\"\n  },\n  ...\n]\n```\n\nFiltering for the DMV office you're interested in with `jq`:\n\n```\n$ \u003cncdmv.json jq '.[] | select(.office_name == \"Raleigh West\") | .is_reservable' -r\nfalse\n# so it's completely booked (the `Raleigh West` office)\n```\n\n\n\n## How it works\n\n`ncdmv-driver-license-office-availability` spins up a chrome instance to click through the very user friendly DMV site, scrap the page, and convert it to structured JSON.\n\nUse the `-H, --no-headless` option to see the chrome instance in action.\n\n\n## Continuous Monitoring\n\n### On your local machine\n\nI found this approach more convenient for me.\n\n```bash\ndmv () {\n\tncdmv-driver-license-office-availability | jq '.[] | select(.office_name == \"Raleigh West\") | .is_reservable' -r\n\n}\n\n# replace `say` if you're not on macOS\n# you can change the frequency of the check by changing the `sleep` duration\ndmv_monitor() {\n\t(while :; do [[ $(dmv) == true ]] \u0026\u0026 say 'go to dmv and reserve now'; sleep 60; done)\u0026\n}\n\n# start monitoring every 60s, in the background\n# don't close your terminal tab :)\ndmv_monitor\n\n# to stop it, run\n# kill %1\n# or just close the terminal tab. :)\n```\n\n### GitHub Actions\n\nEmail notification via sendgrid if the DMV office of your choice is reservable.\n\n[The workflow file](https://gist.github.com/tddschn/a3da8a200f3599b29533e02945264d3f)\n\n\n\n\n## Thoughts\n\nAfter I wrote this I remembered that I should check GitHub first to see if someone else has already done it. \n\nFortunately, their solutions are outdated, and I did not reinvent the wheel. :)\n\n\n## Develop\n\n```\n$ git clone https://github.com/tddschn/ncdmv-reservation.git\n$ cd ncdmv-reservation\n$ poetry install\n```\n\n## Links\n\n- Blog post: https://teddysc.me/blog/ncdmv-reservation\n- Source code: https://github.com/tddschn/ncdmv-reservation\n- PyPI: https://pypi.org/project/ncdmv-reservation/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftddschn%2Fncdmv-reservation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftddschn%2Fncdmv-reservation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftddschn%2Fncdmv-reservation/lists"}