开发者

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

开发者 https://www.devze.com 2023-01-26 06:18 出处:网络
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 beauti

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

精彩评论

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