A CLI tool to get the current electricity price in Finland using sahko.tk
Project description
sahkon-hinta
A simple CLI tool to fetch the current electricity price in Finland, using the data from sahko.tk.
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
sahkon_hinta-1.0.1.tar.gz
(2.4 kB
view hashes)
Built Distribution
Close
Hashes for sahkon_hinta-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f9caa1076d35c2ada2c6a26ac813e3d70ffede824e2c99214248cb259d6d4f19 |
|
MD5 | d08b82f649111a29f09588a066f951c7 |
|
BLAKE2b-256 | 8c9ab538f871948bf930cdfdffac508f33c153f95115dda19a37223fb290edec |