This repository contains a small script which allows to download data from some websites that follows the situation of the COVID-19 in Algeria at province level.
The data is obtained by calling the internal API of the website selected. The information gathered can differ depending on the website. Generally, they offer at least the number of cases for each province from the provinces affected by the epidemic.
The useful data will be retained and converted into a JSON file that can be saved or printed on the standard output.
$ python3 dz_covid19_data_retriever.py --source {COVID19Maghreb,COVID19Algeria} [--output-file OUTPUT_FILE] [--historical]
Get the latest data from Yassir COVID-19 Maghreb and display it:
$ python3 dz_covid19_data_retriever.py --source COVID19Maghreb
Get the historical data from COVID19Algeria COVID-19 Algeria
and save it into a JSON file named COVID19_COVID19Algeria_DZ_history.json
$ python3 dz_covid19_data_retriever_msprh.py --source COVID19Algeria --output-file COVID19_COVID19Algeria_DZ_history.json