摘要: f = urllib2.urlopen(url,timeout=10)data = f.read() # decode the htmlcontentType = f.headers.get('Content-Type')if contentType.find("gbk"): data = unic... 阅读全文
posted @ 2015-04-30 17:38 何石-博客 阅读(574) 评论(0) 推荐(0) 编辑