Skip to content

Instantly share code, notes, and snippets.

@schlan
schlan / esb_smart_meter_stats.py
Last active July 19, 2024 21:56
Download Smart Meter stats from https://myaccount.esbnetworks.ie
#!/usr/bin/env python3
import requests
from bs4 import BeautifulSoup
import re
import json
from datetime import datetime, timedelta, timezone
def load_esb_data(user, password, mpnr, start_date):
s = requests.Session()