HTTP requests and JSON parsing in Python
import requests url = 'http://maps.googleapis.com/maps/api/directions/json' params = dict( origin='Chicago,IL', destination='Los+Angeles,CA', waypoints='Joplin,MO|Oklahoma+City,OK', sensor='false' ) resp = requests.get(url=url, params=params) data = resp.json()
References
https://stackoverflow.com/questions/6386308/http-requests-and-json-parsing-in-python