我的脚本写在下面,并且找到soup.get_text()
命令的错误。 代码:BeautifulSoup:解析HTML文件时无类型错误
from BeautifulSoup import *
soup=BeautifulSoup(open("F:\\HTML\\Registrationform.html"))
print soup.get_text('+')
错误:文件 “C:/Python27/beautifulsoup4-4.6.0.tar/scrapingbasic.py
”,3号线,在
print soup.get_text('+')
TypeError: 'NoneType' object is not callable
更新为[beautifulsoup4](https://www.crummy.com/software/BeautifulSoup/bs4/doc/) – SmartManoj