import urllib2 response=urllib2.urlopen('http://house.focus.cn/') html=response.read() print html.decode('gbk')