location = "delhi technological university" PARAMS = {'address':location} r = requests.get(url = URL, params = PARAMS) # The request is sent like this # http://maps.googleapis.com/maps/api/geocode/json?address=delhi+technological+university