/french-consulate-ping

Ping the French Rendez-Vous creator site to check for cancellations

Primary LanguagePython

Ping the French Consulate for cancellations

Being American, I need a visa to go to 42 in Paris.

I created this script to ping the French consulate's website for creating an appointment to notify me of any cancellations.

Setup

# create a couple temp files with email information
echo "myemail@gmail.com" > /tmp/to_address.txt
echo "notifyemail@gmail.com" > /tmp/from_address.txt
echo "MyEmailPassword" > /tmp/email_password.txt

# clone this repo
cd ~
git clone https://github.com/mokolodi1/french-consulate-ping

# install dependencies
sudo apt install python python-pip
sudo pip install requests bs4 lxm

# set up cron to run it every 5 minutes
(crontab -l ; echo "*/5 * * * * python ~/french-consulate-ping/ping_appointment.py >> ~/ping_logs.txt")| crontab -