This repo contains scripts to fetch NSW COVID-19 data for the Tracker App.
Create a new project on Firebase and enable Realtime Database by going into the corresponding tab.
Then create a service account by going into Settings > Project settings > Service accounts > Firebase Admin SDK > Generate new private key. Rename the file to keyfile.json
and place it under functions/
.
The scripts require Python 3.6+ to run.
Install the required packages:
pip3 install -r requirements.txt
Then run the following commands to fetch and add all the data:
python fetch_data_old.py # For fetching the outdated data
python main.py # For fetching the latest data