import urllib url = urllib.urlopen("http://scifi.com") text = url.readline() print text