Looking to sharpen my data science skills. I am practicing url data pulls from a sports site and the json file has multiple nested dictionaries. I would like to be able to pull this data to map my own custom form of the leaderboard in matplotlib, etc., but am having a hard time getting the json to a workable df.
The main website is: https://www.usopen.com/scoring.html
Looking at the background I believe the live info is being pulled from the link listed in the short code below. I'm working in Jupyter notebooks. I can get the data successfully pulled.
But as you can see, it is pulling multiple nested dictionaries which is making it very difficult in getting a simple dataframe pulled.
Was just looking to get player, score to par, total, and round pulled. Any help would be greatly appreciated, thank you!
import pandas as pd
import urllib as ul
import json
url = "https://gripapi-static-pd.usopen.com/gripapi/leaderboard.json"
response = ul.request.urlopen(url)
data = json.loads(response.read())
print(data)