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

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.

Notifications You must be signed in to change notification settings

froi/tracking-puertorico-covid19

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

81 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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.

Topics

Resources

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 67.8%
  • HTML 27.3%
  • JavaScript 2.6%
  • CSS 2.3%