Mar-13-2021, 09:51 PM
Also you don't need to
import json
,Requests can handle this alone.import requests response = requests.get('https://api.resrobot.se/v2/departureBoard?REDACTED') # Will now be a dictionary json_data = response.json()