Passport Appointment Bot is a web scraping script to notify via SMS available days for passport appointment times at selected US Embassy.
Built with:
Install Selenium to automate browser
pip install selenium
Install Webdriver Manager to ensure driver version is correct for your browser - third party library provided by Sergey Pirogov
pip install webdriver-manager
Install Twilio to access text messaging API
pip install twilio
- Create an account with Twilio and get an SMS-enabled Twilio phone number. As of this writing, Twilio offers free accounts with a $15 credit.
- Copy your account SID and auth token, paste them into the appropriate spot in PassBot.py.
- Add your mobile phone number and your Twilio number to PassBot.py.
- Add the name of your choosing to the body of the text message in PassBot.py.
You can automate the script by creating a task in task scheduler for Windows or by creating a cron job for macOS and Linux.