GithubHelp home page GithubHelp logo

disenodc / tse-scraper Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jinchuika/tse-scraper

0.0 0.0 0.0 15 KB

Descarga los datos de las elecciones generales de Guatemala 2019

License: Apache License 2.0

Python 25.70% Jupyter Notebook 74.30%

tse-scraper's Introduction

Tribunal Supremo Electoral TSE

Extraccion de Resultados Electorales 2019


Requisitos

  • Python3.6 - Este es un link donde puedes instalar python3.6.

Pasos

  1. Clona el repositorio en la carpeta deseada
git clone https://github.com/jinchuika/tse-scraper.git
  1. Instalar pipenv
sudo pip3 install pipenv
  1. Accediendo a la carpeta donde instalaste el proyecto cd tse-scraper instalar dependencias de python pipenv install.

  2. Para levantar el entorno virtual corre el comando

pipenv shell
  1. En el documento scraper.py reemplazar las variables en por las rutas donde los archivos se guardaran
# obtén tu propio token desde la página del TSE
#https://resultados2019.tse.org.gt/201901/
token = ''

# la carpeta donde desees guardar los datos
output_folder_raw = ''

# la carpeta donde quieras guardar las imágenes
# dentro de esta carpeta debes crear otras 5 llamadas 0, 1, 2, 3, y 4
output_folder_images = ''
  1. Por ultimo, para correr el scraper ejecuta el comando
python scraper.py

tse-scraper's People

Contributors

jinchuika avatar csanchezz avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.