📮 Get email notification of OPT status & statistics every * days.
-
Get a long-running server and set up the environment. Install Python 3,
pip
,git
and other basic tools. -
Clone this repo or download a ZIP:
git clone git@github.com:geeeeeeeeek/opt-postman.git
-
Install dependencies:
pip3 install -r requirements.txt
-
Replace the parameters with your Gmail username and password:
send_email("{REPLACE_WITH_YOUR_GMAIL}", "{REPLACE_WITH_YOUR_PASSWORD}")
-
Schedule the script execution. You may want to test it locally first.
# Run once python3 main.py # Scheduled execution crontab -e
Add a line in the opened editor. The example below runs the script and sends an email at 8 am PST every morning.
00 16 * * * /usr/bin/python3 /home/ubuntu/main.py
- Case status: https://egov.uscis.gov/casestatus/mycasestatus.do
- Statistics: http://www.checkuscis.com/