Using-Python-to-Access-Web-Data---Coursera
Using-Python-to-Access-Web-Data---Coursera copied to clipboard
Repository containing the programming exercises coded during the course "Using Python to Access Web Data", from University of Michigan and offered in Coursera
updated the errors to make it more compatible for python 3
Use the Key Parameter. import urllib import json serviceurl = "http://py4e-data.dr-chuck.net/json?" while True: address = raw_input("Enter location: ") if len(address) < 1 : break url = serviceurl + urllib.urlencode({'sensor':'false','address':address,'key':42}) print...
import json import urllib serviceurl = "http://python-data.dr-chuck.net/geojson?" sample_address = "South Federal University" data_address = "University of Southern California" address_wanted = data_address parameters = {"sensor": "false", "address": address_wanted} paramsurl = urllib.parse.urlencode(parameters)...