更新: 从4.4.0开始,
BeautifulSoup与Python 3.5兼容。升级:
pip install --upgrade beautifulsoup4
旧答案:
由于对“不赞成使用HTMLParser的严格模式”问题进行了更改,因此:
问题#15114:HTMLParser,HTMLParser.error和HTMLParserError异常的严格模式和参数已删除。
恐怕
beautifulSoup4目前与Python 3.5不兼容。使用Python 3.4。

更新: 从4.4.0开始,
BeautifulSoup与Python 3.5兼容。升级:
pip install --upgrade beautifulsoup4
旧答案:
由于对“不赞成使用HTMLParser的严格模式”问题进行了更改,因此:
问题#15114:HTMLParser,HTMLParser.error和HTMLParserError异常的严格模式和参数已删除。
恐怕
beautifulSoup4目前与Python 3.5不兼容。使用Python 3.4。