解决bs4在Python 3.6下出现“ImportError: cannot import name 'HTMLParseError'错误
我用的PYTHON是3.6,beautifulsoupt用的版本是:beautifulsoup4-4.5.3,在代码中引用from bs4 import BeautifulSoup,在运行的时候会提示"ImportError: cannot import name 'HTMLParseError"--原因:BeautifulSoup不支持Python3.5以上的版本--解决方法:把PYTHON版本降到3.4,问题即可解决...