The MA Immunization website is simply horrible 🤦🏻♂️.
The other websites that aggregate infos are OK, but they need to be refreshed 🤯.
This project uses command line 🚀, makes a request every few seconds ⏰ and prints in the terminal 🐚 direct links to the site to book an appointment for the available date.
Right now it supports the few locations closer to Boston: others can be added in urls.py.
Python 3.6+ (2 is dead) is the only requirement. If you are not sure which python you are running, then try to run
> python --versionIf it says something like 2.7 you are probably running the system python.
In this case you will probably have also a python3 and a pip3 available,
but you might need to run pip3 as superuser.
> git clone https://github.com/giocalitri/maimmunization_watcher.git
> cd maimmunization_watcher
> pip install -r requirements.txtIf for any reason the installation of the requirements fails, try to install the strict dependencies only:
> pip install beautifulsoup4 requests htmlmin> python watch_site.py- Remember that, on Mac, Command ⌘ + Mouse Click opens the link directly in the browser
- Remember to stop the script when not using it. There is throttling implemented, but you do not want your IP banneded for running it for days straight!