首页 > .net > BeautifulSoup是否适用于IronPython?

BeautifulSoup是否适用于IronPython? (Does BeautifulSoup work on IronPython?)

问题

Beautiful Soup与Iron Python一起使用吗?

如果是这样,哪个版本的Iron Python?使用Iron Python在.net 2.0上分发Windows桌面应用程序是多么容易(主要是C#调用一些python代码来解析html)?

解决方法

大多数纯Python模块都适用于Iron Python。如果它包含C,则很可能无效。通过快速查看源代码,您会发现BeautifulSoup4纯粹是Python。因此,它很可能与IronPython兼容。希望我能提供帮助。

问题

Does Beautiful Soup work with Iron Python?

If so with which version of Iron Python? How easy is it to distribute a windows desktop app on .net 2.0 using Iron Python (mostly C# calling some python code for parsing html)?

解决方法

Most purely Python modules work with Iron Python. If it contains C, it will not work, most likely. From a quick look at the source code, you can find that BeautifulSoup4 is purely Python. Therefore, it is most likely compatible with IronPython. Hope I could help.

相似信息