A small script to fetch current daily oil price via Boilerjuice.
- python3
- requests
Note: Using get_price_from_soup() will require BeautifulSoup and selenium.
$ python get_oil_price.py
114.69p
Requests to priceChart.inc.php
require the following query parameters
0: UK
1: UK
2: Northern Ireland
3: England
4: Scotland
5: Wales
Price history for 'x' days
1: Heating Oil
2: Red Diesel
Other params included by the website requests but have unknown purpose.
c
va
ex