Skip to content

A simple CLI tool to fetch the current electricity price in Finland, using the data from https://sahko.tk.

License

Notifications You must be signed in to change notification settings

elias-ka/sahkon-hinta

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sahkon-hinta

The program uses Playwright to spin up a headless browser and fetch the data from the website. The data is then parsed and printed to the console in a nice format.

Done as a part of a Cloud Services course at the Oulu University of Applied Sciences.

This was a fun learning experience, as I had never used Playwright before nor published a package to PyPI.

Installation

Just install the package from PyPI:

python3 -m pip install sahkon-hinta

Example output

$ sahkon-hinta
>                 Sähkön hinta (snt/kWh) 24% alv
> Nyt   Päivän alin  Päivän ylin  7pv keskihinta  28pv keskihinta
> 6.96     5.27         11.76          5.80            6.46
>                         Lähde: sahko.tk

About

A simple CLI tool to fetch the current electricity price in Finland, using the data from https://sahko.tk.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages