#python3.4.0 import urllib.request import urllib response = urllib.request.urlopen('http://www.baidu.com/') text = response.read() print (text)