Search code examples
pythonhtmlbddlettuce

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


I'm trying to write some tests with Lettuce, started using lxml but found kinda complicated to integrate it with Django in the same way that Webrat integrates with Rails.


Solution

  • I use beautiful soup with django and no problems.

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