Skip to content

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

License

Notifications You must be signed in to change notification settings

sebaxtian/elecciones-salvador

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

elecciones-salvador

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

Requirements

How to use

Please read and execute each step below:

Step 1

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

Step 2

Command to tell Poetry which Python version to use for the current project:

$promt> poetry env use 3.12

Step 3

Activating the virtual environment:

$promt> poetry shell

Step 4

Installing dependencies:

$(elecciones-salvador-py3.12)> poetry install --no-root

Step 5

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

Optional

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

Web Scraping - Elecciones Salvador

A base code was created inside the folder src please check out the README.md file.


That's all for now ...


License

MIT License

CC BY-NC-SA 4.0

About me

https://about.me/sebaxtian

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published