Skip to content
This repository has been archived by the owner on Jul 4, 2021. It is now read-only.

Scripts to fetch NSW COVID-19 data for the tracker app.

License

Notifications You must be signed in to change notification settings

nsw-covid19-tracker/functions

Repository files navigation

NSW COVID-19 Cloud Functions

GitHub license Codacy Badge Code style: black

This repo contains scripts to fetch NSW COVID-19 data for the Tracker App.

Getting Started

Setup Firebase

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/.

Setup Database

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