我是 python 新手,我尝试解析一些 XML 文件以添加一些新标签并存储新的 XML 文件。
python-beautifulsoup
接缝是正确的包装。在网上搜索教程,如何向 BeautifulSoup 解析的 XML 添加新标签,我发现python-bs4
使用了该包。
查看包描述,两个包的标题相同:
python-bs4 - error-tolerant HTML parser for Python
python-beautifulsoup - error-tolerant HTML parser for Python
所以我的问题是:有什么区别?