摘要:
刚开始用BeautifulSoup抓取网页,遇到中文乱码问题,在网上搜了一些方法,先记录于此, 看看哪种方法好用1、http://leeon.me/a/beautifulsoup-chinese-page-resolveimport urllib2from BeautifulSoup import BeautifulSouppage = urllib2.urlopen('http://www.leeon.me');soup = BeautifulSoup(page,fromEncoding="gb18030")print soup.originalEncod 阅读全文
posted @ 2013-04-08 17:39
todoit
阅读(8121)
评论(0)
推荐(0)

浙公网安备 33010602011771号