Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

COES Scraper

Pipeline para extracción, procesamiento incremental y almacenamiento de datos de despacho eléctrico desde COES.

Features

  • Scraping automático
  • Detección de cambios por hash
  • Procesamiento incremental
  • Validación de datos
  • Almacenamiento en SQLite

Estructura

src/

  • scraper.py
  • downloader.py
  • parser.py
  • merge.py
  • validator.py
  • db.py

1. Generar clave SSH

ssh-keygen -t ed25519 -C "tu_email@ejemplo.com"
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_ed25519
cat ~/.ssh/id_ed25519.pub

Ve a GitHub → Settings → SSH and GPG keys → New SSH key y copia el contenido

2. Clonar repositorio (SSH)

git clone git@github.com:RommelPa/scrapping.git
cd scrapping

3. Crear entorno virtual

python -m venv .venv
.venv\Scripts\activate

4. Instalar dependencias

pip install -r requirements.txt

5. Estructura necesaria

mkdir data\raw

5. Ejecutar

python main.py

Output

Datos almacenados en:

data/coes.db

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages