Episcanner Downloader is a data downloader for the Episcanner application. It retrieves data related to diseases like dengue and chikungunya and saves it in a specified directory.
- Fetches data related to diseases from the Episcanner application
- Supports downloading data for specific diseases
- Saves downloaded data to a designated directory
To install Episcanner Downloader, follow these steps:
- Clone the repository:
git clone https://github.com/AlertaDengue/episcanner-downloader.git
- Navigate to the cloned directory:
cd episcanner-downloader
- Create a Conda environment using the provided YAML file:
conda env create -f conda/env-base.yaml
- conda activate episcanner
conda activate episcanner
- Install the dependencies using Poetry:
poetry install
- Create a virtual environment:
python -m venv env
- Activate the virtual environment:
source env/bin/activate
- Install the dependencies using Poetry:
poetry install
Before running Episcanner Downloader, make sure to set the required environment variables for connecting to the PSQL database. You can use the provided Makefile to create a .env file with the exported variables:
- Set the required environment variables for connecting to the PSQL database:
export PSQL_USER=<your_psql_user>
export PSQL_PASSWORD=<your_psql_password>
export PSQL_HOST=<your_psql_host>
export PSQL_PORT=<your_psql_port>
export PSQL_USER=<your_psql_database>
- Create a .env file in the project root directory with the exported variables.
make create-dotenv
To use Episcanner Downloader, follow these steps:
- Activate the project's virtual environment:
source /path/to/episcanner-downloader/venv/bin/activate
- Run the Episcanner Downloader:
mkdir data
python epi_scanner/downloader/export_data.py -s <source> -d <diseases> -o data
Replace
Episcanner Downloader is licensed under the MIT License. See the LICENSE file for more details.