From bb091c34aaad87fdc247e4c0679ac8488f8e3020 Mon Sep 17 00:00:00 2001 From: Alex Schofield Date: Sun, 3 May 2026 13:18:53 +0100 Subject: separate main logic, constants & helper functions --- constants.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 constants.py (limited to 'constants.py') diff --git a/constants.py b/constants.py new file mode 100644 index 0000000..bb57cb8 --- /dev/null +++ b/constants.py @@ -0,0 +1,12 @@ +ENDPOINT = "https://www.fuel-finder.service.gov.uk/internal/v1.0.2/csv/get-latest-fuel-prices-csv" + +SORT_KV = { + "e10": "e10_price", + "e5": "e5_price", + "b7s": "diesel_price", + "distance": "distance", +} + +HEADERS = { + "User-Agent": "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_4; en-US) AppleWebKit/533.45 (KHTML, like Gecko) Chrome/48.0.2094.221 Safari/602" +} -- cgit v1.2.3