I'm working on doing a live currency converter in Python. I've successfully fetched all the data needed from the URL into Python. However I'm now trying to call a specific string in the url. Here's my current code:
import urllib.request
import json
##Define JSON API Url
with urllib.request.urlopen("http://openexchangerates.org/api/latest.json?app_id=XXX") as url:
response = url.read()
##Print Fetched data
print (response)
As you can see I've printed all the data it's fetched, but it's now printing specific strings from it.
My question is, how do i parse specific strings from the url ? I've heard of json.load ,is that something i should use ?