Coder Social home page Coder Social logo

-ma-vax-scrape's Introduction

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!

-ma-vax-scrape's People

Contributors

goatrocks avatar

Stargazers

 avatar

Watchers

 avatar  avatar

-ma-vax-scrape's Issues

RESOLVED: Setup instructions differ for Windows 10 for Python 3.

Hey there, running "pip install -r requirements.txt" I get: "ERROR: Could not find a version that satisfies the requirement soupsieve==2.2 (from -r requirements.txt (line 10)) (from versions: 1.2, 1.2.1, 1.3, 1.3.1, 1.4,
1.5, 1.6, 1.6.1, 1.6.2, 1.7, 1.7.1, 1.7.2, 1.7.3, 1.8, 1.9, 1.9.1, 1.9.2, 1.9.3, 1.9.4, 1.9.5, 1.9.6)
ERROR: No matching distribution found for soupsieve==2.2 (from -r requirements.txt (line 10))"

and, when running "python scrape.py" I get: " File "scrape.py", line 118
url = f"https://www.cvs.com/immunizations/covid-19-vaccine.vaccine-status.MA.json?vaccineinfo"
^
SyntaxError: invalid syntax"

I don't see what could be wrong with that string, but I'm not a python guy.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.