The Press NYC DOE COVID interventions project will scrape data from the NYC daily COVID case map.
The schoolcase.json
file has cases from all schools, and is updated daily with new case counts.
The analysis.py
file will iterate over the history (via git
) of that file to build a historical record of cases per school.
- make sure you have
git
installedgit --version
- make sure you have
python3
installedpython3 --version
- In the
Terminal.app
(from the command line) clone the Press NYC DOE COVID interventions repositorygit clone https://github.com/pressnyc/nyc-doe-covid-interventions.git
- This will unpack the data into a directory called
nyc-doe-covid-interventions/
- From the same directory, clone this repository
git clone https://github.com/jimgraham/nyc-doe-covid-interventions-analysis.git
- This will unpack this code into a directory called
nyc-doe-covid-interventions-analysis/
- Change into the analysis directory
cd nyc-doe-covid-interventions-analysis
- Run the analysis
python3 analysis.py
The output should be
Pulling all data
Finding schools in dataset
Writing 'cases.csv'
there will now be a cases.csv
file with the data.