aboutsummaryrefslogtreecommitdiffstats
path: root/constants.py
diff options
context:
space:
mode:
authorAlex Schofield <git@ajschof.me>2026-05-03 13:18:53 +0100
committerAlex Schofield <git@ajschof.me>2026-05-03 13:18:53 +0100
commitbb091c34aaad87fdc247e4c0679ac8488f8e3020 (patch)
tree9ea1e0d4b018beda5bf491c5fab1b2e49222eb13 /constants.py
parent4caf9b964ff975032ab0cb0fb969ce85b14a070b (diff)
downloadfuelnearme-bb091c34aaad87fdc247e4c0679ac8488f8e3020.tar.gz
fuelnearme-bb091c34aaad87fdc247e4c0679ac8488f8e3020.zip
separate main logic, constants & helper functions
Diffstat (limited to 'constants.py')
-rw-r--r--constants.py12
1 files changed, 12 insertions, 0 deletions
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"
+}
git.ajschof.me — hosted by ajschofield — powered by cgit