I am trying to pull out data from interactive chart and I have the JSON file from this link
http://www.tadawul.com.sa/Charts/MutualFundChartDataDownloader
I tried importing this to Python so I can extract the data, but I am facing errors
The code I wrote:
import urllib
import json
htmltext = urllib.urlopen("https://www.tadawul.com.sa/Charts/MutualFundChartDataDownloader?actionTarget=mutualFundChartData&mutualFundSymbol=006038&format=json")
data = json.load(htmltext)
print data["unitPrice"]
What I am really trying to import is the following data
"valuationDate"
"valudationDateAsDate"
"mutualFundNav"
"unitPrice"
I want to get these data one by one so I can copy it and use it in Excel.
All is what I am trying to do is to get the prices for this chart