Search on blog:

Python: How to scrape with requests

It is example code to scrape it:

#!/usr/bin/env python3

# date: 2020.01.17

import requests

headers = {'User-Agent': 'Mozilla/5.0'}

url = ''

r = requests.get(url,  headers=headers)
data = r.json()

for item in data['seriesCollection']:
    #for key, value in item.items():
    #    print(key, value)
    print('region:', item['metadata']['region']['name'])
    print('fuel type:', item['metadata']['fuelType']['name'])
    print('value:', item['value'])
If you like it
Buy a Coffee