import urllib d = urllib.urlopen('http://localhost:8080').read() print d