Skip to content

Latest commit

 

History

History
10 lines (7 loc) · 234 Bytes

get-json-from-url.md

File metadata and controls

10 lines (7 loc) · 234 Bytes

Get json from a URL

Getting and parsing a json from a url. So Easy!

import json,urllib.request
data = urllib.request.urlopen("https://api.coindesk.com/v1/bpi/currentprice/usd.json").read()
output = json.loads(data)