{"id":37622113,"url":"https://github.com/sdelquin/pvpc","last_synced_at":"2026-01-16T10:40:57.807Z","repository":{"id":45464477,"uuid":"512567442","full_name":"sdelquin/pvpc","owner":"sdelquin","description":"PVPC - Precio voluntario para el pequeño consumidor","archived":false,"fork":false,"pushed_at":"2025-05-01T08:16:32.000Z","size":1130,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-01T09:26:01.590Z","etag":null,"topics":["automation","dataset","electricity","energy","firefox","power","python","scraping","selenium","selenium-webdriver"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sdelquin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2022-07-11T00:10:14.000Z","updated_at":"2025-05-01T08:16:36.000Z","dependencies_parsed_at":"2023-02-18T19:15:27.358Z","dependency_job_id":null,"html_url":"https://github.com/sdelquin/pvpc","commit_stats":{"total_commits":241,"total_committers":2,"mean_commits":120.5,"dds":0.0954356846473029,"last_synced_commit":"d4d31ce9f5d38ad7dddf09a9bda0abfc94eb8fc3"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sdelquin/pvpc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sdelquin%2Fpvpc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sdelquin%2Fpvpc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sdelquin%2Fpvpc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sdelquin%2Fpvpc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sdelquin","download_url":"https://codeload.github.com/sdelquin/pvpc/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sdelquin%2Fpvpc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28478050,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T06:30:42.265Z","status":"ssl_error","status_checked_at":"2026-01-16T06:30:16.248Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["automation","dataset","electricity","energy","firefox","power","python","scraping","selenium","selenium-webdriver"],"created_at":"2026-01-16T10:40:57.720Z","updated_at":"2026-01-16T10:40:57.793Z","avatar_url":"https://github.com/sdelquin.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PVPC\n\n![REE](ree.svg)\n\nRegular rate _PVPC (Precio Voluntario para el Pequeño Consumidor)_ (in spanish) is a way of fixing the electricity price. It was designed and is regulated by Spanish Government. It only concerns to clients within _regulated electricity market_.\n\nThis price es calculated **daily** by _Red Eléctrica de España (REE)_ (in spanish) in terms of hourly prices of market energy. Electricity price **can change hourly** according to the evolution of electric market.\n\nPrices are daily published at [Red Eléctrica Española](https://www.esios.ree.es/es/pvpc) website.\n\n## Aim\n\nThe idea behing this project is to make a daily scraping on REE website and get the PVPC of next day, adding these new data to an existing file containing historical data.\n\n## Data\n\nPVPC data is available on file [pvpc.csv](data/pvpc.csv). There is information since 1st April 2014 with records during 24 hours per day and data concerning the Spanish Mainland, Balearic and Canary Islands (peaje 2.0 TD).\n\nEach record has got these two fields:\n\n- **Timestamp** with isoformat `YYYYMMDDTHHMMSS`\n- **PVPC price** as a floating number (max 5 decimals) whose measurement unit is €/kWh\n\n**This file is updated daily in an automatic manner.**\n\nDatasets are also available at [Kaggle](https://www.kaggle.com/sdelquin/pvpc-es).\n\n## Setup\n\nCreate a Python virtualenv and install requirements:\n\n```console\n$ python3.10 -m venv venv\n$ source venv/bin/activate\n$ pip install -r requirements.txt\n```\n\nOptionally, you can create a `.env` file in the working directory to overwrite settings from [settings.py](settings.py).\n\n### Other requirements\n\nThere are few external requirements for the project to work properly:\n\n- [geckodriver](https://github.com/mozilla/geckodriver/releases)\n- [Firefox Browser](https://www.mozilla.org/firefox/download/)\n\n## Usage\n\n```console\n$ python main.py --help\nUsage: main.py [OPTIONS]\n\nOptions:\n  -v, --verbose      Increase loglevel to debug.\n  -t, --tomorrow     Get kWh prices for tomorrow.\n  -x, --recreate     Recreate output data file.\n  -d, --dates TEXT   Date(s) to be scraped. If a range is wanted, use YYYY-MM-\n                     DD:YYYY-MM:DD (both included).  [default: 2022-07-13]\n  -o, --output PATH  Output file to store results.  [default:\n                     /apps/pvpc/data/pvpc.csv]\n  --help             Show this message and exit.\n```\n\nA common usage would be just `python main.py -v`. It will try to get electricity prices for today. After each execution, new data is appended to [pvpc.csv](data/pvpc.csv).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsdelquin%2Fpvpc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsdelquin%2Fpvpc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsdelquin%2Fpvpc/lists"}