Hi!
Working with scraping for the first time and i am near my goal.
Managed to remove everything after the wanted value, but have to remove everything before it to. Or even better just fetch the value itself without unwanted characters.
This is my code:
- platform: scrape
resource: https://www.fjordkraft.no/Templates/Fjordkraft/webservices/PriceMap.asmx/GetDailyPricesJson?regionPriceMapPageId=1
name: Fjordkraft
select: "string"
value_template: '{{ ((value.split(" ")[0]) | replace (",", ".")) }}'
unit_of_measurement: "øre/kWh"
And currently this gives this output: {“Areas”:[{“id”:“1”.“price”:"69.03
I just need the value of the “price”.
I am sure it is several ways to do this, but so far i have not managed to fix it.
Some help is very appreciated!