import urllib #url = urllib.urlopen("http://www.rpi.edu") url = urllib.urlopen("http://dictionary.reference.com/browse/python") html = url.read() url.close() print html