# L-6 MCS 275 Mon 25 Jan 2010 : getwebdata.py # The script below gets information about earthquakes in cvs format. # We read the data and copy into the file "quakes.cvs". u = "http://neic.usgs.gov/neis/gis/qed.asc" from urllib import urlopen infile = urlopen(u,'r') outfile = open("quakes.cvs",'w') while True: s = infile.readline() if s == "": break outfile.write(s) infile.close() outfile.close()