开发者

What's the best way to process HTML in Python?

I'm trying to write some tests with Lettuce, started using lxml but found kin开发者_如何转开发da complicated to integrate it with Django in the same way that Webrat integrates with Rails.


I use beautiful soup with django and no problems.

http://www.crummy.com/software/BeautifulSoup/


Not sure what your problem with lxml being complicated is (parsing html will be complicated!) but I've always used Beautiful Soup for handling html, finding elements, constructing trees etc etc.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜