Provides information about COVID-19 in Turkey.
- Gets data directly from Republic of Turkey Ministry of Health COVID-19 information website.
- Last day's statistics:
- All statistics:
- Checks the website every n (default is 300 in script) seconds, if anything changes in the stats script updates it's own data.
- Provides an API for today's data, total data and a timeseries dataset for days.
-
Clone this repository
git clone https://github.com/ykursadkaya/covid19-turkey-api.git cd covid19-turkey-api
-
Build Docker image
docker build -t covidapi .
-
Run container
docker run -p <external-port>:5000 --name <container-name> covidapi
-
Install Python 3.8.x or later (script has walrus assignment)
-
Install pip for Python3
-
Clone this repository
git clone https://github.com/ykursadkaya/covid19-turkey-api.git cd covid19-turkey-api
-
Install required Python packages
pip3 install -r requirements.txt
-
Run script
python3 app.py