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

Home Page:https://tracking-covid-pr.froi.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 use the requirements.txt or the project's Pipfile using Pipenv.

Using Pip:

> pip install -r requirements.txt

Using Pipenv

> pipenv install --three

Windows 10 Setup

To install the project's Python dependencies on Windows 10, you must run scripts\install_windows.bat

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

About

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


Languages

Language:Python 69.4%Language:HTML 27.1%Language:JavaScript 2.7%Language:CSS 0.6%Language:Batchfile 0.2%