Skip to content

this repository contains code for extracting, cleaning, and publishing coronavirus-2 data from moroccan health ministry PDF files, in useful formats (CSV, JSON, EXCEL, REST API..)

License

Notifications You must be signed in to change notification settings

moun3imy/morocovid

Repository files navigation

Requirements

  1. Java Runtime with the PATH set to it
  2. Python >=3.5

Running

  1. download the zip archive of the repo or clone it

  2. unzip the file and cd into it : unzip morocovid--master; cd morocovid--master

  3. create a virtual environment for the project python -m venv env

  4. activate the environment by running : env\Scripts\activate

  5. install the requirements : pip install -r requirements.txt

  6. run the project : python main.py

Results

  1. covid-19 statistics per city, in CSV format :
    The results are generated in the folder CSVs, the link is : https://github.com/moun3imy/morocovid/blob/master/CSVs/corona_{day}-{month}-{year}.csv
    day, month and year should be provided in two digit format, without any leading zeros in case it's a single digit

  2. covid-19 statistics nationally :

execute : python read_stats.py
this script will generate a dictionary containing all necessary statistics about COVID-19 on a national level

  1. generate all coronavirus-2 data for today :

execute : python .\covid_stats_json.py
this script will generate a dictionary containing all coronavirus-2 data for today

About

this repository contains code for extracting, cleaning, and publishing coronavirus-2 data from moroccan health ministry PDF files, in useful formats (CSV, JSON, EXCEL, REST API..)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages