Skip to content

Scraper for the ESIOS website performed during a masters practicum course.

License

Notifications You must be signed in to change notification settings

albert-queralto/scraping-energy-prices-spain

Repository files navigation

Webscraping of Energy Prices Data and Renewable Energy Production

Install Dependencies

pip install -r requirements.txt

Description

This repository contains the code, data and documentation done in the framework of a practice exercise for the class Tipologia i cicle de vida de les dades from the Master in Data Science of the Universitat Oberta de Catalunya.

The exercise consisted in extracting data using Web Scraping with Python from the website https://www.esios.ree.es/es/.

Disclaimer: Express consent has been given by Red Eléctrica de España, the source and propietary of the data, to perform this exercise and under no circumstance they support the reutilization of the data. We express our intention to use the data for the purpose of the activity and decline any commercial interest in the use of the data extracted.

Authors

The authors of this activity are: Esther Manzano i Martín and Albert Queraltó i López.

Source Code

  • src/main.py: starts the scraping process.
  • src/navigation.py: contains all classes and methods that enable the navigation to the different pages and to the elements of each page.
  • src/data_scraper.py: contains all classes and methods that enable the extraction of the data from the different pages.
  • src/font_code_pointers.py: contains classes that classify the variables with information to locate the different page elements.
  • src/support_functions.py: contains additional classes and methods to have cleaner code in the main page, as well as the functionality to save the data and get missing data.

Dataset

The data extracted from the website is stored in the folder dataset. The data is stored in a unique .csv file and contains hourly data in a range of dates from 01-11-2020 to 31-10-2022.

The dataset has been published in Zenodo and it can be accessed through the following link: https://doi.org/10.5281/zenodo.7335618

About

Scraper for the ESIOS website performed during a masters practicum course.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages