Skip to content

corderop/elecciones-extractor

Repository files navigation

🏫 Elecciones extractor

Extract the elections results from the Goverment website. It automatically updloads the result into a Google Sheets spreadsheet.

How to use

  1. Install the requirements
poetry install --without dev
  1. Create a .env file with the variables specified in the .env.example file:
ELECCIONES_USER=myusername
ELECCIONES_PASSWORD=mypassword

GSHEET_ID=sheet_id
  1. Create a spreadsheet with three sheets with the following names:
AVANCES-RAW
RES-C-MUN-RAW
RES-S-MUN-RAW
  1. Run the script
python src/main.py

Development

  1. Install pre-commit in your computer
pip install pre-commit
  1. Install pre-commit hooks
pre-commit install

About

Get the 23J Spanish elections csv data and put it into Google Sheets

Resources

License

Stars

Watchers

Forks

Contributors

Languages

Generated from corderop/python-skeleton