Skip to content

scrapes mass vaccination sites so you can know when there's slots

Notifications You must be signed in to change notification settings

goatrocks/-ma-vax-scrape

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Pre-reqs: This is python3, specifically tested with python 3.8 on mac. It definitely won't work with python 2. I use virtualenvwrapper for managing python environments.

Steps:

Make a .env file with these options to use twilio for your notification

TWILIO_AUTH_TOKEN=

TWILIO_ACCOUNT_SID=

FROM_NUMBER=

TO_NUMBER=

Once that file is set...

run pip install -r requirements.txt

fill in your lattitude and longitude in scrape.py under the json for the walgreens section

At the bottom of the file, you can uncomment/comment out the providers you want to see

 #get_pages("ALL", "https://www.maimmunizations.org/clinic/search?location=&search_radius=All&q%5Bvenue_search_name_or_venue_name_i_cont%5D=Fenway&q%5Bclinic_date_gteq%5D=&q%5Bvaccinations_name_i_cont%5D=&commit=Search#search_results")
        client = requests.Session()
        client = bootstrap_walgreens(client)
        walgreens(client)
        cvs("MA")
        time.sleep(60)


mac users: uncomment the notify section for toasts

run python scrape.py

it will send you an sms if it finds any slots. be fast, have your info saved in autofill using one of those advanced autofill plugins

This is a little rough n tumble but hopefully it helps you!

About

scrapes mass vaccination sites so you can know when there's slots

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages