Giter VIP home page Giter VIP logo

vaxup's Introduction

Update 2021-07-01: This project is no longer maintained. The City of New York has discontinued VAX, and this bot has served its purpose.

vaxup ๐Ÿค–

A bot to batch fill vaccine registration forms for authorized enrollers in NYC.

Requirements

  • Python 3.9
  • ChromeDriver (Optional, required for running the ๐Ÿค–)

Installation

Clone this repository,

$ cd vaxup && pip install .

Usage

The CLI requires ACUITY_API_KEY and ACUITY_USER_ID environment variables for interacting with the Acuity API.

$ source .env # load environment variables

check

Print a table of appointments from Acuity in the console. Validates whether the information from Acuity for an appointment is compatible with VAX website. Can fix errors interactively with the --fix flag.

$ vaxup check 2021-05-04 # [--fix]

check-id

Find an appointment from Acuity by acuity_id and print information in the console. Use --add-note to tag an appointment as "SECOND DOSE SCHEDULED", "TIME NOT AVAILABLE", or "ALREADY SCHEDULED".

$ vaxup check-id 10000030 # [--add-note]

enroll (the ๐Ÿค–, requires ChromeDriver)

Register all remaining appointments on a date from Acuity on VAX webiste. Skips Acuity appointments that already have a VAX appointment number or have been tagged with one of the notes above. Using the --dry-run flag prevents the bot from submitting each forms (useful for debugging).

$ vaxup enroll 2021-05-04 # [--dry-run]

unenroll (another ๐Ÿค–, requires ChromeDriver)

Cancels an Acuity appointment that has already been registered on VAX website. This should be used sparingly, and typically in the case where an Acuity appointment is canceled. Will try to cancel the corresponding VAX appointment, and remove the VAX ID from Acuity if successful.

$ vaxup unenroll 10000030

vaxup's People

Contributors

manzt avatar

Watchers

 avatar

vaxup's Issues

Add logger

Add a logger that keeps track of successful appointment times and numbers, saves to file.

Keep track of stepper progress?

There should be a way to track progress through the site, and gracefully stop filling in / log when an applicant is unsuccessful. One way to to track the progress of the stepper here:

Screen Shot 2021-04-23 at 1 33 35 PM

or to catch any web-drive missing element exceptions and "give up" early. The latter is likely ideal.

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.