【发布时间】:2010-11-16 17:56:24
【问题描述】:
我正在使用 beautifulsoup 从 html 页面中抓取数据。直到昨天一切都很好。但现在我得到了错误:
'ascii' codec can't encode character u'\xa9' in position 86700: ordinal not in range(128)
我正在使用代码:
import urllib2
from BeautifulSoup import BeautifulSoup
page = urllib2.urlopen(url).read()
soup = BeautifulSoup(page)
这给了我错误。
【问题讨论】:
标签: python beautifulsoup