This script uses the API provided by covid-vaccine-spotter to send a text message when a vaccine has been located.
- Install requirements by running
pip install -r requirements.txt
- Setup a Twilio account. Free trial link: (refferal) (no refferal)
- Get a phone number
- Note your phone number, SID, and Auth Token
- Create a file named
config.json
and copy the below configuration code. Each phone number to send a message to should be listed in the "to" list.
{
"state": "IL",
"cities": ["Chicago"],
"zip_codes": [],
"to": ["+15555555555"],
"from": "+15555555555"
}
- Edit the values to setup your search parameters and phone number details.
- Save the updated file.
- Call the program using
python3 script.py SID AUTH_TOKEN
where SID and AUTH_TOKEN are replaced with your proper tokens from twilio.
- Install requirements by running
pip install -r requirements.txt
- Create a file named
config.json
and copy the below configuration code.
{ "state": "IL", "cities": ["Chicago"], "zip_codes": [] }
- Edit the values to setup your search parameters.
- Save the updated file.
- Call the program using
python3 script.py
Created for Major League Hacks: Share challenge, day 3.