#!/usr/bin/python # Python script to download a webpage to a file by prompting for the URL # of the web page and the location, i.e., path and file name, where it # should be stored # Version: 0.1 # Date created: 2015-10-25 import urllib2 url=raw_input("URL: ") outfile=raw_input("Output file: ") page =urllib2.urlopen(url) source=page.read() f=open(outfile, 'w') f.write(source) f.close()