Global Entry Interview Openings Checker
Scheduling an interview for your Global Entry application is hard. Some enrollment centers are months out. But they tend to sneakily add slots in the near future. This script will alert you when that happens.
This script uses the new (2017-10) but undocumented API at
https://ttp.cbp.dhs.gov/schedulerapi/
to inform you of Global Entry
interview openings.
There is another project on GitHub that used to accomplish the same thing, but the new DHS web site broke it. I found it only after I got this thing working, so I thought I'd post this anyway for whomever may benefit from it.
Setup
- If you don't have a Twilio account, create one for free, and create a free phone number. This is where your texts will originate from
- Install the dependencies
pip install -r requirements.txt
- Copy
config.py.template
to a new fileconfig.py
- Edit
config.py
:- Enter your Twilio tokens
- Enter your Twilio 'from' phone number
- Enter your desired destination cell number
- Edit the list of locations. The key can be any name you like. The ID must match the location you desire; you can use a browser's developer mode to inspect API requests to find the locations you need. More info on finding locations is here.
- Optionally edit the start date and end date; the default uses today as the start and adds 8 weeks to get the end date
- add this script to your crontab (see virtualenv notes). Direct the output to a log file to keep track of it
- wait for it