Hi All,
I build a program to read a JSON file from internet.
When the file is large , the python program hangs and I have to shut it down then run it again and it hangs again.
The programs works well with small JSON files.
--Update.
I found that the program run file with the print(data)
it seems printing is causing a problem that I don't know !
I build a program to read a JSON file from internet.
When the file is large , the python program hangs and I have to shut it down then run it again and it hangs again.
The programs works well with small JSON files.
import urllib.request, json myURL = "https://query1.finance.yahoo.com/v8/finance/chart/AAPL?symbol=INTC&period1=0&period2=9999999999&interval=1d" with urllib.request.urlopen(myURL) as url: data = json.loads(url.read().decode()) print(data)any idea how to overcome this issue?
--Update.
I found that the program run file with the print(data)
it seems printing is causing a problem that I don't know !