import urllib.request, urllib.error, urllib.parse
import json
response = urllib.request.urlopen(
    'https://api.instagram.com/v1/tags/pizza/media/XXXXXX')
data = json.load(response)
print(data)
Python urllib2: Receive JSON response from url