Extract the elections results from the Goverment website. It automatically updloads the result into a Google Sheets spreadsheet.
- Install the requirements
poetry install --without dev- Create a
.envfile with the variables specified in the.env.examplefile:
ELECCIONES_USER=myusername
ELECCIONES_PASSWORD=mypassword
GSHEET_ID=sheet_id- Create a spreadsheet with three sheets with the following names:
AVANCES-RAW
RES-C-MUN-RAW
RES-S-MUN-RAW
- Run the script
python src/main.py- Install pre-commit in your computer
pip install pre-commit- Install pre-commit hooks
pre-commit install