Script for retrieving some statistics about COVID-19 data in Algeria.
# DZ COVID19 Data Retrieval
## About
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.
## حول
هذا المستودع يحوي برنامجا نصيا صغيرا يسمح يتنزيل بيانات من بعض المواقع التي تتبع وضع
كوفيد-19 في الجزائر على المستوى الولائي.
تمّ الحصول على هذه البيانات باستدعاء واجهة البرمجة التطبيقية الداخلية للموقع الشبكي المختار. المعلومات
الملتقطة قد تختلف اعتمادا على الموقع الشبكي. عادة، يوفرون على الأقل عدد الحالات لكل ولاية من
الولاية المتأثّرة بالوباء.
يتمّ ابقاء البيانات المفيدة وتحويلها إلى ملف JSON يمكن حفظه أو طباعة محتواه في المخرج القياسي.
## Usage
```
$ python3 dz_covid19_data_retriever.py --source {COVID19Maghreb,ArcGisMaps} [--output-file OUTPUT_FILE] [--historical]
```
### Examples
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 ArcGisMaps COVID-19 Algeria
and save it into a JSON file named `COVID19_ArcGisMaps_DZ_history.json`
```
$ python3 dz_covid19_data_retriever.py --source ArcGisMaps --historical --output-file COVID19_ArcGisMaps_DZ_history.json
```