Extracts meter readings from the HTML of the Octupus Energy meter readings page.
This can be ran locally (extractReadings.js
) or installed as a temporary extension on Firefox.
This will output the readings in a CSV format (without a header):
24th Jun 2022,11054
30th May 2022,10829
30th Apr 2022,10539
- Go to meter readings page on Octopus Energy
- Refresh the page so that the extension loads (you'll see a "Download readings" button appear)
- Scroll down until you've loaded all of the readings you want to extract
- Press the "Download readings" button near the top to download
- Go to meter readings page on Octopus energy
- Find (or inspect element) the
<div>
containing the meter readings
<div class="MeterReadingHistorystyled__StyledReadingsContainer-sc-1mqak03-0 ...">...</div>
- Save the
<div>
along with its children into a.html
file - Run the extractor using Node.js. Pass the
.html
file as the first argument and an arbitrary output file as the second argument
node extractReadings.js gas-reading.html gas.csv