import urllib.request, urllib.parse, urllib.error
import json
target = "http://py4e-data.dr-chuck.net/json?"
import requests
url=target+urllib.parse.urlencode({'address':local,'key':42})
print("Retrieving ", url)
data = urllib.request.urlopen(url).read()
print('Retrieved', len(data), 'characters')
js = json.loads(data)
print(json.dumps(js,indent=4))
print('place_id',js['results'][0]['place_id'])
