37,737
社区成员
发帖
与我相关
我的任务
分享#coding='utf-8'
import urllib2
url="http://esf.xian.fang.com/"
headers={"User-Agent":"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1"}
req = urllib2.Request(url,headers=headers)
response= urllib2.urlopen(req)
html = response.read().decode('gb2312','ignore').encode('utf-8')
print html
