froi / tracking-puertorico-covid19

This tool scrapes the official COVID-19 Puerto Rico dashboard every hour and keeps tracks of changing metrics in order to help visualize and measure progress.
https://tracking-covid-pr.froi.dev
2 stars 1 forks source link
civic-tech covid-19 open-data puerto-rico scraper

Tracking Puerto Rico COVID-19 Dashboard

This tool consumes the official COVID-19 dashboard of Puerto Rico JSON source every hour and keeps tracks of changing metrics in order to help visualize and measure progress. Data is also made available in CSV and JSON formats.

Requirements

Before running this project locally you need to have MongoDB installed.

Running

Project Setup

To install the project's Python dependencies you can user the requirements.txt or the project's Pipfile using Pipenv.

Using Pip:

> pip install -r requirements.txt

Using Pipenv

> pipenv install --three

Web

To run the Flask app execute:

> MONGODB_URI='mongodb://localhost/tracking-covid19-pr' FLASK_DEBUG=1 FLASK_APP=app/app.py flask run

Scraper

To run the JSON scrapper execute:

> MONGODB_URI='mongodb://localhost/tracking-covid19-pr' python -m app.scraper