我正在尝试运行 pygooglevoice 示例脚本 parse_sms.py 以尝试使用 Python 下载短信内容,但收到以下错误:
Traceback (most recent call last):
File "C:\Python27\pygooglevoice-0.5-extras\examples\parse_sms.py", line 39, in <module>
for msg in extractsms(voice.sms.html):
File "C:\Python27\pygooglevoice-0.5-extras\examples\parse_sms.py", line 20, in extractsms
tree = BeautifulSoup.BeautifulSoup(htmlsms) # parse HTML into tree
AttributeError: type object 'BeautifulSoup' has no attribute 'BeautifulSoup'
我正在运行 Windows 7 x64、Python 2.7
我仅通过将 BeautifulSoup 的导入更改为“从 bs4 导入 BeautifulSoup”来修改 parse_sms.py 文件
我是 Python 新手,也是 BeautifulSoup 的新手,我不知道下一步该做什么来尝试解决这个问题。感谢您的帮助。