Scraping process to download each summary vote totals (JPG or PDF files) published by the Salvador government. There are 16 million votes approximately and the summary vote totals will be used by the independent project of the Guatemalan non-profit organization FundacionHCG.org and FiscalDigital.net
- Python 3.8+
- Poetry 1.7+
- Chrome Browser for Testing
- Chrome Driver for Testing
Please read and execute each step below:
Add Poetry to your PATH:
$promt> export PATH="$HOME/.local/bin:$PATH"
Also you can add Poetry to your .bashrc file:
$promt> nano ~/.bashrc
Install poetry by script:
$promt> ./install-poetry.sh
Command to tell Poetry which Python version to use for the current project:
$promt> poetry env use 3.12
Activating the virtual environment:
$promt> poetry shell
Installing dependencies:
$(elecciones-salvador-py3.12)> poetry install --no-root
Download both Chrome App and Driver for Testing and copy each one in the specific folder:
- Chrome App: .src/scraping/browser/app
- Chrome Driver: .src/scraping/browser/driver
Displaying the environment information:
$promt> poetry env info
Adds required packages to your pyproject.toml and installs them:
$promt> poetry add boto3
Deactivate the virtual environment and exit:
$(elecciones-salvador-py3.12)> exit
# To deactivate the virtual environment without leaving the shell use deactivate
$(elecciones-salvador-py3.12)> deactivate
A base code was created inside the folder src please check out the README.md file.
That's all for now ...